PHP write to file on external server -
i trying write file on external server php. have ftp details. here code
$handle = fopen("ftp://usn:pass@domain/folder/file.html", "a"); fwrite($handle, "some text"); fclose($handle);
upon execution "the connection reset. connection server reset while page loading." error in browser. doing wrong?
it works in local server approach absolutely possible. guess 000webhost has set
ini_set("allow_url_fopen ", 0);
in php.ini
Comments
Post a Comment