PHP can't fopen remote file

ffvincent

New Member
I'm making a script to open remote file (ftp) and edit it with fopen and fwrite.I have problem while connecting to ftp.I made this code\[code\] $handle = fopen("ftp://".$ftp['username'].":".$ftp['password']."@".$ftp['server']."/cstrike/addons/amxmodx/configs/users.ini", "w") or die("ftp error");fwrite($handle,$text."\n") or die('err2.');\[/code\]al variables are set.I tried with ftp://... in web page and it works.allow_url_fopen is On...It just says "ftp error"
 
Back
Top