How To Execute A PHP File Through The Command Terminal
- Forums
- Linux Hosting
- How To Execute A PHP File Through The Command Terminal
this page is for showing peole how to execute or run a PHP file through a linux system for example using the shell commands available [483], Last Updated: Sat May 18, 2024
wallpaperama
Sat Mar 15, 2008
2 Comments
1451 Visits
my mind is going to explode soon.
im going crazy trying to figure this out.
i want to be able to create a directory on all my website, but because when you run a scrip in php, it runs it as the user apache and ofcourse, the other pages are different user so when i try to execute the php script, it fails because it says i dont have permissions.
i was wondering if there is a way to run a php scrip at root?
thanks.
you can do it very easy for example like this:
php -p path/to/file.php