Ok, let's get some more information into the equation here.
I really don't want to have 777 directories either, but in order for my script to be able to upload files, re-write configuration files, etc. which are scattered among dozens of directories without the user having to FTP in and CHMOD til their eyes bleed, what is the solution?
I am running a dedicated Redhat 7.2 host and any files or folders that PHP/Apache writes to the drive are owned by user "99".
I guess as long as I have PHP create the directories like:
mkdir("blah");
chmod("blah", 0700);
should I be OK?
Also, there is a lot of hype about not having world-writeable directories. As long as all file uploads go through strict file-type checking by the PHP script, and other users do not have access to the webhost's hard drive, isn't that safe?