|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Opening a file using:
fopen( "username assword@ftp://www.site.com", "w" );opens a file without any probelems. But when I try to write to the same file again it won't open the file (get an error, "file already exists") What I'm looking for is either how to successfully re-open a file through FTP or how to delete a file using PHP |
|
#2
|
|||
|
|||
|
Hi,
The problem could be that your script still did not close the file, and that it is still open and as you try to open it again you get an error. Or it could be that the "w" (for write) has to be replaced another letter that means append (I am not sure if that was "a" or "w+") Hope this helps, ------------------ Ramon Litjens Boradoli Web Design (www.boradoli.nl) |
|
#3
|
|||
|
|||
|
Klein landje, Nederland ;-)
Anyway, I fixed the problem. It wasn't that the file wasn't closed yet, it's just not possible in PHP to overwrite a file using PHP3. I fixed it by using the FTP-module in PHP. I'm using a Win32 server to test on, there it was a matter of loading the module "php3_ftp.dll". On the server that runs Unix it's done differently, but it's the same principle. You'll need PHP 3.0.16 or later to do this. the earlier versions don't have FTP-support. Run phpinfo() to see what version you're running |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > File write using FTP, can't write the same file twice |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|