Re: cannot execute img src in localhost
Marty <firstname.lastname@example.org> 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.
|All times are GMT. The time now is 04:36 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.