Re: Re: Please help!!! thx a lot~~~

From: Date: Thu, 24 Jul 2003 11:05:55 +0000
Subject: Re: Re: Please help!!! thx a lot~~~
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-156625@lists.php.net to get a copy of this message
Do you mean you cannot access the filesystem on your own server? You can find out if /something is a directory by connecting to the web server and request the file/directory without a trailing slash. If it is a directory server will respond with "301 Moved Permanently" response. $is_dir=false; $sock=fsockopen('server', 80); fputs($sock,"GET /something\r\n\r\n"); while (!feof($fp)) {
    if(strpos(fgets($fp,128),"301 Moved Permanently")) $is_dir=true;
} fclose ($fp); Joe wrote:
HTTP my department disable the function of listing file "Marek Kilimajer" <kilimajer@webglobe.sk> ???????:3F1FACE8.8080401@webglobe.sk... What is remote in your circumstances? FTP, HTTP, ... ? Joe wrote:
any alternative method is also welcome "Joe" <arjoe@cuhk.edu.hk> ¼¶¼g©ó¶l¥ó·s»D :20030724085145.4069.qmail@pb1.pair.com...
I have written a php to show file in directories. The problem is due to is_dir() can't opearate on remote files. What should
I
do in order to fix it. thx a lot~~~


« previous php.general (#156625) next »