Re: PHTML files showing as blank pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 8, 2008 12:58 PM, tedd <tedd.sperling@xxxxxxxxx> wrote:
> At 3:37 PM -0800 1/5/08, Brady Mitchell wrote:
> >On Jan 5, 2008, at 639AM, A.smith wrote:
> >>  I'm having a problem getting .phtml files to display in a web browser. I
> >>can successfully display a test.php page as per PHP install instructions but
> >>the phtml files show up blank
> >>(in firefox or IE).
> >
> >A blank page often means that there's an error of some kind, but
> >error reporting is turned off.
> >
> >Put the following code in the file that's giving you problems to
> >turn on errors, then reload the file in your browser to see what you
> >get:
> >
> >ini_set('display_errors',1);
> >
> >Brady
>
>
> Yes, but even then you can get a blank page -- it depends upon the
> type of error.
>
> I would start with commenting everything out, and then un-commenting
> statements in steps until the error(s) cause a blank page. Fix the
> errors and try again.

    Or make sure your die(); and exit; lines actually display an error
prior to executing (or, in the case of die(), at the point of
execution).  And be sure to set <? error_reporting("E_ALL"); ?> to see
notices, et cetera, to be sure there aren't undefined variables, et
cetera.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux