# PHP & images

**URL:** <https://forum.kirupa.com/t/php-images/65323>\
**Category:** programming\
**Created:** [September 25, 2004, 12:19am UTC](https://forum.kirupa.com/t/php-images/65323 "2004-09-25T00:19:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![morse](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@morse](https://forum.kirupa.com/u/morse)\
**Post date:** [September 25, 2004, 12:19am UTC](https://forum.kirupa.com/t/php-images/65323/1 "2004-09-25T00:19:04Z")

</div>

I’m very new to php, and I’m doing some experimenting. I have a php book, and I can’t find the answer to this in there or on google…

I have a site like the following: [http://beta.morsedesigns.com/gallery.php](http://beta.morsedesigns.com/gallery.php). In the big black space in the center, I would like to display an image. But what is the best way to display an image through php (with echos and such, or what?), especially an image in a big table?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 25, 2004, 3:34am UTC](https://forum.kirupa.com/t/php-images/65323/2 "2004-09-25T03:34:34Z")

</div>

Just do a

\<?PHP  
//Your script to generate a url of a photo  
//Such as image.jpg  
//and set that to a variable called $photoURL  
?\>  
\<img src="\<?= $photoURL ?\>"\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 25, 2004, 9:00pm UTC](https://forum.kirupa.com/t/php-images/65323/3 "2004-09-25T21:00:51Z")

</div>

:love:
