[PHP-DEV] fsockopen From: Amit M Dave (amd202 <email protected>)
Date: 12/29/99

I am new to php please forgive a stupid question (if this is one)

I have copied the source from http://www.php.net/manual/function.fsockopen.php3
directly.

I have changed the IP parameter to reference my solaris box
that is running php 3.0.12, and apache (mod_php)

When running from the command line the code works fine.

When the script is called from a web browser, I get an error:

parse error on line 3
$fp = fsockopen("my_ip", portnumber, &$errno, &$errstr, 30);

If you could possibly send a suggestion as to where I have gone wrong I
would greatly appreciate it. Thanks in advance.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>