Re: fopen

From: Date: Thu, 22 May 2003 12:35:43 +0000
Subject: Re: fopen
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148543@lists.php.net to get a copy of this message
Hello Ben, Thursday, May 22, 2003, 2:53:14 AM, you wrote: BL> e.g: fopen("C:\test.txt", "r") - No such file or directory BL> /home/bennyboy/public_html/open/open.php on line 12. If you are on a web server, you will not be able to open files on a remote computer, unless the user uploads them. If you are on a windows machine, you need to escape your \ so that PHP will recognize it. : fopen("c:\\test.txt", "r"); Generally speaking, scripts cannot open files above the server root directory for security reasons. -- Best regards, Burhan

« previous php.general (#148543) next »