How to call php script?

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
darence
Forum Newbie
Posts: 4
Joined: Sat Jul 05, 2008 1:16 pm

How to call php script?

Post by darence »

Hi 2 all.
I want to ask you one question. I want to create random image rotator which will be called with http://www.mydomain.com/username.jpg (or gif, .png) and displays random picture every time it is called. How to do this?
koen.h
Forum Contributor
Posts: 268
Joined: Sat May 03, 2008 8:43 am

Re: How to call php script?

Post by koen.h »

If you really want to use the jpg extension for that you'll have to call in apache for help. Can't you use username.php to generate the image?
darence
Forum Newbie
Posts: 4
Joined: Sat Jul 05, 2008 1:16 pm

Re: How to call php script?

Post by darence »

I want to use random images as signature for forums. I dont know is it possible to do with .php extension because I want to insert it into [img] tags...
koen.h
Forum Contributor
Posts: 268
Joined: Sat May 03, 2008 8:43 am

Re: How to call php script?

Post by koen.h »

It will cost you 5 minutes to try it out:
1) create the php page you will use as your image
2) put some image in it (eg http://be.php.net/manual/en/function.im ... string.php).
3) test if this works
darence
Forum Newbie
Posts: 4
Joined: Sat Jul 05, 2008 1:16 pm

Re: How to call php script?

Post by darence »

yes :D I will test it
darence
Forum Newbie
Posts: 4
Joined: Sat Jul 05, 2008 1:16 pm

Re: How to call php script?

Post by darence »

koen.h wrote:It will cost you 5 minutes to try it out:
1) create the php page you will use as your image
2) put some image in it (eg http://be.php.net/manual/en/function.im ... string.php).
3) test if this works
:lol: This works. But how to convert the other image into the string (and store it into database :) ). This is "php rules" example.
koen.h
Forum Contributor
Posts: 268
Joined: Sat May 03, 2008 8:43 am

Re: How to call php script?

Post by koen.h »

I'm not sure what you are asking. The step you need to take now is create your script for random image display. You'll need something else than what's in the php manual of course.
Post Reply