473,324 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

changing the include standard error message

hi all,

is it possible to instead of the standard include error to have a customised
message print

i know if you put @ before the include statement no error is shown how can
i then add my own message ?

thanks,

Chris
Jul 17 '05 #1
3 1448
chris wrote:
is it possible to instead of the standard include error to have a
customised message print

i know if you put @ before the include statement no error is shown
how can i then add my own message ?


if (!@include("somefile")) {
print "error";
}
JW

Jul 17 '05 #2
> i know if you put @ before the include statement no error is shown how
can
i then add my own message ?


You can take a look at this page: http://www.php.net/errorfunc for some
information on harcore error reporting.. :)
For me it sometimes too much to do this, but its a good wat to learn how its
working..:)

Good luck!

regards,
Glenn O Larsen
Jul 17 '05 #3
chris wrote:
hi all,

is it possible to instead of the standard include error to have a
customised message print

i know if you put @ before the include statement no error is shown
how can i then add my own message ?


http://www.php.net/manual/en/functio...or-handler.php
Jul 17 '05 #4

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

Similar topics

7
by: Pete Forman | last post by:
I'm new to PHP and trying to get a handle on some basics. require() and include() both load up a file. require() exits if the inclusion fails while include() issues a warning and the script...
3
by: skumar | last post by:
I am a newbie with C++ and unable to understand this warning/error message : localhost > g++ -Wall j++.cpp In file included from /usr/include/c++/3.2.2/backward/iostream.h:31, from j++.cpp:2:...
6
by: Boyd Reilly | last post by:
I have a form that has the user pick the type of question he will answer. The input field will be a text, numeric or date type. So, after the question is answered, I need to change the input...
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
16
by: chris | last post by:
im new to javascript but slowly getting better what i want to do is have some text on the screen and when an event happens for example click a button the text would change to what i want. how...
5
by: b.stewart | last post by:
I have only been using C++ for a few afternoons and i still get confused at nearly every line i type so maybe someone here can help me. Im trying to write a small program that can change a...
60
by: Derrick Coetzee | last post by:
It seems like, in every C source file I've ever seen, there has been a very definite include order, as follows: - include system headers - include application headers - include the header...
11
by: Duncan Winn | last post by:
I would like to use CStringArray, but when I try to include afxcol.h my compiler (VS.NET) complains that... WINDOWS.H already included. MFC apps must not #include <windows.h> Any...
13
by: Michael Bell | last post by:
Working my way through Koenig & Moo "Accelerated C++" and using Borlang Builder 5 (but that is probably not relevant) I reached exercise 1-1 and typed in #include <vcl.h> #pragma hdrstop...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.