note 108433 rejected from function.file-exists by sp

From: Date: Thu, 26 Apr 2012 08:12:54 +0000
Subject: note 108433 rejected from function.file-exists by sp
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187350@lists.php.net to get a copy of this message
Note Submitter: hung dot appteam from gmail dot com ---- I have a problem when i use php read file on LAN network through ip or computer name. $url = "\\\\192.168.0.200\\testshare\\1.txt"; if(file_exists($url) == TRUE) { echo "OK"; } else { echo "Error"; } //result: always "Error". If i use function file_get_contents ($url , true); result: Warning: file_get_contents(\\192.168.0.200\testshare\1.txt) [function.file-get-contents]: failed to open stream: Permission denied in D:\services\htdocs\test.php on line 3 Of course, folder "testshare" is set share and permission everyone full control. If i tape web browser: \\192.168.0.200\testshare\1.txt It read content of file 1.txt. Can you help me? Every idea help me, i thanks very much.

« previous php.notes (#187350) next »