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

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -