Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Feb 2007
    Posts
    218
    Thanks
    25
    Thanked 1 Time in 1 Post

    imagejpeg no such file or directory

    I'm getting this error message using imagejpeg:

    imagejpeg() [function.imagejpeg]: Unable to open 'http://myhost.provider.net/mdwpictures/gpfmottenPic12236.jpg' for writing: No such file or directory.

    As you can see it cannot store the image into the given directory. I'm trying to store the image created by GD into the given directory. I've used an absolute path as well as a relative path. I know the path is correct, and the direcory I'm trying to write to set to chmod 777.


    imagejpeg($img,$Countryrow["Imagelocation"]."/".$bestandsnaam.".jpg");
    So what am I doing wrong? Ain't it possible to write the image directly to a given directory with GD?

    If not which lines do I need to move a picture from one directory to another?

  • #2
    Regular Coder
    Join Date
    Feb 2007
    Posts
    218
    Thanks
    25
    Thanked 1 Time in 1 Post
    nobody?

  • #3
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    What about imagecopy()?
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting


  •  

    Posting Permissions

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