Forum Moderators: coopster
I run an ldap auth script that sits 2 layers down from it (main.php > archiveindex.php > ldapauth.php)
If someone enters a wrong password, i get that header passed.
Is there any way of stopping the headers being displayed, and display a custom error?
If you're calling the functions in your main page from the ldap page, why not do something like:
<?php
if (!@ldap_function()) {
// header('Location: [yoursite.com...]
// echo 'We're sorry, there was an error';
}
?>
Or something. I use @ in my database classes to muffle warnings etc when I'm testing.