I have a php page that runs on a local uri on a local nginx server. It is called like this:
http://example.dev/index.php?v=var
Is it possible to call this php page from inside a Bash script in order to make it run just like I do by typing the uri in Firefox?
I tryed to access the script directly in cli:
php /home/public_html/example.dev/index.php
but it didn’t work (it looks that php running under fastCGI and PHP-CLI work somehow differently).
Any ideas?
Try GNU Wget
or cURL
to run it like a browser would.
Note: But this is not CLI in any way.