Ask a Question related to PHP Development, Design and Development.
-
Ruddy #1
Upload (unable to read file)
hi, i´m trying to upload a file. I tried many ways but it always
return the same error...
Unable to open c:\file.jpg for reading.
the file exists, but any file gives me the same error..
anyone know what is happening??
thanx
Ruddy
Ruddy Guest
-
How to upload a file to 2 FTP sites without an upload component for company
Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload... -
Upload Friendly (Multiple File Upload Applet)
Title : Upload Friendly (Multiple File Upload Applet) Description : UploadFriendly is an easy to use Java Applet that will allow multiple file... -
Unable to read/write to .ini file using .dll in webservice
Hi, I am new to asp.net. I am creating a web service. This I havedone. The web service calls one of our .dll's. This .dll usesthe... -
Error: Unable to read footer file
Anyone familiar with this error? (Unable to read footer file) The page looks/works fine on my local machine and even on the live server (when it was... -
Upload file and read contents from the stream?
I would like to provide an interface for users to upload a csv (or other text file). I would like to read the contents of the CSV while it is... -
Pedro Graca #2
Re: Upload (unable to read file)
Ruddy wrote:
<?php> hi, i´m trying to upload a file. I tried many ways but it always
> return the same error...
>
> Unable to open c:\file.jpg for reading.
>
> the file exists, but any file gives me the same error..
>
> anyone know what is happening??
$f = "c:\file.jpg";
?>
$f does *NOT* point to the file named "file.jpg" on the root of the
"c:" drive!
it points to the file "\file.jpg" on the current directory of the c:
drive.
"\f" is a single character!
If you're using single quotes, or getting the file name in some other
way, please disregard what I said up there and post your code.
HTH
--
..sig
Pedro Graca Guest
-
Tom Thackrey #3
Re: Upload (unable to read file)
On 18-Nov-2003, [email]ruddy_pulido@yahoo.com.br[/email] (Ruddy) wrote:
It would be terribly helpful if you would show us the code.> hi, i´m trying to upload a file. I tried many ways but it always
> return the same error...
>
> Unable to open c:\file.jpg for reading.
>
> the file exists, but any file gives me the same error..
>
> anyone know what is happening??
My guess is you are trying to read a file on the client from the server. It
can't be done with fopen(). You can use <input type=file and the $_FILE
array.
--
Tom Thackrey
[url]www.creative-light.com[/url]
tom (at) creative (dash) light (dot) com
do NOT send email to [email]jamesbutler@willglen.net[/email] (it's reserved for spammers)
Tom Thackrey Guest



Reply With Quote

