I wish to submit form on my server, to save submited info into file that is on another server, but I haven’t managed to do it. I get “Unable to open remote file for writing”….
This is what I tryed:
[code=php]
$file = fopen (“ftp://user:[email protected]/output.txt”, “a+”);
if (!$file) {
echo “<p>Unable to open remote file for writing.n”;
exit;
}
fputs ($file, “Name: $namern”);
fputs ($file, “Surname: $surnamern”);
fputs ($file, “———————————–rn”);
fclose ($file);
I also CHMODED output.txt into 777 just to be on safe side.. But I still get error message..
And I also tryed:
$file = fopen (“
but same thing…