Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have developed a web page. the web page contains an image tag.
For example

<img src="./homedirectory/images/myimage.jpg" alt="image" />

The source of image is being generated by a php script. All the images are stored in a directory "images" in the root directory.
the images size may be from 100 KB to 800 KB. But when this web pages is opened, some times image shows up and some times not. I want to force this image to be showed up. How can I do that??
Posted
Comments
Amir Mahfoozi 24-Oct-11 2:33am    
Make sure that the format of the generated files are all OK. Maybe the php image generator doesn't work well.
rashidfarooq 24-Oct-11 11:10am    
php generates image source correctly. When I refresh the page one or two times the image displayed up.

1 solution

u can use this to show the image


<img src="pulpit.jpg" alt="Pulpit rock" width="304" height="228" />

for referance, use this [link]
 
Share this answer
 
Comments
rashidfarooq 26-Oct-11 3:18am    
you have not got my point. The problem is not in code or html tags. The Problem is some where in speed. How can I force an image to be displayed at any cost even in low speed?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900