# Easy PHP

**URL:** <https://forum.kirupa.com/t/easy-php/108997>\
**Category:** Uncategorized\
**Created:** [April 30, 2004, 5:04pm UTC](https://forum.kirupa.com/t/easy-php/108997 "2004-04-30T17:04:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanman918](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@sanman918](https://forum.kirupa.com/u/sanman918)\
**Post date:** [April 30, 2004, 5:04pm UTC](https://forum.kirupa.com/t/easy-php/108997/1 "2004-04-30T17:04:01Z")

</div>

Hey,  
It’s been so long since I had to use any PHP. I just want to creat a webpage with images on it and everytime you refresh it brings up a random picture. I know how to do the effect but I dont remember the exact code. I know it has to do something with creating a varaible such a “num” and have it randomly create a number lets say 1-5. So in HTML i put image$num.jpg. But I forgot the code to do this. Can anyone help me out?  
Thanks
