Hi
I am trying to debug an upload script and I need to know what the user/group is of the php-script that's running.
My problem is that the webserver settings have '48' as the user/group - presumably 48 means httpd. But when I upload files through PHP, they are moved from the temp folder and the permissions are 744 with the owner as '48'. This means I can't change the file in FTP/SSH.
I am trying to make a script to chmod() the files but the script doesn't do anything and I think it is because the script uses my username, not httpd, but I want to check.
If you have a solution for the bigger problem, amazing. Otherwise, the intermediary one - knowing the PHP script's user/group would be great.
Thanks!
Henry
I am trying to debug an upload script and I need to know what the user/group is of the php-script that's running.
My problem is that the webserver settings have '48' as the user/group - presumably 48 means httpd. But when I upload files through PHP, they are moved from the temp folder and the permissions are 744 with the owner as '48'. This means I can't change the file in FTP/SSH.
I am trying to make a script to chmod() the files but the script doesn't do anything and I think it is because the script uses my username, not httpd, but I want to check.
If you have a solution for the bigger problem, amazing. Otherwise, the intermediary one - knowing the PHP script's user/group would be great.
Thanks!
Henry
Comment