I'm working on a project for Management System. And I'm a newbie in PHP.
The actual problem is with the AdminHomePage. When the site administrator login, it will be sent to adminPage.php page. The admin is able to successfully login but there will be no output on the adminPage.php. When I'm trying to see the source code in browser, it is empty.
Can anybody help with this?
no output of php page
Page 1 of 14 Replies - 122 Views - Last Post: 24 January 2013 - 07:16 PM
Replies To: no output of php page
#2
Re: no output of php page
Posted 24 January 2013 - 01:31 AM
You'll need to post the code in adminPage.php for us to be able to help.
#3
Re: no output of php page
Posted 24 January 2013 - 03:09 AM
Often when you see a completely empty page, there has been a fatal error (like a syntax error) during the parsing of the PHP code, and it's not being shown because the error reporting is off.
So, do you have error reporting turned on? If you don't know, try creating a new PHP file somewhere and putting this into it. It'll show you whether or not your server is showing errors.
So, do you have error reporting turned on? If you don't know, try creating a new PHP file somewhere and putting this into it. It'll show you whether or not your server is showing errors.
<?php
var_dump(ini_get("display_errors"));
#4
Re: no output of php page
Posted 24 January 2013 - 07:05 PM
On rare occurances I get some type of error that completely kills the program and displays no output, regardless of error reporting. This may just be my server configuration but either way, instead of relying on turning on error reporting (even though you should be doing this with development), you should first report back what your error log says.
You can find the location of the error log in a linux setup by looking inside of the file /etc/php.ini for the line starting with "error_log".
You can find the location of the error log in a linux setup by looking inside of the file /etc/php.ini for the line starting with "error_log".
#5
Re: no output of php page
Posted 24 January 2013 - 07:16 PM
creativecoding, on 25 January 2013 - 02:05 AM, said:
On rare occurances I get some type of error that completely kills the program and displays no output, regardless of error reporting.
If you turn error reporting on in the code itself, using ini_set, and there is a parse error, it won't show. The code will never reach a point where the error reporting is actually turned on. Perhaps that could be it?
But yea, looking at the logs (if they are enabled) is a good idea too.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote






|