Impius Posted June 21, 2006 Share Posted June 21, 2006 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 Link to comment https://forums.phpfreaks.com/topic/12567-newbie-needs-script-help/ Share on other sites More sharing options...
trq Posted June 21, 2006 Share Posted June 21, 2006 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]. Link to comment https://forums.phpfreaks.com/topic/12567-newbie-needs-script-help/#findComment-48149 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.