p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: No Parse Errors


Message #1 by djfixate@h... on Fri, 3 May 2002 15:19:43
Hi, i've been getting blank pages when i load scripts that have parse 
errors. It seems i no longer get the messages. Does anyone know where the 
setting for this is i'm using w2k PWS PHP4.

here is the script i wrote and got a blank page

<?

eco "hello";

?>

puposely left the h out of echo, and got no result, no error message. 

It's really anoying.

any help would be great.
Message #2 by Peter Fusco <beowulf_ct@y...> on Fri, 3 May 2002 07:25:40 -0700 (PDT)
have you tryed 
<?php
echo "hello";
<"


--- djfixate@h... wrote:
> Hi, i've been getting blank pages when i load
> scripts that have parse 
> errors. It seems i no longer get the messages. Does
> anyone know where the 
> setting for this is i'm using w2k PWS PHP4.
> 
> here is the script i wrote and got a blank page
> 
> <?
> 
> eco "hello";
> 
> ?>
> 
> puposely left the h out of echo, and got no result,
> no error message. 
> 
> It's really anoying.
> 
> any help would be great.
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
Message #3 by "Jason DeWitt" <roxet@c...> on Fri, 3 May 2002 09:53:10 -0500
I have seen that happen on one place where I have an account. I have a
server running on my workstation at work, I have everything working just
like I want on there, but when I upload it to this host I get the blank
pages. And there aren't any errors that I can find.  On my server I have
error reporting to E_ALL and register globals is turned off, and it reports
no errors or notices to me.

I don't know what is going on there

----- Original Message -----
From: "Peter Fusco" <beowulf_ct@y...>
To: "beginning php" <beginning_php@p...>
Sent: Friday, May 03, 2002 9:25 AM
Subject: [beginning_php] Re: No Parse Errors


> have you tryed
> <?php
> echo "hello";
> <"
>
>
> --- djfixate@h... wrote:
> > Hi, i've been getting blank pages when i load
> > scripts that have parse
> > errors. It seems i no longer get the messages. Does
> > anyone know where the
> > setting for this is i'm using w2k PWS PHP4.
> >
> > here is the script i wrote and got a blank page
> >
> > <?
> >
> > eco "hello";
> >
> > ?>
> >
> > puposely left the h out of echo, and got no result,
> > no error message.
> >
> > It's really anoying.
> >
> > any help would be great.
> >
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
>

Message #4 by "Nikolai Devereaux" <yomama@u...> on Fri, 3 May 2002 09:01:11 -0700
> have you tryed
> <?php
> echo "hello";

Uh, Peter?  Did you see this part of his email?

> > puposely left the h out of echo, and got no result,
> > no error message.

He's explicitly trying to generate a parse error, and wondering why he's not
seeing one.


I've never seen this problem before.  The only thing I can suggest is run a
phpinfo script and check to see that all the configuration values are what
you expect them to be.  It's possible that error_reporting is in fact set to
supress all error and warning output.


nik

Message #5 by "Jason DeWitt" <roxet@c...> on Fri, 3 May 2002 12:28:20 -0500
I just checked the phpinfo() on the account where I am having the same
problem and I noticed that "display_errors" is set to 'off'.  I saw how to
change these directives in a .htaccess file the other day, but I'll be
damned if I can find it now that I need it. =/

----- Original Message -----
From: "Nikolai Devereaux" <yomama@u...>
To: "beginning php" <beginning_php@p...>
Sent: Friday, May 03, 2002 11:01 AM
Subject: [beginning_php] Re: No Parse Errors


>
> > have you tryed
> > <?php
> > echo "hello";
>
> Uh, Peter?  Did you see this part of his email?
>
> > > puposely left the h out of echo, and got no result,
> > > no error message.
>
> He's explicitly trying to generate a parse error, and wondering why he's
not
> seeing one.
>
>
> I've never seen this problem before.  The only thing I can suggest is run
a
> phpinfo script and check to see that all the configuration values are what
> you expect them to be.  It's possible that error_reporting is in fact set
to
> supress all error and warning output.
>
>
> nik
>
>

Message #6 by "Juliet May" <jmay@s...> on Fri, 3 May 2002 11:47:40 -0600
I was having a similar problem of my errors not showing. You might try
rebooting your machine or just restarting your web server. I'm guessing that
the changes in my ini file didn't take effect until I rebooted and that is
what fixed the problem for me.

> I've never seen this problem before.  The only thing I can suggest is run
a
> phpinfo script and check to see that all the configuration values are what
> you expect them to be.  It's possible that error_reporting is in fact set
to
> supress all error and warning output.
>
>
> nik
>
>
>

Message #7 by "Nikolai Devereaux" <yomama@u...> on Fri, 3 May 2002 10:52:12 -0700
> I just checked the phpinfo() on the account where I am having the same
> problem and I noticed that "display_errors" is set to 'off'.  I saw how to
> change these directives in a .htaccess file the other day, but I'll be
> damned if I can find it now that I need it. =/

Don't use .htaccess, use a PHP function instead.
  http://www.php.net/error_reporting

You can modify php configuration parameters in .htaccess files only if php
is installed as an apache module.


take care,

Nik

Message #8 by djfixate@h... on Sat, 4 May 2002 01:12:53
THanks for the replies guys. I don't know what's going on. Do you think i 
need to change anything in the PHP.ini????

i wouldn't be my internet browser options would it??

Message #9 by "Nikolai Devereaux" <yomama@u...> on Fri, 3 May 2002 17:50:10 -0700
> THanks for the replies guys. I don't know what's going on. Do you think i
> need to change anything in the PHP.ini????

check the error_reporting line in php.ini, or simply (like I suggested
earlier) use the error_reporting() function.

It not only lets you set a new level, but returns the previous level so you
can see what it was set as.

nik


  Return to Index