Jump to content

Archived

This topic is now archived and is closed to further replies.

Impius

newbie needs script help

Recommended Posts

Greetings.
I've just started to learn PHP and I need some help with a script, what I'm looking for is a script that will display an image if accessed by a specific IP address and an alternate image if accessed by any other IP. If any one could assist me in locating or writting a script that would preform those actions it would be greatly appreciated. [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
Thanks in advance,
Impius

Share this post


Link to post
Share on other sites
If your just learning then maybe this would be a good place to start. You will find a users ip in the $_SERVER array. Look it up [a href=\"http://php.net/globals\" target=\"_blank\"]here[/a]. Then you'll need to use an if() conditional. Look them up [a href=\"http://php.net/if\" target=\"_blank\"]here[/a].

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.