Dear every php master
please help me up this question
when i start my first php ftp script and then i got some errors in my code which it indicate that
#Call to undefined function: ftp_connect()
there is my code:
<?php
$host ='ftp.wrox.com';
$port =21;
$user ='anonymoous';
$pass ='zak@fooassociates.com';
$ftp_link = ftp_connect($host,$port)
or die("cound not open this '$host' and ");
$login = ftp_login($ftp_link,$user,$pass);
if($login){
$file_list =ftp_nlist($ftp_link,"./beginnig");
if(is_array($file_list)){
foreach ($file_list as $file){
if(ftp_get($ftp_link,$file,$file,FTP_BINARY)){
echo "file '$file' download .<br>";
}else{
echo "could not open this file";
}
}
}else{
echo " no file to download";
}
}else{
echo "could not login to '$host:$port' as user name $user and pass $pass";
}
ftp_quit($ftp_link);
?>
best regard
Roger