fsockopen

From: Date: Wed, 29 Dec 1999 22:53:27 +0000
Subject: fsockopen
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-14146@lists.php.net to get a copy of this message
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.

« previous php.dev (#14146) next »