... will print a blank white page? None of the functions use try/catch blocks or other error handling techiques. If they contained faulty code or triggered a runtime error, it would print an error message - right?
I should also point out that essentially the same code worked well the week before last.PHP Code:error_reporting(E_ALL);
$var1 = "something";
$var2 = $var1 . " else";
if (empty($var1)) {
echo "Debugging message 1";
doSomething();
}
else {
echo "Debugging message 2";
if ($var2 == "something else") {
echo "Debugging message 3";
doSomethingElse($var1);
}
else {
echo "Debugging message 4";
doAnotherThing();
}
}
Moderators: I previously posted this to the JavaScript forum by mistake. As you may guess, I've had a very long day trying to figure this out.Please delete that thread.



Please delete that thread.

I'm curious.



Bookmarks