Hi
I have a PHP script that I want to use from the commandline, and it has a parameter.
Usally I use this in a browser
where I in the script has this.
I can run it on the command line without the parametes like this.
php -c /etc/php5/apache2/ ./script.php
But can anybody tell me how to get the parameter "tid" on the one from the commandline?
Regards
Lars
I have a PHP script that I want to use from the commandline, and it has a parameter.
Usally I use this in a browser
where I in the script has this.
Code:
if(!isset($_GET['tid'])) {
$tid = "1";
} else {
$tid = $_GET['tid'];
}
I can run it on the command line without the parametes like this.
php -c /etc/php5/apache2/ ./script.php
But can anybody tell me how to get the parameter "tid" on the one from the commandline?
Regards
Lars