Bug #11681 Updated: implode ($argv) leads to error
| From: | zak@php.net | Date: | Tue, 26 Jun 2001 10:15:56 +0000 |
| Subject: | Bug #11681 Updated: implode ($argv) leads to error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58014@lists.php.net to get a copy of this message | ||
ID: 11681
Updated by: zak
Reported By: marotiere@online.fr
Old-Status: Open
Status: Bogus
Bug Type: Variables related
Operating system:
PHP Version: 4.0.6
Assigned To:
Comments:
Relax - it is very unlikely that your work is spoiled. :)
Chances are good that this problem is due to a change in the php.ini file.
Try adding ini_set ('register_argc_argv', 1); at the top of one of your files that uses
the 'short' arguments.
Does it work now? If so, good - then a setting only needs to be changed in the php.ini file.
register_argc_argv will need to be set to On.
Also this is unlikely to be a bug. PHP has many configure options - it is easy to break things
without meaning to if the various options are not understood.
Previous Comments:
---------------------------------------------------------------------------
[2001-06-25 21:22:53] marotiere@online.fr
I don't know if it is PHP3 ? 4 ? Linux ? apache ?
I just know that, after working 1 year and half, this X?#:! hoster has decided to upgrade his
hardware ...
6 months of works spoiled !!!
Anyway... This is the Problem
To avoid these "ugly" and long arguments like:
http://www.mysite.com/index.php?id=12345,
we have adopted a shorter:
http://www.mysite.com/index.php?12345
Begining the "index.php" page, just a simple code:
$what=implode(" ",$argv);
if ($what) {$id=$what;}
And the life can continue ...
And it has continued 1 year and half !
Till today ... after his x%#! change,
The system anwers: Bad Arguments to implode ...
Difficult to contact all my (6000) clients to tell them to modify the link...
Thanks for your help
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11681&edit=2