Portal Home > Knowledgebase > Articles Database > PHP bug with the word "sponsor"?


PHP bug with the word "sponsor"?




Posted by MGCJerry, 01-06-2008, 02:33 PM
I have this bit of code that I'm using to create an admin control panel for a CMS but I have encountered something really aggrivating. Is this normal behavior under PHP or is there something funny going on. I've setup a PHPNuke admin style "links" "modules" file structure but it appears anything with the name "sponsor" or "sponsors" is unset when I try echoing it... However, the behavior is odd since I can echo the variable by itself, but it will not echo with the rest of the content. Heres my code: admin/links/links.sponsors.php <--- admin panel info only... * First input variable is the link to that certain admin module... Which when set to "Sponsor" or "Sponsors", becomes null. * 2nd variable is the "title", or the name that shows up in the admin panel.. Which when set to "Sponsor" or "Sponsors", becomes null. * 3rd variable is the icon. Also of which if the image is named "Sponsor" or "sponsors", is also NULLED out. * 4th variable is the admin module version now the main bit of code is this.... Everything else works fine when I assign any other text. So its nothing else in the code... Any ideas? I'm lost. Last edited by MGCJerry; 01-06-2008 at 02:36 PM.

Posted by Paul-M, 01-06-2008, 02:49 PM
See if it returns the error message. Last edited by Paul-M; 01-06-2008 at 02:52 PM.

Posted by MGCJerry, 01-06-2008, 05:56 PM
It returns no error. The image does exist in this location. This problem is also cropping up everywhere else in this bit of the sponsorship code. I can get by this by renaming anything that says "sponsor" to "supporter" or whatever. No, I havent used the word "sponsor" anywhere else in code.

Posted by foobic, 01-06-2008, 06:15 PM
Could be mod_security blocking urls containing "sponsor", though it would be a weird and paranoid rule...

Posted by MGCJerry, 01-06-2008, 06:22 PM
Nope... I'm developing this on a local server who doesnt have mod_security installed. Plus, this issue turns up on pages where "sponsor" is not in the current request URL. I'm going to aimlessly recompile php and see what happens...

Posted by foobic, 01-06-2008, 07:40 PM
When you're done, try running just that isolated code fragment from the command line (ie. eliminate all apache modules) and see if it still does it. FWIW on my current dev machine running PHP 5.2.4 it works...



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
solidload.net (Views: 657)
Andrisoft WANGUARD (Views: 661)

Language: