Hi,
I’m working through a course on PHP which necessitates Apache to be installed on my Windows 98 system.
The server has been working fine until I ran the following PHP script. The server chugged away & eventually stopped without displaying anything. I have successfully run the same script through my CGI bin with my ISP.
What I’ am slightly concerned about is that following this I was unable to correctly shut down “Apache” & have been presented with the following message
[Tue Oct 02 12:03:03 2001] [warn] pid file c:/program files/apache group/apache/
logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Apache/1.3.12 (Win32) running...
On looking in this file I found the following number/code -1635265
Any ideas as to why this should have happened & what I should now do about the pid file?
Thank you for any assistance.
J.A.DWYER
<HEAD>
<TITLE>All-In-One Feedback Form</TITLE>
</HEAD>
<BODY>
<?
$form_block = "
<FORM METHOD=\"post\" ACTION=\"$PHP_SELF\">
<P><strong>Your Name:</strong><br>
<INPUT type=\"text\" NAME=\"sender_name\" VALUE=\"$sender_name\" SIZE=30></p>
<P><strong>Your E-Mail Address:</strong><br>
<INPUT type=\"text\" NAME=\"sender_email\" VALUE=\"$sender_email\" SIZE=30></p>
<P><strong>Message:</strong><br>
<TEXTAREA NAME=\"message\" COLS=30 ROWS=5 WRAP=virtual>$message</TEXTAREA></p>
<INPUT type=\"hidden\" name=\"op\" value=\"ds\">
<P><INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\"Send This Form\"></p>
</FORM>
";
if ($op != "ds") {
// they need to see the form
echo "$form_block";
} else if ($op == "ds") {
if ($sender_name == "") {
$name_err = "<font color=red>Please enter your name!</font><br>";
$send = "no";
}
if ($sender_email == "") {
$email_err = "<font color=red>Please enter your e-mail address!</font><br>";
$send = "no";
}
if ($message == "") {
$message_err = "<font color=red>Please enter a message!</font><br>";
$send = "no";
}
if ($send != "no") {
// it's ok to send!
$msg = "E-MAIL SENT FROM WWW SITE\n";
$msg .= "Sender's Name: $sender_name\n";
$msg .= "Sender's E-Mail: $sender_email\n";
$msg .= "Message: $message\n\n";
$to = "jdwyer@jdwyer.plus.com";
$subject = "All-in-One Web Site Feedback";
$mailheaders = "From: My Web Site <> \n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($to, $subject, $msg, $mailheaders);
echo "<P>Mail has been sent!</p>";
} else if ($send == "no") {
echo "$name_err";
echo "$email_err";
echo "$message_err";
echo "$form_block";
}
}
?>
</BODY>
I have set the php.ini file - SMTP to “localhost” & sendmail_form to my email address