Ownership - who's that?
Posted: Fri Nov 15, 2002 9:42 am
Im new to PHP so please bare with me, I searched but couldnt find an answer.
I have a simple PHP script that creates a file. The program creates the file with no problem but I noticed that I cant use my edit.php program to make changes and realized that the ownership of the file is '48' and not the domain, what am I doing wrong? Is it that 'W'?
I have a simple PHP script that creates a file. The program creates the file with no problem but I noticed that I cant use my edit.php program to make changes and realized that the ownership of the file is '48' and not the domain, what am I doing wrong? Is it that 'W'?
Code: Select all
$fp = fopen("$planfile","w");
fputs ($fp, "<?php\r\n");
fputs ($fp, "\$ProfileUsername="$NewUser";\r\n");
fputs ($fp, "\$ProfileActive="yes";\r\n");
fputs ($fp, "\$ProfileName="$uName";\r\n"); fputs ($fp, "\$ProfileEmail="$uEmail";\r\n");
fputs ($fp, "\$ProfileEditPassword="$uPassword";\r\n");
fputs ($fp, "?>\r\n");
fclose ($fp);