funny system()

From: Date: Sun, 27 Oct 2002 18:11:11 +0000
Subject: funny system()
Groups: php.general 
Request: Send a blank email to php-general+get-121604@lists.php.net to get a copy of this message
Hi, RedHat 7.2 - PHP 4.0.6 i run this command on the console when im disconnected from the net and i get an immediate response : wget yahoo.com/ui.htm -O outfile -a logfile the logfile has the error mentioning that HOST NOT FOUND now if do something like this ---test.php--- #!/usr/bin/php -q <? system('wget yahoo.com/ui.htm -O outfile -a logfile'); ?> the script seems to hang. it does not seem to result in anything for at least 4-5 minutes (i haven't tried more than that) What am i doing wrong ? gamin.

« previous php.general (#121604) next »