php3-list | 199908
Date: 08/20/99
- Next message: Troels Arvin: "Re: [PHP3] Php3 + MySql + Apache"
- Previous message: Joe Walnes: "Re: [PHP3] Connection to JAVA ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Troels Arvin: "Re: [PHP3] Php3 + MySql + Apache"
- Previous message: Joe Walnes: "Re: [PHP3] Connection to JAVA ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

