We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
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]$
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Help with mod_substitute||18||76|
|php hashing methods||3||48|
|how can I close a php page to user visits, but allow the page request to form posts?||5||57|
|Insert PHP into HTML page.||7||51|
Join the community of 500,000 technology professionals and ask your questions.