Jump to content

Recommended Posts

Posted (edited)

Hi all,

 

I've noticed recently that one of my PHP scripts have stopped working. It was still working up till about one week ago.

 

It is a simple script that calls fsockopen to send a small UDP packet to my home machine when I get a visitor hitting a certain page within my website. The script still works on my university server, and my IP hasn't changed since then.

 

Here is a snip of the code:

>$myip = "xxx.xx.xxxx.xx";
$notifyfp = fsockopen ("udp://$myip", 12001, &$errno, &$errstr, 0.1);
if ($notifyfp) {
     $notifymessage = "Visitor!";
     fputs ($notifyfp, $notifymessage);
     fclose ($notifyfp);
}

 

Any clues why this has stopped working all of a sudden? I have a program that listens for incoming UDP packets on port 12001, and it doesn't register when I load the script from my TCH server, but works ok when I load the script from my uni server.

 

 

Thanks in advance. :blink:

 

TCH-Bruce - edited out your IP number for security resaons.

Edited by TCH-Bruce

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...