Kristian_C Posted January 15, 2007 Share Posted January 15, 2007 Hey :)Is there a way to redirect, etc an include error? like :Warning: main(thatsite.php) [function.main]: failed to open stream: No such file or directory in ++++is there a way?->Kristian_C. Link to comment Share on other sites More sharing options...
Escee Posted January 15, 2007 Share Posted January 15, 2007 You could use something like this: function my_include ( $file ){ if ( !include ( $file . '.php' ) ) { header ( 'location: error.php?type=include' ); }} Link to comment Share on other sites More sharing options...
Kristian_C Posted January 15, 2007 Author Share Posted January 15, 2007 Thanks ...->Kristian_C. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now