View Full Version : Writing to a file using fopen under /app/

06-30-2005, 04:04 PM
Hi All,
I'm trying to write to a text file in a location similar to:

using fopen but i get false handle back. i can't use www. it needs to be /app/... I tried http://app/ but still no joy.

when i check for file existance using file_exists("/app/...") it returns true. I can even read the file using this path but for some reason i can't write handle to the file.

Any ideas?

06-30-2005, 06:01 PM
Could be a chmod issue. You can try that.
Post some code for us please, so we can help you evaluate further. If you can use something like is_dir() or is_file() and it returns true, and you can read the file but not write to it, I'd say its either your chmod or your fopen mode.

07-01-2005, 09:17 AM
Spot on!
Thank you.