Advertisement
scriptz-team

[PHP] USiNG ARGV iN CLi

Jun 3rd, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. _____ _____ _ _____ _____ _____ _____ _____ _____
  2. ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  3. |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  4. |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  5. |s C R i P T z - T E A M . i N F O|████████████████████████████
  6.  
  7. - iNfO -
  8.  
  9. [PHP] USiNG ARGV iN CLi
  10.  
  11. - NOtIcE -
  12.  
  13. Create new file, call it index.php, and as content paste this into it:
  14. <?php
  15. echo "My name is ".$argv[1];
  16. ?>
  17.  
  18. Run via ssh console:
  19. php ./index.php sCRiPTz
  20.  
  21. Output will be:
  22. Hello my name is sCRiPTz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement