Re: cannot execute img src in localhost

Discussion in 'HTML' started by Ben Bacarisse, Nov 8, 2012.

  1. Marty <> writes:

    > I have a web page that is webpage.php. It shows up fine in localhost
    > (ubuntu) except for the graphics. The header image, which is an img src,
    > shows the alt text and carves out a space for the image. But the image
    > does not show.
    >
    > If I change the page to .html I can see everything in the browser. But, I
    > cannot execute the .html page on local host at all.
    >
    > I tried asking in a php group but they said this is really a problem with
    > the html not functioning.
    >
    > Any suggestions?


    The src attribute is wrong. Exactly how, it's impossible to say, partly
    because your terminology is not clear. Here is my translation which you
    can disavow if you like:

    "I am running a web server on localhost. When I view webpage.php, the
    main image does not appear. If I rename the file to webpage.html and
    view it directly in a browser the image appears."

    If that's what's happening, post the PHP and there's a change you will
    get detailed assistance. The second most important data is the location
    of the various files relative to each other.

    You might also get fast answers if you uploaded the page and the image
    to a publicly available server.

    --
    Ben.
    Ben Bacarisse, Nov 8, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve Richter

    <txt src= ...> equivalent of <img src= ...>

    Steve Richter, Feb 8, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    2,058
    Laurent Bugnion
    Feb 9, 2006
  2. Greg Johnson
    Replies:
    4
    Views:
    3,047
  3. pheadxdll
    Replies:
    16
    Views:
    3,605
    Neredbojias
    Jun 6, 2007
  4. Ian
    Replies:
    0
    Views:
    408
  5. Jonathan N. Little

    Re: cannot execute img src in localhost

    Jonathan N. Little, Nov 8, 2012, in forum: HTML
    Replies:
    26
    Views:
    1,041
    Jonathan N. Little
    Nov 11, 2012
Loading...

Share This Page