Upload (unable to read file)

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Upload (unable to read file)

    Ruddy wrote:
    > 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??
    <?php
    $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

  4. #3

    Default Re: Upload (unable to read file)


    On 18-Nov-2003, [email]ruddy_pulido@yahoo.com.br[/email] (Ruddy) wrote:
    > 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??
    It would be terribly helpful if you would show us the code.

    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139