I am writing a stats script that starts out with an installation script. This script generates the necessary configuration code and writes a new php file to be included in other pages. here is my problem. I realized that in order to get my script to actually write to "config.php" I have to chmod it to 666 ( using chmod("config.php", 0666);
). Now, what can I do if get this?
Warning: chmod failed: Operation not permitted in /home/battlepa/public_html/stats/install.php on line 46
Is there any other way to script write access to this file? Or am I going to have to get the user to do that first? There has to be a way around this, I just dont know of one.
Thank you for any help in advance.
PS: Ive been a Windows brat my entire life and know almost nothing of the Unix/Linux flavor of operating. Sorry if these is a bit easy