PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Well, I'm still new to PHP and my web host has error reporting turned off
So maybe someone who knows PHP a little better can tell me whats wrong with this code, because since all I get is a blank page in the file that I have it in, I'm guessing its stopping the script from running
Majoraslayer wrote:Well, I'm still new to PHP and my web host has error reporting turned off
So maybe someone who knows PHP a little better can tell me whats wrong with this code, because since all I get is a blank page in the file that I have it in, I'm guessing its stopping the script from running
I've determined that the problem lies within this block of code, because when I comment it out, everything works fine.
The code itself looks fine. However, by the time you get to fwrite, you are making an assumption that fopen was successful. You need to make sure the function
worked with success. Try this...
I tried your code, and still I have no error report and just a blank page. Yes, its on a PHP enabled server, but the script that the block of code is in is a phpBB administration page I created. When I comment out that block of code it all works fine, but with it in, the left pane of the admin panel is blank. It does the same thing with your code as it does mine, and still no error reporting.