Re: funny system()
| From: | gamin | Date: | Sun, 27 Oct 2002 18:14:25 +0000 |
| Subject: | Re: funny system() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121605@lists.php.net to get a copy of this message | ||
I found the error,
silly me i had $!/usr/bin/php -q instead of #!/usr/bin/php -q,
sorry
gamin.
"Gamin" <gamin@vsnl.net> wrote in message
news:20021027181157.79883.qmail@pb1.pair.com...
> 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.
>
>