|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17006 $<id>=$somthing dosnt work
Submitted: 2002-05-04 17:00 UTC Modified: 2002-05-04 17:07 UTC
From: admin at chartwayenterprises dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.2.0 OS: Slackware 8.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
28 - 13 = ?
Subscribe to this entry?

 [2002-05-04 17:00 UTC] admin at chartwayenterprises dot com
My web-site is set up using php include "$id", with id being set in the Address bar. This worked fine on PHP4.1.2, on 4.2.0 tho (Apache 1.3.20), it always loads the same, default id. the "." one.. when I try an echo "id" it coms up with nothing, so PHP isn't seeing the $id=xyz part. if you want to take a look - as you can see, even though the id is clearly there, the ID pages (which used to load on PHP4.1.2) dont appear.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-04 17:07 UTC]
Turn on register_globals in your php.ini file.  And I sure hope you are doing some sanity checking on this $id.  What happens if someone puts id=/etc/passwd in the URL?
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 22 20:01:29 2024 UTC