I just need a simple script to send a string via udp or tcp (udp preferably as the receiving server will not always be online).
gp
This article may help you http://www.sitepoint.com/article/udp-portscanning-php