/    Sign up×
Community /Pin to ProfileBookmark

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:

[code=html]<img src=”thumbnails/1_PHOT0103.JPG”/>[/code]

the images are present in the thumbnails folder but the browsers do not display them

the problem appeared only in the last few days.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@tracknutMar 16.2012 — 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
Copy linkTweet thisAlerts:
@OctoberWindMar 16.2012 — 
  • - 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?
  • Copy linkTweet thisAlerts:
    @NightcatauthorMar 16.2012 — 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.
    ×

    Success!

    Help @Nightcat spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...