Hmm, looks like ftp functions require to be compiled into php which is not standard, and there are some errors with it on windows. Instead try:
<?php
$ftp_conn=fsockopen('ftp.mysite.com',21,$errno,$er rstr,5);
if ($ftp_conn) { echo 'Online'; fputs($ftp_conn,'BYE'); }
else { echo 'Offline'; }
?>
If connection fails you can use $errno and $errstr to view errormessages , if you know enough php to display them, but you don't have to use them.
|