note 28895 added to function.php-sapi-name
| From: | grozdanpopov at mac dot com | Date: | Mon, 27 Jan 2003 12:37:36 +0000 |
| Subject: | note 28895 added to function.php-sapi-name | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42814@lists.php.net to get a copy of this message | ||
Following your instructions I have recorded this disappointing session with the Terminal:
sapi_type = php_sapi_name();
Last login: Mon Jan 27 12:21:51 on ttyp1
Welcome to Darwin!
[Grozdan-Popovs-Computer:~] grozdan% $sapi_type = php_sapi_name(); \
? --if ($sapi_type == "cgi") \
? --print "You are using CGI PHP\n"; \
? --else \
? --print "You are not using CGI PHP\n";
Badly placed ()'s.
[Grozdan-Popovs-Computer:~] grozdan%
So, what was wrong? when I have copied your text:
--
http://www.php.net/manual/en/function.php-sapi-name.php
http://master.php.net/manage/user-notes.php?action=edit+28895
http://master.php.net/manage/user-notes.php?action=delete+28895
http://master.php.net/manage/user-notes.php?action=reject+28895