-Hellow DANIWEB?...
-I've been wondering if there is a way I can Use My Own Warning Message instead of that provided by Php during file include Failure...
-NOTE:I dont intend to Mean Error Messages that We can write to a User when something goes wrong,like failure of inserting data inputs to the data base or like so.
-What I mean is the warning messages I get when I use the function:include("sample_files/sample.php");
and when the File sample.php doesn't exist Php gives Me a warning:
"Warning: this_used_object ::include() [function.include]: Failed opening 'sample_files/sample.php' for inclusion (include_path='.;C:\php5\pear') in My Root_Folder on line 240"
-And My be I use something like "Sorry the Page is Under Maintanance Please Visit some other time"
-Any Sugestions ,please?...
Bile
10
Newbie Poster
Recommended Answers
Jump to PostCreate a custom error handler
It is possible to override PHP's default mechanism for handling errors. This option gives the programmer full control over what actions to take when an error is raised. Note that since this method completely replaces PHP's native functionality, it is important to pay special care …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.