Re: fopen errors

From: Date: Wed, 18 Feb 2004 22:50:25 +0000
Subject: Re: fopen errors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178188@lists.php.net to get a copy of this message
Admin wrote:
Here is the code I am using: $fileHandle = fopen($fileUpload, "r"); $fileContent = fread($fileHandle, $fileUpload_size); $fileContent = addslashes($fileContent); Warning: fopen("C:\\00000-temp\\100_0078.jpg", "r") -No such file or directory in /var/www/testbed/httpdocs/blob/grabfile.php on line 41 Then only thing that really jumps out at me in the file source path of C:\\00000-temp\\100_0078.jpg there is a couple of extra Backslashes (\) in the path statement. I am using a sample script that pulled from one of the websites.
Have you tried single forward slashes?

« previous php.general (#178188) next »