Closed Thread
Results 1 to 9 of 9

Thread: image thumbnail creation

  1. #1
    listysite76 is offline x10Hosting Member listysite76 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    28

    image thumbnail creation

    Warning: imagejpeg() [function.imagejpeg]: Unable to open 'users/158/images/thumbs/1308420484.jpg' for writing: No such file or directory in /home/cham1992/public_html/uploadimg.php on line 99
    The file is not writable
    Warning: imagejpeg() [function.imagejpeg]: Unable to open 'users/158/images/thumbs/small_thumbs/1308420484.jpg' for writing: No such file or directory in /home/cham1992/public_html/uploadimg.php on line 99

    i kepp getting this error when i 'm using imgupload.php.actually 1308420484.jpg exists in server
    and i used is writable function and it say's it is not writable.how to make all uploaded images writabe


    users folder permissions=0777

  2. #2
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: image thumbnail creation

    1) what script are you using to generate thumbnails? It looks like it's getting paths messed up somehow (the users/158/... looks wrong)
    2) folder permissions should be 755, NOT 777.
    Last edited by Skizzerz; 06-18-2011 at 09:30 PM.

  3. #3
    listysite76 is offline x10Hosting Member listysite76 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    28

    Re: image thumbnail creation

    http://www.lislia.com/users/ssss.txt

    here is my source.please show me whats wrong

  4. #4
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: image thumbnail creation

    script looks fine at a first glance, however, you might need to actually create the directories via mkdir() before trying to move images into them

  5. #5
    listysite76 is offline x10Hosting Member listysite76 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    28

    Re: image thumbnail creation

    dir's are are already on server, they are created when user registered, and all sub-folders exists

  6. #6
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,151

    Re: image thumbnail creation

    Ignore this -- missed the application relative path. Sorry.
    Last edited by essellar; 06-18-2011 at 09:54 PM. Reason: Was utterly wrong in so many ways...
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  7. #7
    listysite76 is offline x10Hosting Member listysite76 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    28

    Re: image thumbnail creation

    ---------- Post added at 04:01 AM ---------- Previous post was at 02:55 AM ----------

    [/COLOR]what's the real path then?

    ---------- Post added at 04:07 AM ---------- Previous post was at 04:01 AM ----------

    what?

    ---------- Post added at 04:17 AM ---------- Previous post was at 04:07 AM ----------

    some one please show me the solution
    Last edited by listysite76; 06-18-2011 at 11:08 PM.

  8. #8
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: image thumbnail creation

    It is likely an issue with your script that I didn't catch on my first run-through. Please go through your script step-by-step (echo/print_r is good to view debugging info) to see where it is failing, then fix it.

    I can assure you that there isn't any errors with the servers, since otherwise a LOT more people would be complaining about stuff like this, which means that you're now on your own to get it fixed. You may have some luck asking in the Programming Help forum, but in terms of this thread, you're S.O.L. since it isn't a server issue.

  9. #9
    listysite76 is offline x10Hosting Member listysite76 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    28

    Re: image thumbnail creation

    i am now on my own to get it fixed

Closed Thread

Similar Threads

  1. Post thumbnail not shown in freshlife wp theme
    By nabajit.black94 in forum Graphics & Webdesign
    Replies: 1
    Last Post: 11-12-2010, 10:43 PM
  2. Change the size of the Thumbnail Picture
    By greeting in forum Off Topic
    Replies: 0
    Last Post: 07-03-2008, 05:51 PM
  3. php, printing thumbnail images
    By lbrassaw in forum Programming Help
    Replies: 1
    Last Post: 05-29-2008, 02:05 AM
  4. Memory limit, thumbnail generating
    By altrock182182 in forum Free Hosting
    Replies: 7
    Last Post: 12-14-2007, 07:25 PM
  5. phpBB3 RC7 bbCode for thumbnail (thickbox)
    By onewalrus in forum Computers & Technology
    Replies: 0
    Last Post: 10-20-2007, 01:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers