i have a local server runnin in my computer . when i try to dynamically create image using php, the image is not rendered in FF browser . i tried using img src=file:// but only alt tag appears. |
You probably dont output the image correct in PHP. |
i want show the gallery of images . do u mean i need to use header('Content-Type:image/'); my gallery consist of other types such as png,gif |
You do need to get the Content-Type correct, to allow generated images to display properly. But also, you shouldn't be using "img src=file".
You said you have a local server on your computer. This should have a name, most likely "localhost". Try something like this: "img src=http://localhost/..." (where the part after 'localhost' is a pathname relative to your webserver's root content directory). |