How would one include a footer on a page if PHP has stopped executing during an error?
ElegantElephant
0
Light Poster
Recommended Answers
Jump to Postyou fix the error..
depending on the kind of error you might try to catch it..
Jump to Posti don't think im really getting what your trying to do, specifically why your using exit() but to do anything after calling exit() you could register a shutdown function:
function shutdown() { include 'footer.php'; } register_shutdown_function('shutdown');
the "OOP way" would be using your __deconstruct() which will be …
All 8 Replies
MrYrm
0
Light Poster
ElegantElephant
0
Light Poster
MrYrm
0
Light Poster
ElegantElephant
0
Light Poster
MrYrm
0
Light Poster
ElegantElephant
0
Light Poster
MrYrm
0
Light Poster
Bharane_1
0
Newbie Poster
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.