Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199908

[PHP3] Newbie (again!) From: Alvin B. Marcelo (marcelo <email protected>)
Date: 08/20/99

Forgive this newbie question:

I'd like to make a system call from inside PHP. I created a java class
(viewsource.class) that grabs text from an external webpage.

In my shell, it works:

java viewsource URL (and it outputs the html code of the URL)

Problem:

How do I embed this inside PHP so I can output out the code I've grabbed
into my new php3 file?

I've tried these:

exec ("java viewsource URL");

and

passthru ("java viewsource URL");

...no error is reported ("document: Done") but nothing appears...

I've tried this also:

exec("java viewsource URL > source.txt");
require ("source.txt");

Still nothing..

Obviously, I don't know a lot....all I know is that there is a deadline!

Thanks guys!

alvin

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>