hi all
i got the following problems:
1.
i want to write data from an mysql database into some files and when i didi that, i want to write the files in a webspace...
i am useing this code:
$fp = fopen("ftp://user:pass@www.kommpott.de/veranstaltungen/".$daten[$x]["id"].".html","w+b");
fwrite($fp, $return);
fclose($fp);
the array $daten... creates only the name of the file, it works good...
$return is the string with the data to write
the script works when the file that i want to create doesn't exist. if they exist, there is this error:
...blabla... file already exists ...blabla...
how can i solve that?
the next problem occurs when i try to wirte a bigger number of files. at first i got an error, that the script is only allowed to process 30 sec, so i fill (set_time_limit(600)😉 in and it works. but after a certain time i got an error which says that the this cgi-process is not allowed to work that long...
i am using the ms-iis and i do not know how to strech this time! for iis, if any know do know that, i also want to know how i can give the php script the rights to create files, i only can change the content, but not create other...