Anshul:
Never never never never never never never never write files like that in the root folder!!
When you FTP in, you're probably chrooted to your home folder (eg: /home/anshul), which means you cannot get outof that folder. There's a reason for that too ;)
If you just start writing files in any old folder, you're going to really clog up your file system. Make sure all your files stay in /home/myusername. The only exception might be for writing tempory files in /tmp.
Cheers
Edit note:
In addition, you shouldn't have the privileges to write into the root folder. If you do, you're running php (or apache, if it's being access via www) as root, which is very bad practise. I've only ever had to run php as root a few times in my life, and that was only for a very small script that I spent 10 minutes writing and 10 hours checking before running it.
--
Please contact me at:
Colin (dot) Horne (at) gmail (dot) com
|