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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -