Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
January 17, 2005, 4:29 pm
rate this thread
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
$controllerForAll = new McControllerForAll();
$pageRender = & $controllerForAll->getObject("McRenderPage", " Called
on the index page, the 31st line of code");
$pageRender->getGlobalEvents(); $pageRender->runMainLoop(); ?>
- R. Rajesh Jeba Anbiah
January 17, 2005, 4:40 pm
- Richards Noah (IFR LIT MET)
January 17, 2005, 8:28 pm
Re: does die() allow PHP to be sent to the browser screen?
No, die _does not_ print out all of the code after it. It does precisely
what you would expect: prints out whatever string you give it and terminates
execution of PHP.
That being said, your problem is probably a typo somewhere. Post the code
that you used (copy & paste, don't retype) and we'll help you find the