Bug #4524 [Opn->Csd]: Error in "Example 27-2. Using optional authentication" example php code.
| From: | danielc at analysisandsolutions dot com | Date: | Mon, 06 Jun 2005 22:41:41 +0000 |
| Subject: | Bug #4524 [Opn->Csd]: Error in "Example 27-2. Using optional authentication" example php code. | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-6244@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=4524&edit=1
ID: 4524
Updated by: danielc@analysisandsolutions.com
Reported By: janmartin3 at lycos dot com
-Status: Open
+Status: Closed
Type: Bug
Package: Documentation
Operating System: Kanotix 2005-02
PHP Version: 4.3.11
-Assigned To:
+Assigned To: danielc
New Comment:
Fixed in CVS. Changes will show up next Sunday.
In the future, please provide a URI to the page in question. The
example numbers are reused from page to page.
Previous Comments:
------------------------------------------------------------------------
[2005-06-04 08:05:54] janmartin3 at lycos dot com
Description:
------------
I saved the example cade as peartest.php
But he code will only work when saved as test.php
Reproduce code:
---------------
Line 32 has hard coded file name: test.php
echo "<a href=\"test.php?login=1\">Click here to log in</a>\n";
It should be dynamic:
echo "<a href=\"".$_SERVER['PHP_SELF']."?login=1\">Click
here to log
in</a>\n";
Expected result:
----------------
One can only see this if he is logged in!
Actual result:
--------------
Not Found
The requested URL /dir1/dir2/test.php was not found on this server.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=4524&edit=1