George Mckenna
03-11-2003, 12:19 PM
I'm a beginner at sever side programming. I understand PHP, Mysql,java,perl,html,etc but not alot of practice. My brother inlaw designed a site for a company his background is graphic designer. He came to me because his knowledge was limited to html and he needed to use a form inwhich a customer could respone to. His knowledge was limiter to Mailto's and Scripts he could find and legitimately use that were created by a third person. The company he created the site for changed the hosting provider and his cgi-bin perl mail form stopped working either by design from the hosting company or the provider is an intermediate reseller and has no clue about web hosting. I,ve listed a few emails that have gone back and forth between myself to Tom and Tom to Raj and than again back to me. Not the most ideal situation. I need someone to evaluate these messages and give me some insight and possibly some future help in understanding web hosting services and or server functioning in regards to apachie, (linux,unix,IIs). Rigth now I don't even know if I,m asking the right Questions.
From: Raj Honnaya
Date: Wed, 26 Feb 2003 09:40:51 -0500
To: tdow
Subject: Re: [Fwd: website]
Tom:
Here's the feature lsiteing for both web site hosting and Deep Metrix reporting
Secure Web Hosting _ Cybergnostic will securely host client's web site which will include the following services:
· Secure Data Center - Access Control, Backup Power, Fire Suppression,
· HVAC
· Redundant Tier 1 Internet Access greater than 200 MB
· Multiple layers of Best-of-Breed technology, including: Checkpoint, Cisco, Trend Micro, Sophos, Silicon Defense, SNORT, Enterasys, Nortel Alteon, Crossbeam, WebSense
· Service Level Agreement (SLA) of 99.9% availability
· 7/24 Certified Security Specialists
Web Site Reporting _ Cybergnostic will provide Client with the ability to extensively analyze web site statistics in real time and generate comprehensive reports. Details include:
· Visitor activity
· Merchandising
· Geographic segmentation
· Marketing effectiveness
· Most common page visited, etc. Apart from the features listed above- we also support MS-SQl serer, Cold Fusion. .php extensions, send mail & asp mail.
Let us know if you have any additional questions
Thanks
--Raj
From George;
To
Tom
This example shows that the .php extension isn't activated. This example should allow you to enter your first and last name submit it and show you an html page with the first and last names on the page.
Heres the code. php is in red.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Simple Form </TITLE>
</HEAD>
<BODY>
<h2>Simple Form Example</h2>
<?
function show_form($first="",$last="")
{ ?>
<form action="simpleform.php" method="get">
First Name:
<input type=text name=first value=" <?echo $first?> ">
<br>
Last Name:
<input type=text name=last value=" <?echo $last?> ">
<br>
<input type=submit>
</form>
<?
}
if(!isset($first))
{
show_form();
}
else
{
if(empty($first) or empty($last))
{
echo "You did not fill in all the
fields, try again<p>";
show_form($first,$last);
}
else
{
echo "Thank you, $first $last";
}
}
?>
</BODY>
</HTML>
George,
What is the correct response to this question. Tom
Tom;
Tom wrote:
To Raj,
(web Site ) hosted by Raj,
We have no success running .php.
Do we need to have some sort of permission set to
get it working?
Raj's response;
I would like to know what is the configuration that you would need to setup .php to run on a windows environment. Please let us know
Thanks
--Raj
This was afte Raj told Tom that his site had php support.I also tried Cdonts with a VB script and .asp Which Raj specifically claim would work and inwhich he actually sent a link from Microsoft explaining how cdonts work. I try this on the site and got this as a runtime error.
http://mysite/site/CDONTSMail.HTML
When you hit the submit button after inputing your email address (required) you get this message. in red
************************************************** ******
This is from the form.
strFrom = Anybody@anyplace.com
strTo = gmckenna#@yahoo.com
strSubject = test mail
strMessage = Hello this is a test!
Importance = 0
************************************************** *********
Microsoft _VBScript runtime error '800a0046'
Permission denied
/site/CDONTSMail.asp, line 50
CDONTSMail.HTML is the form it calls the file below which is the Send mail asp file called
CDONTSMail.asp
There is also a file on the site that is called test1.asp, this file outputs HELLO WORLD ! http://jtslumber/site/test1.asp
Tom
Find out why I get this runtime error
Microsoft _VBScript runtime error '800a0046'
Permission denied
/site/CDONTSMail.asp, line 50
Line# 50
myCDONTSMail.Send strFrom,strTo,strSubject,strBody,IngImportance
It should work it just won't send the mail I think the isp provider needs to set the permissions(chmode) for us on the server.
Sorry thats as far as I can go until you find out about the runtime error.Heres a copy of both files.
CDONTSMail.HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR"
content="Microsoft FrontPage (Visual InterDev Edition) 2.0">
<title>CDONTSMail</title>
</head>
<body bgcolor="#FFFFFF">
<form action="CDONTSMail.asp" method="POST">
<table border="0">
<tr>
<td>From:</td>
<td><!--webbot bot="Validation"
b-value-required="TRUE" --><input type="text"
size="47" name="txtFrom"
value="Your internet address (Me@MyCompany.com)"></td>
</tr>
<tr>
<td>To:</td>
<td><!--webbot bot="Validation"
b-value-required="TRUE" --><input type="text"
size="47" name="txtTo"
value="The recipient's address (You@YourCompany.com)"></td>
</tr>
<tr>
<td>Subject:</td>
<td><input type="text" size="47" name="txtSubject"
value="Enter a subject here"></td>
</tr>
<tr>
<td valign="top">Message:</td>
<td><textarea name="txtMessage" rows="9" cols="45">
Type your message here.</textarea></td>
</tr>
<tr>
<td valign="top">Importance:</td>
<td><input type="radio" name="optImportance"
value="2">High<br>
<input type="radio" checked name="optImportance"
value="1">Normal<br>
<input type="radio" name="optImportance" value="0">Low<br>
</td>
</tr>
</table>
<p><input type="submit" name="cmdSubmit" value="Submit">
<input type="reset" name="cmdClear" value="Clear"> </p>
</form>
</body>
</html>
CDONTSMail.asp
<%@ LANGUAGE="_VBSCRIPT" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
<META HTTP-EQUIV="Content-Type"
content="text/html;charset=iso-8859-1">
<TITLE>CDONTSMail</TITLE>
<%
Sub Write(strWriteThis)
'This subroutine just writes out whatever is
'passed to it.
response.write(strWriteThis & "<br>")
end sub
%>
</HEAD>
<BODY>
<%
Dim myCDONTSMail
Dim strFrom
Dim strTo
Dim strSubject
Dim strMessage
Dim IngImportance
'The following variable assignments are not required
'they are just here to make interpretation of the
'myCDONTSMail.Send line easier. You could put the
'Request.Form statements in the .Send line to cut down
'on the amount of code in the file.
strFrom=request.form("txtFrom")
strTo=request.form("txtTo")
strSubject = request.form("txtSubject")
strBody=request.form("txtMessage")
IngImportance = request.form("optImportance")
'The following four lines of code are just here for test
'purposes to see what variables have been pulled in from the
'HTM form.
Write("strFrom = " & strFrom)
Write("strTo = " & strTo)
Write("strSubject = " & strSubject)
Write("strMessage = " & strBody)
Write("Importance = " & IngImportance)
Set myCDONTSMail = CreateObject("CDONTS.NewMail")
myCDONTSMail.Send strFrom,strTo,strSubject,strBody,IngImportance
Set myCDONTSMail = Nothing
Write "Mail has been sent."
%>
</BODY>
</HTML>
If anybody could provide a little help. Is this Raj pulling my leg ?
From: Raj Honnaya
Date: Wed, 26 Feb 2003 09:40:51 -0500
To: tdow
Subject: Re: [Fwd: website]
Tom:
Here's the feature lsiteing for both web site hosting and Deep Metrix reporting
Secure Web Hosting _ Cybergnostic will securely host client's web site which will include the following services:
· Secure Data Center - Access Control, Backup Power, Fire Suppression,
· HVAC
· Redundant Tier 1 Internet Access greater than 200 MB
· Multiple layers of Best-of-Breed technology, including: Checkpoint, Cisco, Trend Micro, Sophos, Silicon Defense, SNORT, Enterasys, Nortel Alteon, Crossbeam, WebSense
· Service Level Agreement (SLA) of 99.9% availability
· 7/24 Certified Security Specialists
Web Site Reporting _ Cybergnostic will provide Client with the ability to extensively analyze web site statistics in real time and generate comprehensive reports. Details include:
· Visitor activity
· Merchandising
· Geographic segmentation
· Marketing effectiveness
· Most common page visited, etc. Apart from the features listed above- we also support MS-SQl serer, Cold Fusion. .php extensions, send mail & asp mail.
Let us know if you have any additional questions
Thanks
--Raj
From George;
To
Tom
This example shows that the .php extension isn't activated. This example should allow you to enter your first and last name submit it and show you an html page with the first and last names on the page.
Heres the code. php is in red.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Simple Form </TITLE>
</HEAD>
<BODY>
<h2>Simple Form Example</h2>
<?
function show_form($first="",$last="")
{ ?>
<form action="simpleform.php" method="get">
First Name:
<input type=text name=first value=" <?echo $first?> ">
<br>
Last Name:
<input type=text name=last value=" <?echo $last?> ">
<br>
<input type=submit>
</form>
<?
}
if(!isset($first))
{
show_form();
}
else
{
if(empty($first) or empty($last))
{
echo "You did not fill in all the
fields, try again<p>";
show_form($first,$last);
}
else
{
echo "Thank you, $first $last";
}
}
?>
</BODY>
</HTML>
George,
What is the correct response to this question. Tom
Tom;
Tom wrote:
To Raj,
(web Site ) hosted by Raj,
We have no success running .php.
Do we need to have some sort of permission set to
get it working?
Raj's response;
I would like to know what is the configuration that you would need to setup .php to run on a windows environment. Please let us know
Thanks
--Raj
This was afte Raj told Tom that his site had php support.I also tried Cdonts with a VB script and .asp Which Raj specifically claim would work and inwhich he actually sent a link from Microsoft explaining how cdonts work. I try this on the site and got this as a runtime error.
http://mysite/site/CDONTSMail.HTML
When you hit the submit button after inputing your email address (required) you get this message. in red
************************************************** ******
This is from the form.
strFrom = Anybody@anyplace.com
strTo = gmckenna#@yahoo.com
strSubject = test mail
strMessage = Hello this is a test!
Importance = 0
************************************************** *********
Microsoft _VBScript runtime error '800a0046'
Permission denied
/site/CDONTSMail.asp, line 50
CDONTSMail.HTML is the form it calls the file below which is the Send mail asp file called
CDONTSMail.asp
There is also a file on the site that is called test1.asp, this file outputs HELLO WORLD ! http://jtslumber/site/test1.asp
Tom
Find out why I get this runtime error
Microsoft _VBScript runtime error '800a0046'
Permission denied
/site/CDONTSMail.asp, line 50
Line# 50
myCDONTSMail.Send strFrom,strTo,strSubject,strBody,IngImportance
It should work it just won't send the mail I think the isp provider needs to set the permissions(chmode) for us on the server.
Sorry thats as far as I can go until you find out about the runtime error.Heres a copy of both files.
CDONTSMail.HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR"
content="Microsoft FrontPage (Visual InterDev Edition) 2.0">
<title>CDONTSMail</title>
</head>
<body bgcolor="#FFFFFF">
<form action="CDONTSMail.asp" method="POST">
<table border="0">
<tr>
<td>From:</td>
<td><!--webbot bot="Validation"
b-value-required="TRUE" --><input type="text"
size="47" name="txtFrom"
value="Your internet address (Me@MyCompany.com)"></td>
</tr>
<tr>
<td>To:</td>
<td><!--webbot bot="Validation"
b-value-required="TRUE" --><input type="text"
size="47" name="txtTo"
value="The recipient's address (You@YourCompany.com)"></td>
</tr>
<tr>
<td>Subject:</td>
<td><input type="text" size="47" name="txtSubject"
value="Enter a subject here"></td>
</tr>
<tr>
<td valign="top">Message:</td>
<td><textarea name="txtMessage" rows="9" cols="45">
Type your message here.</textarea></td>
</tr>
<tr>
<td valign="top">Importance:</td>
<td><input type="radio" name="optImportance"
value="2">High<br>
<input type="radio" checked name="optImportance"
value="1">Normal<br>
<input type="radio" name="optImportance" value="0">Low<br>
</td>
</tr>
</table>
<p><input type="submit" name="cmdSubmit" value="Submit">
<input type="reset" name="cmdClear" value="Clear"> </p>
</form>
</body>
</html>
CDONTSMail.asp
<%@ LANGUAGE="_VBSCRIPT" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
<META HTTP-EQUIV="Content-Type"
content="text/html;charset=iso-8859-1">
<TITLE>CDONTSMail</TITLE>
<%
Sub Write(strWriteThis)
'This subroutine just writes out whatever is
'passed to it.
response.write(strWriteThis & "<br>")
end sub
%>
</HEAD>
<BODY>
<%
Dim myCDONTSMail
Dim strFrom
Dim strTo
Dim strSubject
Dim strMessage
Dim IngImportance
'The following variable assignments are not required
'they are just here to make interpretation of the
'myCDONTSMail.Send line easier. You could put the
'Request.Form statements in the .Send line to cut down
'on the amount of code in the file.
strFrom=request.form("txtFrom")
strTo=request.form("txtTo")
strSubject = request.form("txtSubject")
strBody=request.form("txtMessage")
IngImportance = request.form("optImportance")
'The following four lines of code are just here for test
'purposes to see what variables have been pulled in from the
'HTM form.
Write("strFrom = " & strFrom)
Write("strTo = " & strTo)
Write("strSubject = " & strSubject)
Write("strMessage = " & strBody)
Write("Importance = " & IngImportance)
Set myCDONTSMail = CreateObject("CDONTS.NewMail")
myCDONTSMail.Send strFrom,strTo,strSubject,strBody,IngImportance
Set myCDONTSMail = Nothing
Write "Mail has been sent."
%>
</BODY>
</HTML>
If anybody could provide a little help. Is this Raj pulling my leg ?