Re: does die() allow PHP to be sent to the browser screen?
From: Tony Marston (tony_at_NOSPAM.demon.co.uk)
Date: 01/18/05
- Next message: Derek Fountain: "Re: PHP Recruitment Advice"
- Previous message: Jan Pieter Kunst: "Re: sharing information across requests"
- In reply to: lkrubner_at_geocities.com: "does die() allow PHP to be sent to the browser screen?"
- Next in thread: Andy Barfield: "Re: does die() allow PHP to be sent to the browser screen?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 18 Jan 2005 06:16:43 -0000
The die() function does not print out anything. You have some code in your
application that does when an error occurs. I suggest you look for it and
change it.
-- Tony Marston http://www.tonymarston.net <lkrubner@geocities.com> wrote in message news:1105986555.248426.279140@c13g2000cwb.googlegroups.com... > > I'm shocked to see that on a page that failed, all the PHP that came > after a die() statement got sent to the screen, so anyone could see it. > If I'd had passwords visible in the code, I'd be in deep trouble. This > is what I saw on screen: > > ----------------------------------- > > Whoa. Serious misconfiguration, dude. The software is looking > everywhere for a file called McControllerForAll.php but not finding it. > It needs that file in a big way. Spelling is case senstive. If somehow > the file is lost, you can always find a new copy at Public Domain > Software"); > > $controllerForAll = new McControllerForAll(); > $controllerForAll->getConfig(); > $controllerForAll->includeTheFilesThatThisSoftwareNeedsToRun(); > $pageRender = & $controllerForAll->getObject("McRenderPage", " Called > on the index page, the 31st line of code"); > $pageRender->getGlobalEvents(); $pageRender->runMainLoop(); ?> >
- Next message: Derek Fountain: "Re: PHP Recruitment Advice"
- Previous message: Jan Pieter Kunst: "Re: sharing information across requests"
- In reply to: lkrubner_at_geocities.com: "does die() allow PHP to be sent to the browser screen?"
- Next in thread: Andy Barfield: "Re: does die() allow PHP to be sent to the browser screen?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|