snowjay Posted September 12, 2004 Posted September 12, 2004 (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. TCH-Bruce - edited out your IP number for security resaons. Edited September 12, 2004 by TCH-Bruce Quote
TCH-Bruce Posted September 12, 2004 Posted September 12, 2004 Sorry, don't have an answer for you but I did edit out your IP number for security reasons. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.