derick Wed Jun 11 11:25:26 2003 EDT Modified files: /phpdoc/en/features commandline.xml Log: - Fix layout Index: phpdoc/en/features/commandline.xml diff -u phpdoc/en/features/commandline.xml:1.21 phpdoc/en/features/commandline.xml:1.22 --- phpdoc/en/features/commandline.xml:1.21 Wed May 14 03:05:21 2003 +++ phpdoc/en/features/commandline.xml Wed Jun 11 11:25:26 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> +<!-- $Revision: 1.22 $ --> <chapter id="features.commandline"> <title>Using PHP from the command line</title> <!-- NEW DOCUMENTATION STARTS --> @@ -594,21 +594,26 @@ </screen> </para> <para> - Examples: + Examples (lines are wrapped for layout reasons): <screen> <![CDATA[ # Omitting the value part will set the given configuration directive to "1" -$ php -d max_execution_time -r '$foo = ini_get("max_execution_time"); var_dump($foo);' +$ php -d max_execution_time + -r '$foo = ini_get("max_execution_time"); var_dump($foo);' string(1) "1" # Passing an empty value part will set the configuration directive to "" -php -d max_execution_time= -r '$foo = ini_get("max_execution_time"); var_dump($foo);' +php -d max_execution_time= + -r '$foo = ini_get("max_execution_time"); var_dump($foo);' string(0) "" # The configuration directive will be set to anything passed after the '=' character -$ php -d max_execution_time=20 -r '$foo = ini_get("max_execution_time"); var_dump($foo);' +$ php -d max_execution_time=20 + -r '$foo = ini_get("max_execution_time"); var_dump($foo);' string(2) "20" -$ php -d max_execution_time=doesntmakesense -r '$foo = ini_get("max_execution_time"); var_dump($foo);' +$ php + -d max_execution_time=doesntmakesense + -r '$foo = ini_get("max_execution_time"); var_dump($foo);' string(15) "doesntmakesense" ]]> </screen>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php