note 95774 added to features.commandline

From: Date: Thu, 21 Jan 2010 12:29:03 +0000
Subject: note 95774 added to features.commandline
Groups: php.notes 
Request: Send a blank email to php-notes+get-165161@lists.php.net to get a copy of this message
I suspect this information may be useful to some of you... user@server [~]# php -r 'echo "test\n";' Error in argument 1, char 2: option not found r Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>] php <file> [args...] -a Run interactively -C Do not chdir to the script's directory -c <path>|<file> Look for php.ini file in this directory -n No php.ini file will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f <file> Parse <file>. Implies `-q' -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -q Quiet-mode. Suppress HTTP Header output. -s Display colour syntax highlighted source. -v Version number -w Display source with stripped comments and whitespace. -z <file> Load Zend extension <file>. user@server [~]# php -v PHP 5.2.8 (cgi) (built: Feb 9 2009 22:36:46) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with the ionCube PHP Loader v3.1.34, Copyright (c) 2002-2009, by ionCube Ltd., and with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies user@server [~]# php-cli -r 'echo "test\n";' test ---- Server IP: 69.147.83.197 Probable Submitter: 82.152.138.226 ---- Manual Page -- http://www.php.net/manual/en/features.commandline.php Edit -- https://master.php.net/note/edit/95774 Del: integrated -- https://master.php.net/note/delete/95774/integrated Del: useless -- https://master.php.net/note/delete/95774/useless Del: bad code -- https://master.php.net/note/delete/95774/bad+code Del: spam -- https://master.php.net/note/delete/95774/spam Del: non-english -- https://master.php.net/note/delete/95774/non-english Del: in docs -- https://master.php.net/note/delete/95774/in+docs Del: other reasons-- https://master.php.net/note/delete/95774 Reject -- https://master.php.net/note/reject/95774 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165161) next »