Get error information
Posted: Mon May 01, 2006 11:30 pm
Ok Feyd, trick question...
I need to detect when a include_* has been called and failed because file didn't exist...but instead of choking the script...I need to be able to get the name of the path of the file requested programatically, without parsing output errors...
As that obviously would be a bad way of getting the path requested...cuz i'm sure that changes frequently, language, etc...
Possible?
p.s-This is not a situation where I can use file_exists() I need the script to execute, fail throwing a warning and then be able to get the path from that warning of the requested file...
I've considered using the buffer functions and extracting the suggested path, but that doesn't seem fitting as the message could likely change drastically from one machine to another...???
I've looked for a get last error type funciton and couldn't find anything???
I need to detect when a include_* has been called and failed because file didn't exist...but instead of choking the script...I need to be able to get the name of the path of the file requested programatically, without parsing output errors...
As that obviously would be a bad way of getting the path requested...cuz i'm sure that changes frequently, language, etc...
Possible?
p.s-This is not a situation where I can use file_exists() I need the script to execute, fail throwing a warning and then be able to get the path from that warning of the requested file...
I've considered using the buffer functions and extracting the suggested path, but that doesn't seem fitting as the message could likely change drastically from one machine to another...???
I've looked for a get last error type funciton and couldn't find anything???