1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Error Creating Thumbnails

Discussion in 'PHP' started by -Maverick-, Nov 14, 2007.

  1. #1
    I've come across an error today while uploading images to my site. The full sized images are displaying properly but the thumbs that the script is supposed to generate are displaying as all black. Not quite sure what is going on. Is anyone able to help or guide me along?

    Error Message:

    Here is the code on line 66 in the batch.php file:

      list($width,$height) = getimagesize(URL.'imgs/'.$file1);
    Code (markup):
     
    -Maverick-, Nov 14, 2007 IP
  2. greatlogix

    greatlogix Active Member

    Messages:
    664
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    85
    #2
    It seems that script is not able to find image. Check your image path in this line getimagesize(URL.'imgs/'.$file1);
     
    greatlogix, Nov 15, 2007 IP
    -Maverick- likes this.
  3. -Maverick-

    -Maverick- Well-Known Member

    Messages:
    491
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Thanks for the guidance greatlogix. I managed to fix it. A little green coming your way for your help. :)
     
    -Maverick-, Nov 21, 2007 IP