tags:

views:

13

answers:

1

I have a list of existing files that need to be; a) Stored in a temporary file, b) Modified, and c) Transferred to another server via FTP. All while the server is running in safe mode.

I can't use tmpfile(), because I still wouldn't be able to modify it, before sending it off.

Anyone come across this kind of problem and find a solution? Any ideas at all?

A: 

Beforehand, create a temporary directory owned by the user under which PHP runs.

At run time, create a file in that directory. Put some stuff into its contents. Now you have your temporary file. Finally, send it off via FTP. No problem there.

Borealid