Gias Kay
December 13th, 2009, 08:23 PM
Hi all,
As far as I know, below is one of the ways to have a shell script executing a PHP file, providing that the PHP file can be reached through the internet:
#!/bin/sh
wget -t 1 -q -O - "http://localhost/scripts/example.php"
My question is, whether I can put the PHP file inside my home directory (keeping it away from the net for security reasons) but still being able to execute it? And if so, what is the correct Shell script to do the task? Thanks for your help!
As far as I know, below is one of the ways to have a shell script executing a PHP file, providing that the PHP file can be reached through the internet:
#!/bin/sh
wget -t 1 -q -O - "http://localhost/scripts/example.php"
My question is, whether I can put the PHP file inside my home directory (keeping it away from the net for security reasons) but still being able to execute it? And if so, what is the correct Shell script to do the task? Thanks for your help!