|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-12-25 02:08 UTC] derick@php.net
[2002-12-25 03:34 UTC] pollita@php.net
[2002-12-25 14:41 UTC] gschlossnagle@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 22:00:01 2025 UTC |
I've been looking for PEBKAC but it doesn't seem to be the case. Here's the commandline output (with some whitespace changes), this is latest checkout of the PHP_4_3 branch and also exists in HEAD: rock:/cvs/a/php4# cat a.php <?php print "Hello World\n"; ?> rock:/cvs/a/php4# sapi/cgi/php -v PHP 4.3.0-dev (cgi), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies rock:/cvs/a/php4# sapi/cgi/php -q a.php Content-type: text/html X-Powered-By: PHP/4.3.0-dev Hello World rock:/cvs/a/php4# sapi/cli/php a.php Hello World rock:/cvs/a/php4# sapi/cgi/php -h 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>. rock:/cvs/a/php4# And now from a PHP 4.2.3 CGI binary: rock:/cvs/a/php4# php4 -v 4.2.3 rock:/cvs/a/php4# php4 a.php X-Powered-By: PHP/4.2.3 Content-type: text/html Hello World rock:/cvs/a/php4# php4 -q a.php Hello World rock:/cvs/a/php4#