PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work

From: Date: Mon, 20 Nov 2000 06:44:50 +0000
Subject: PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-38534@lists.php.net to get a copy of this message
ID: 7880 Updated by: jason Reported By: Alan@Halachmi.net Status: Bogus Bug Type: *URL Functions Assigned To: Comments: As of 4.0.3, url_fopen is ini enabled not compile time enabled. Verify that youe php.ini contains "allow_url_fopen = On" I have tested this across Solaris 2.6-2.8 and it works fine. I'm marking this as bogus, reopen if you still have problems. -Jason Previous Comments: --------------------------------------------------------------------------- [2000-11-19 15:37:45] Alan@Halachmi.net <? $url = "http://www.php.net/index.html"; $fp = file($url); $if(!$fp) { echo "Cannot open url: $url"; } else { echo "URL Opened.n"; } ?> Yields: Warning: file("http://www.php.net/index.html") - Bad file number in /home/www/htdocs/filetest.php on line 3 Cannot open url: http://www.php.net/index.html Configure: './configure' '--prefix=/opt/PHPphp/v4.0.3pl1/sparc-sun-solaris2.8' '--exec-prefix=/opt/PHPphp/v4.0.3pl1/sparc-sun-solaris2.8' '--localstatedir=/var/run' '--with-apxs=/usr/local/bin/apxs' '--with-config-file-path=/opt/PHPphp/v4.0.3pl1/sparc-sun-solaris2.8/etc' '--enable-magic-quotes' '--disable-pear' '--with-gdbm' '--with-zlib' '--enable-ftp' '--with-kerberos' '--with-imap' '--with-java=/usr/java' '--with-ldap=/usr/local' '--with-mysql=/usr/local' '--enable-trans-sid' '--enable-yp' '--enable-memory-limit' '--enable-track-vars' '--enable-url-fopen-wrapper' --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7880

« previous php.dev (#38534) next »