#19051 [Fbk->Opn]: fopen() fails with "http" or "https" URL as file descriptor...

From: Date: Sat, 24 Aug 2002 15:28:19 +0000
Subject: #19051 [Fbk->Opn]: fopen() fails with "http" or "https" URL as file descriptor...
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17761@lists.php.net to get a copy of this message
ID: 19051 User updated by: javakel@12dollaraccess.com Reported By: javakel@12dollaraccess.com -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: Solaris 9 PHP Version: 4.2.2 New Comment: update on this issue: using the listed CVS snapshot, fopen() is better, but not completely fixed... here's the breakdown for the snap: fopen("http://mywebsite/mydir/myfile.txt", "r") now SUCCEEDS! fopen("https://mywebsite/mydir/myfile.txt", "r") still FAILS! fopen("/disk2/myfiles/myfile.txt", "r") still SUCCEEDS! almost there guys! ;-) best. hive_slave Previous Comments: ------------------------------------------------------------------------ [2002-08-22 14:46:26] sander@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-08-22 12:00:05] javakel@12dollaraccess.com problem with fopen() on Solaris 9 running PHP4.2.2: fopen() fails to open a file on the file system if said file is referenced with a URL, i.e.: fopen("http://myserver/myfile.txt", "r") FAILS! fopen("https://myserver/myfile.txt", "r") FAILS! fopen() functions as expected when using non-URL, full path names, i.e.: fopen("/export/home/myfiles/myfile.txt", "r") SUCCESS! fopen() is obviously having some issues in 4.2.2, as earlier versions of PHP's fopen() function have had no problem accessing files on the file system via a URL... it should be noted, however, that fopen() is notorious for being broken in various PHP versions/distributions... maybe the problem is with Solaris9? anyone have any ideas on this one? best. hive_slave ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19051&edit=1

« previous php.bugs (#17761) next »