MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Commonly with a shell script you need to pass arguments to the script. This is easily done using the built-in '$argv' array as show in the following example: #!/usr/local/bin/php -q <?php $first_name = $argv; $last_name = $argv; print("Hello, $first_name $last_name! How are you today?\n"); ?> So in the above script we're printing out the first two arguments to the script which would be called like this: [dbrogdon@artemis dbrogdon]$ scriptname.ph Darrell Brogdon Which would print out: Hello, Darrell Brogdon! How are you today? [dbrogdon@artemis dbrogdon]$
|Print a zero when there are no results in a PHP MySQL COUNT query||15||43|
|Php recording post||4||36|
|How can I make this form submit to itself?||10||25|
|PHP PDO How do I correctly remove record using DELETE FROM?||1||19|