www.webdeveloper.com
Results 1 to 4 of 4

Thread: PHP to HTML image problem

  1. #1
    Join Date
    Jun 2008
    Posts
    118

    PHP to HTML image problem

    I have a script which takes the address of an image and inserts it into the html creating an image tag like this:

    HTML Code:
    <img src="thumbnails/1_PHOT0103.JPG"/>
    the images are present in the thumbnails folder but the browsers do not display them

    the problem appeared only in the last few days.

  2. #2
    Join Date
    Aug 2006
    Posts
    1,897
    Very hard to debug this without seeing the live site. Are you sure the image files are named correctly and in the correct folder? Are you sure the file names are upper case as shown? Are you sure the O's and zero's are right? Are you sure the permissions are right on the image files?

    Dave

  3. #3
    Join Date
    Jul 2007
    Location
    Wisconsin
    Posts
    468
    - That being a relative URL, are you sure the paths are correct?

    - Some browsers don't always like to display images that don't have both a height and width set. If you don't know the actual height/width, just set them to 100x100, and see if the image shows up.

    - Check the NET tab in FireBug. Is the page actually requesting/receiving the image, or is it retuning a 404?

  4. #4
    Join Date
    Jun 2008
    Posts
    118
    Me being an IDIOT, I renamed folders in preparation for the next version of software, but didn't update the queries that were storing the paths in the database.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles