473,507 Members | 2,374 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP error not display

I have installed Apache and PHP 5 on my machine.
I have use Smarty and Pear to help me with the general template of my
page. I was able to have a page loaded onto the my browser with not
error but when I intentionally create an error on the page a blank page
load with nothing on it. Does anybody know how to make the error come
out.

The code want to use to generate the error

require_once 'inexistent_file.php';

and since I dont have a file name inexistent_file.php an error should
be generated.

Sorry if the question is unclear. I am very new to php/apache and dont
really know how to put the question in a more formal way. Any help is
greatly appreciated. Thanks

Jul 26 '06 #1
2 1245
Wrong newsgroup, this is for ASP.NET - sorry!
ne*******@yahoo.com wrote:
I have installed Apache and PHP 5 on my machine.
I have use Smarty and Pear to help me with the general template of my
page. I was able to have a page loaded onto the my browser with not
error but when I intentionally create an error on the page a blank page
load with nothing on it. Does anybody know how to make the error come
out.

The code want to use to generate the error

require_once 'inexistent_file.php';

and since I dont have a file name inexistent_file.php an error should
be generated.

Sorry if the question is unclear. I am very new to php/apache and dont
really know how to put the question in a more formal way. Any help is
greatly appreciated. Thanks
Jul 26 '06 #2
require_once does not generate an exception, it raises an E_WARNING status
which is a nonfatal runtime error. This type of error does not halt the
script - hence you see no visible error. So you will need to evaluate the
return code of require_once and evaluate its success/or not.

Read up on PHP error handling here
http://www.informit.com/articles/art...?p=170279&rl=1

also. you'll typically get better responses in a PHP support group than one
for ASP.NET

Regards

John Timney (MVP)
<ne*******@yahoo.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
>I have installed Apache and PHP 5 on my machine.
I have use Smarty and Pear to help me with the general template of my
page. I was able to have a page loaded onto the my browser with not
error but when I intentionally create an error on the page a blank page
load with nothing on it. Does anybody know how to make the error come
out.

The code want to use to generate the error

require_once 'inexistent_file.php';

and since I dont have a file name inexistent_file.php an error should
be generated.

Sorry if the question is unclear. I am very new to php/apache and dont
really know how to put the question in a more formal way. Any help is
greatly appreciated. Thanks

Jul 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5011
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
5
1957
by: hpy_awad | last post by:
I wrote that example from a book and there is en error in the display module that it does not showing all the records are entered in the input module. I traced with some printf statments without...
10
2681
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
2
1675
by: ringo | last post by:
I've come accross an interesting problem populating an asp.net datagrid. I am trying to bind XML data to a datagrid as I've done in countless other applications, the only difference this time being...
1
2835
by: Ramanfromoz | last post by:
Hi, Developing a new we application. Everything okay on my local WIN XP PROFESSIONAL, IIS 5.0 running locally. The website is running smoothly. Now, the same code I am copying over to a...
2
2734
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include...
3
8388
by: Danigan | last post by:
I could about swear this was working perfectly while I was adding some other functionality somewhere else. I now removed that functionality and it doesn't work. If someone could find what I broke,...
2
2300
by: jthep | last post by:
I'm trying to get this piece of code I converted from C to work in C++ but I'm getting an access violation error. Problem occurs at line 61. Someone can help me with this? The function...
3
2649
by: gokulagopal | last post by:
I am sending the code please help me in finding the error and correct it.The code is below: import java.awt.*; import java.awt.event.*; class CalcFrame extends Frame { ...
4
1605
by: surja | last post by:
Hi, I have written a code to download images from a server end desktop, but while running the code ,WTK is showing a runtime error " Create image from Byte array Uncaught exception...
0
7223
marktang
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,...
0
7111
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...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7376
jinu1996
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...
0
7485
tracyyun
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.