Please would you advise me whether I have struck a MIME type problem on my remote host, I use a paid-for host and the web site works fine except for the function strpos in a PHP feed-back form handler. To test a filter, I enter a URL in a form field that is filtered with strpos to prevent URL entries. I get this error message when I click the submit button:
ForbiddenYou don't have permission to access /form-handler.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request
This occurs even if I set the file handler to CHMOD 777.
The contents of the hosts error log read as follows:-
25-May-2012 12:41:09] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
The file suggesterror.html is definitely present in the directory. The bits of PHP that cause this error message are:-
$suggestion = $_POST['suggestion'] ;
...
$errorsuggesturl = "suggesterror.html" ;
...
//check that no urls have been inserted in the suggestion text area
if (strpos ($suggestion, '://')||strpos($suggestion, 'www') !==false){
header( "Location: $errorsuggesturl" );
exit ;
}
I hope you can help me solve this mystery
Regards
Awestruck