Hi,
I've worked with PHP5 for a good while and yet it has one problem that
frustrates the hell out of me: when I have syntactic or punctuation errors
in a script I get nothing except a blank white page in the browser. No
message, nothing in the server logs--nothing at all. I've been programming
for 30 years so I know it's not unreasonable to expect some kind of
indication or message about WHERE the problem is occuring. I have to debug
like I used to in assembly by commenting out chunks until it runs.
I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake platform.
Thanks,
Harley 3 1140
What's your error reporting setting? See: http://www.php.net/manual/en/ref.errorfunc.php
and http://www.php.net/manual/en/functio...-reporting.php
Tom
Harley wrote: Hi,
I've worked with PHP5 for a good while and yet it has one problem that frustrates the hell out of me: when I have syntactic or punctuation errors in a script I get nothing except a blank white page in the browser. No message, nothing in the server logs--nothing at all. I've been programming for 30 years so I know it's not unreasonable to expect some kind of indication or message about WHERE the problem is occuring. I have to debug like I used to in assembly by commenting out chunks until it runs.
I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake platform.
Thanks,
Harley
Thanks, Tom. Checking those settings in php.ini did reveal the problem.
Curiously, if you set display_errors = On AND log_errors = On, you get
neither rather than both.
Harley
"Tom" <kl******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com... What's your error reporting setting? See:
http://www.php.net/manual/en/ref.errorfunc.php
and
http://www.php.net/manual/en/functio...-reporting.php
Tom
Harley wrote: Hi,
I've worked with PHP5 for a good while and yet it has one problem that frustrates the hell out of me: when I have syntactic or punctuation errors in a script I get nothing except a blank white page in the browser. No message, nothing in the server logs--nothing at all. I've been programming for 30 years so I know it's not unreasonable to expect some kind of indication or message about WHERE the problem is occuring. I have to debug like I used to in assembly by commenting out chunks until it runs.
I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake platform.
Thanks,
Harley
Also worth noting, the set_error_handler function is great if you want
to customize your error reporting. See the comments on the php.net
for some ideas.
Tom
Harley wrote: Thanks, Tom. Checking those settings in php.ini did reveal the problem.
Curiously, if you set display_errors = On AND log_errors = On, you get neither rather than both.
Harley
"Tom" <kl******@gmail.com> wrote in message news:11**********************@u72g2000cwu.googlegr oups.com... What's your error reporting setting? See:
http://www.php.net/manual/en/ref.errorfunc.php
and
http://www.php.net/manual/en/functio...-reporting.php
Tom
Harley wrote: Hi,
I've worked with PHP5 for a good while and yet it has one problem that frustrates the hell out of me: when I have syntactic or punctuation errors in a script I get nothing except a blank white page in the browser. No message, nothing in the server logs--nothing at all. I've been programming for 30 years so I know it's not unreasonable to expect some kind of indication or message about WHERE the problem is occuring. I have to debug like I used to in assembly by commenting out chunks until it runs.
I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake platform.
Thanks,
Harley This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Rob Ristroph |
last post by:
I have tried out PHP 5 for the first time (with assistance from this
group -- thanks!).
The people I was working with have a site that uses lots of php
objects. They are having problems with...
|
by: Tim Tyler |
last post by:
I'm sure this is a FAQ - but I could not find a coherent statement of the
answer:
Some of my clients want PHP4.
Other ones want PHP5.
Can I run both PHP4 and PHP5 under the same instance of...
|
by: Berislav Lopac |
last post by:
Has anyone thought of developing a library aimed for PHP4 which would give
the kind of functionality that PHP5 has when it comes to working with XML...
|
by: Rob Long |
last post by:
Hey
I've noticed a somewhat annoying feature in PHP5 when it comes to
extended classes and types.
If I declare an interface and a class that implements it, I get a
"compile" error (read parse...
|
by: Terje Slettebø |
last post by:
To round off my trilogy of "why"'s about PHP... :) If this subject have been
discussed before, I'd appreciate a pointer to it. I again haven't found it
in a search of the PHP groups.
The PHP...
|
by: Daniel Andersen |
last post by:
Hey,
We are in the process of rewriting our internal management system (which was
written in PHP4), and figured this would be a good time to migrate to PHP5
to get all the OO goodness it has to...
|
by: xhe |
last post by:
I have just upgraded my php version form php4 to php5. and I met this
problem, and don't know if you know the solution.
My site was written in PHP4, and most parts can be running smoothly in
PHP5,...
|
by: Logos |
last post by:
I have what may be a bug, or may be a misunderstanding on how pass by
reference and class inheritance works in PHP. Since I'm relatively
new to PHP, I'm hoping for a little outside help to shed...
|
by: Jeff |
last post by:
I'm working on a server that is running PHP4.
I'd like to upgrade this so I can use the PHP5 code I have already.
What kind, if any, problems will I have with the existing PHP code base?
I...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |