Esmail Fahimi
10-08-2009, 07:55 PM
My page submits http://www.test.com/public_html/cgi-bin/test.php which causes error:
404 Not Found
The requested URL /public_html/cgi-bin/test.php does not exist.
Here is the test.php
--------------------
<?php
$to = 'support@test.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: sales@test.com' . "\r\n" .
'Reply-To: sales@test.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
I can run this php from shell and it works.
What I am doing wrong?
Any pointers will be highly appreciated.
Thanks
404 Not Found
The requested URL /public_html/cgi-bin/test.php does not exist.
Here is the test.php
--------------------
<?php
$to = 'support@test.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: sales@test.com' . "\r\n" .
'Reply-To: sales@test.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
I can run this php from shell and it works.
What I am doing wrong?
Any pointers will be highly appreciated.
Thanks