Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

#30544 [Opn->Bgs]: conflicted -C descriptions
ID:          30544
Updated by:  vrana@php.net
Reported By: terrafrost at gmail dot com
-Status:      Open
+Status:      Bogus
Bug Type:    Documentation problem
PHP Version: 4.3.9
New Comment:

This note is written in "The CLI SAPI does not change the current
directory to the directory of the executed script" part. So it's right
- you can achieve this CLI behavior in CGI with -C switch.

I changed "the CLI SAPI" to "this CLI SAPI" for your convenience.


Previous Comments:
------------------------------------------------------------------------

[2004-10-23 21:03:30] terrafrost at gmail dot com

Description:
------------
The portion of the PHP manual entitled "Using PHP from the command
line" states that "The CGI SAPI supports the CLI SAPI behaviour by
means of the -C switch when run from the command line.":

http://us2.php.net/features.commandline

However, "php -h" says of the -C switch, "Do not chdir to the script's
directory".

Further, running php -Cr "echo 'test';" results in an error saying that
the -r switch doesn't exist, even though it should if it were acting
like the cli version.

So..  the doc would appear to be wrong.



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=30544&edit=1

Report this thread to moderator Post Follow-up to this message
Old Post
vrana@php.net
10-28-04 01:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:20 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.