Skip to primary content
Skip to secondary content

SYSbible

SYSbible

Main menu

  • Home
  • Contact

Tag Archives: php

How to pass parameters to a PHP script executed through the command line

Posted on January 28, 2010 by unai

The syntax to pass parameters to PHP scripts executed command line is:

php script.php arg1 arg2 arg3

For more information:

  • Control your scripts with command-line PHP
  • PHP CLI: Sending parameters via command line
Posted in cookbook, php | Tagged command-line, php, scripting

Recent Posts

  • Simple logging with rotation and custom format in Python
  • Handling index.html redirection on Jekyll sites under NGINX
  • How to follow repeatable steps that keep your MySQL databases tuned
  • Implementing Apache’s force proxy flag for rewrite rules under NGINX
  • Revoking MySQL Permissions

Categories

  • apache
  • cookbook
  • debian
  • ejabberd
  • firewall
  • jekyll
  • linux
  • load-balancing
  • mysql
  • networking
  • nginx
  • packet-sniffing
  • perl
  • php
  • python
  • security
  • server-monitoring
  • single-sign-on
  • vmware
  • web-serving
  • windows
Proudly powered by WordPress