how to create a web page where an image inserts itself?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chikooo
Forum Newbie
Posts: 12
Joined: Sun Feb 01, 2009 8:25 pm

how to create a web page where an image inserts itself?

Post by chikooo »

i dont know if anybody got my question.
but i dont know if this is even possible with php, i think that it is because i have heard that you can do almost anything with php.
ok so i have a bunch of images on my website directory all of the in one folder and they are named well organized(i think) for example: 0000001.jpg, 000002.jpg, 000003.jpg and keeps going. so how do is there a php script that will put it on a web page and it will automatically get the image name so i dont have to writing the image name everytime i want to post one.
each image will be on a different web page. so on each web page i want to put one image.
and if it is possible to generate a link me code using the image too.
well if it is possible. i just need the first part.
thanks
anyway
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: hwo create a web page where a image inserts ifself?

Post by requinix »

Unless there's some secret method to determine which image to show (random, time of day, something like that) then you'll have to specify the image somewhere. It could be "0000001.jpg" or "image.php?id=1" - all you're doing is moving the numbers around.
Post Reply