Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2

Thread: Image Upload?

  1. #1
    Junior Member
    Join Date
    Jan 2003
    Posts
    11
    Member #
    524
    I am getting these error messages when i call the php upload page from my form after attempting to upload an image:

    Warning: fopen("C:\\Documents and Settings\\aaron\\My Documents\\My Pictures\\2003-01 (Jan)\\IM000169.JPG", "r") - No such file or directory in /var/www/html/insert_data.php on line 20

    Warning: stat failed for C:\\Documents and Settings\\aaron\\My Documents\\My Pictures\\2003-01 (Jan)\\IM000169.JPG (errno=2 - No such file or directory) in /var/www/html/insert_data.php on line 20

    Warning: Supplied argument is not a valid File-Handle resource in /var/www/html/insert_data.php on line 20

    Line 20 is: $binary_data=addslashes(fread(fopen($img1,"r"),fil esize($img1)));

    Any ideas what i'm doing wrong here? Thanks

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:42 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com