Fwd: [PHP] PHP code dissapeared / No output?
| From: | gordonisnz at gmail dot com | Date: | Tue, 20 May 2025 04:34:17 +0000 |
| Subject: | Fwd: [PHP] PHP code dissapeared / No output? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-328710@lists.php.net to get a copy of this message | ||
I solved my issue a few days ago (I thought I replied to this thread..)
i dont know what the problem was, but basically.
- renamed old code (problem) to (name).bak.php - backup file..
did a new file of original name - copy/pasting the routines one at a
time.. & the 'new' script worked...
dont know why original one didn't
G.
---------- Forwarded message ---------
From: Patty Aguayo <patty@aguayofamily.org>
Date: Tue, 20 May 2025 at 10:22
Hi Gordon,
Hope you are well ...
It's just a hunch from having been bitten by empty responses in
Apache/PHP scripts before ... In my experience, any whitespace outside
of PHP code is treated as the beginning of HTML output and so it will
interrupt execution of PHP further down ...
--
Gordon.