4 Replies - 283 Views - Last Post: 24 January 2013 - 07:16 PM Rate Topic: -----

#1 faisal6621  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 31-August 10

no output of php page

Posted 24 January 2013 - 01:29 AM

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?

Is This A Good Question/Topic? 0
  • +

Replies To: no output of php page

#2 e_i_pi  Icon User is offline

  • = -1
  • member icon

Reputation: 795
  • View blog
  • Posts: 1,681
  • Joined: 30-January 09

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.
Was This Post Helpful? 0
  • +
  • -

#3 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3719
  • View blog
  • Posts: 5,990
  • Joined: 08-June 10

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.
<?php
var_dump(ini_get("display_errors"));


Was This Post Helpful? 1
  • +
  • -

#4 creativecoding  Icon User is offline

  • Hash != Encryption
  • member icon


Reputation: 926
  • View blog
  • Posts: 3,205
  • Joined: 19-January 10

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".
Was This Post Helpful? 1
  • +
  • -

#5 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3719
  • View blog
  • Posts: 5,990
  • Joined: 08-June 10

Re: no output of php page

Posted 24 January 2013 - 07:16 PM

View Postcreativecoding, 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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1