Sysbible

A paradise for Sysads. Hosted on Leanservers.

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About

Tag Archives: php

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

Posted on January 28, 2010 by unai
Reply

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 | Leave a reply

Recent Posts

  • Implementing Apache’s force proxy flag for rewrite rules under NGINX
  • Revoking MySQL Permissions
  • How to pass parameters to a PHP script executed through the command line
  • Quick and dirty fix for VMware Linux guests loosing clock accuracy
  • Dumping a mysql database excluding one or several tables

Categories

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