I have a php file and I want get exact variable from ubuntu command line
how can I do it?
Probably, you want to pass the arguments from the command line as follows:
php /path/to/www/path/to/script.php arg1 arg2
In PHP script, you can access the variables as follows.
<?php // $argv is '/path/to/wwwpublic/path/to/script.php' $argument1 = $argv; $argument2 = $argv; ?>
Please let me know your thoughts.