FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » neither var_dump() nor die() displays anything
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: neither var_dump() nor die() displays anything [message #173635 is a reply to message #173634] Thu, 21 April 2011 16:58 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 4/21/2011 9:07 AM, Jivanmukta wrote:
> I don't see my error, I think. Problem is that only
> var_dump($statementNo) displays text(and $statementNo is !empty).
> Neither var_dump($message) nor die($message) nor echo '#' displays
> text. Function writeToLog() correctly writes to log file.
> I failed to run debugging.
> Here is my code:
>
> // import_statement.php:
> var_dump($statementNo); // works fine
> if (!empty($statementNo)) {
> error(ERRMSG_STATEMENT_ALREADY_IMPORTED); // enters error()
> }
> echo '#'; // here problem
>
> // functions.inc.php:
> function error($message) {
> global $currentUser;
> if (ob_get_length() !== false) {
> ob_end_flush();
> }
> var_dump($message); // here problem
> $page = $_SERVER['SERVER_NAME'] . '/' .
> trim($_SERVER['REQUEST_URI'], '/ ');
> $website = trim(ltrim(ltrim(WEBSITE_PUNYCODE, 'http:'), 'https:'),
> '/ ');
> $page = mb_strstr($page, $website);
> $page = trim(mb_substr($page, mb_strlen($website)), '/ ');
> writeToLog(null, null, $currentUser, null, null, null, "Application
> error: $message Page: $page"); // works fine
> die($message); // here problem
> }
>
> Please help. Thanks in advance.

Have you tried looking at your page source?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP Tutorials
Next Topic: PHP Runs In WinXP Command Window But Not In Browser
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 11:41:52 GMT 2024

Total time taken to generate the page: 0.04113 seconds