Complete beginner question...
Let's say I have SSH access to my website. And, I have a file:
mywebsite.com/foo/my_script.php
How can I use SSH to run my_script.php?
Complete beginner question...
Let's say I have SSH access to my website. And, I have a file:
mywebsite.com/foo/my_script.php
How can I use SSH to run my_script.php?
Just make sure that the user you use to login is the user you want to run the script as.
Also make sure that you actually have /usr/bin/php installed. Running a PHP script from the command line isn't the same as starting it from say Apache.
You can also make the PHP file like this:
and then just type
in SSH and it will work also