Jump to content


newbie needs script help

  • Please log in to reply
1 reply to this topic

#1 Impius

  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 21 June 2006 - 05:54 PM

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,

#2 trq

  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 21 June 2006 - 06:09 PM

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].

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users