|PHP-CLI + File Permissions||#1|
When you run a php script in the command line, does is execute with the read/write permissions of the current user or what?
posted date: 2008-12-22 14:51:00
|Re: PHP-CLI + File Permissions||#3|
Yes, it runs with the permissions of the current user. Just like executing any other command-line program.
posted date: 2008-12-22 14:59:00
|Re: PHP-CLI + File Permissions||#4|
stupid SO wouldn't allow me "yes." as an answer ;)
posted date: 2008-12-22 15:00:00
|Re: PHP-CLI + File Permissions||#5|
It would be helpful if you could provide more details about what OS you are running on.
posted date: 2008-12-22 15:01:00
|Re: PHP-CLI + File Permissions||#6|
Yes, it will run as the current user in a default setup.If you where on a unix system you could change this by adjusting the setuid bit of the php cli binary. Of course doing so would be a bad idea.
posted date: 2008-12-22 15:03:00
|Re: PHP-CLI + File Permissions||#7|
I'm running linux, but I was wanting to know for windows as well since the script I'm working on will be running on a windows server.
posted date: 2008-12-22 15:06:00
|select page: « 1 »|