php---get image path that in a directory using php and show image using HTML -


i have directory show image:

www\item(directory) 1.gif 

how can use php image path?

i want check if directory exist,i image path,if not show error.

if image path,i want show image using html like:

<img src="(image path)" style="width:304px;height:228px"> 

assuming got image path variable > $image_path

simply this...

<img src="<?php echo $image_path; ?>" style="width:304px;height:228px"> 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -