Jump to content

countrydj

New Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

countrydj's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Guys... I have a lot of site written in mysql/php from a long time ago. In those days, the opening of a php script was <? . Then it changed to <?php There was no need to go back and change all the old coding. Everything wirked OK. However, yesterday, the old <? stopped working and I had to change ALL <? to <?php. The only thing that changed was that I moved my name servers to a new location. The webserver wasn't touched. Can anybody tell me why this would happen without warning? Thanks, John C
  2. Hi Guys... I want to collect ip numbers from submitted forms and store them into a text file. this is what I've got up to now: # get the submitters IP address $remote_ip = getenv(REMOTE_ADDR); $ip_file = fopen("inbritain-ip-file.txt",'a') or die("Unable to open file!"); fwrite($ip_file, $remote_ip); fclose($ip_file); This works fine and collects the ip numbers, BUT it adds then on to the end of the file. e.g. 88.97.199.15088.97.199.15088.97.199.15088.97.199.150 I need them in a list. e.g. 88.97.199.150 88.97.199.150 88.97.199.150 88.97.199.150 etc. I can't figure out how to get the code to do that. Has anybody got any ideas? Thanks, John C
×
×
  • Create New...

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.