Page 1 of 1

How to call php script?

Posted: Sat Jul 05, 2008 1:20 pm
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?

Re: How to call php script?

Posted: Sat Jul 05, 2008 6:40 pm
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?

Re: How to call php script?

Posted: Sun Jul 06, 2008 3:10 pm
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...

Re: How to call php script?

Posted: Sun Jul 06, 2008 5:12 pm
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

Re: How to call php script?

Posted: Mon Jul 07, 2008 1:11 am
by darence
yes :D I will test it

Re: How to call php script?

Posted: Mon Jul 07, 2008 2:22 am
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.

Re: How to call php script?

Posted: Mon Jul 07, 2008 10:54 am
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.