|
| |
|
|
ctryman47
Posts: 9 Joined: 10/16/2005 Status: offline
|
getting php into fp2003 - 10/16/2005 4:40:45
I have been trying to get whm autopilot int my front page site and do not know what is the problem. I created the header and the footer and the start here table but it will not load off the server. any ideas. Thanks
|
|
|
|
ctryman47
Posts: 9 Joined: 10/16/2005 Status: offline
|
RE: getting php into fp2003 - 10/19/2005 6:51:50
no I have it uploaded to my host here is the error I get go to http://www.okcwebworks.net/order_page.php that will produce the error. I have been into the whm autopilot forum and got the proper code to insert the billing mgr and it gives me this. any one that uses php with front page any help getting this done would be great
|
|
|
|
ctryman47
Posts: 9 Joined: 10/16/2005 Status: offline
|
RE: getting php into fp2003 - 10/19/2005 8:10:05
<?PHP if($maintenance=="yes") { header("Location: ".$http_web."/maintenance.php"); exit; } echo(" <HTML> <HEAD> <TITLE> ".$site_title." </TITLE> "); <link rel="stylesheet" type="text/css" href="http://www.okcwebworks.net/styles.css"> <title>Order Page</title> echo(" </HEAD> <BODY "); if (ereg("step_one.php", $PHP_SELF)==true) { echo"onLoad='select_row(\"plan\", ".$tick.");'"; } else if (ereg("step_two.php", $PHP_SELF)==true) { echo"onLoad='select_row(\"plan\", ".$tick.");'"; } echo">"; ?> <?php include('inc/header2.php'); ?> <body topmargin="0" marginwidth="0" leftmargin="0" marginheight="0" rightmargin="0"> <table summary="This table is used for layout purposes." cellspacing="0" border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table1"> <tr> <td align="center"> <!--webbot bot="Include" U-Include="includes/logo.htm" TAG="BODY" --></td> </tr> <tr> <td background="images/menubarbg.gif" align="center"> <table summary="This table is used for layout purposes." cellspacing="0" border="0" cellpadding="6" style="border-collapse: collapse" width="750" id="table2"> <tr> <td class="menu"> <!--webbot bot="Navigation" S-Orientation="horizontal" S-Rendering="html" S-Bar="Bars" S-Btn-Nml="<A HREF="#URL#" TARGET="#TARGET#" STYLE="{text-decoration: none;}">#LABEL#</A>" S-Btn-Sel="#LABEL#" S-Btn-Sep=" | " S-Type="top" B-Include-Home="TRUE" B-Include-Up="FALSE" --></td> </tr> </table> </td> </tr> <tr> <td align="center"> <table summary="This table is used for layout purposes." cellspacing="0" border="0" cellpadding="0" style="border-collapse: collapse" width="734" id="table3"> <tr> <td> <img border="0" src="images/spacer.gif" alt=" " width="734" height="15"></td> </tr> <tr> <td background="images/insidetitle.jpg"> <table summary="This table is used for layout purposes." cellspacing="0" border="0" cellpadding="15" style="border-collapse: collapse" width="100%" height="60" id="table4"> <tr> <td align="right"> <p class="insidetitle"> <!--webbot bot="Navigation" S-Type="banner" S-Orientation="horizontal" S-Rendering="text" --></p> </td> </tr> </table> </td> </tr> <tr> <td> <table summary="This table is used for layout purposes." cellspacing="0" border="0" cellpadding="5" style="border-collapse: collapse" width="100%" id="table5"> <tr> <td width="25%" valign="top" class="leftcolumn"> <p class="menu"><b>in this section...</b><br> <!--webbot bot="Navigation" S-Orientation="vertical" S-Rendering="html" S-Bar="Bars" S-Btn-Nml="<A HREF="#URL#" TARGET="#TARGET#" STYLE="{text-decoration: none;}">#LABEL#</A>" S-Btn-Sel="#LABEL#" S-Btn-Sep="<br>" S-Type="top" B-Include-Home="TRUE" B-Include-Up="FALSE" --></p> </td> <td width="75%" valign="top"> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="22"</td> <td width="496" align="left"> <!-- START AUTOPILOT HERE --> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align="center"> <img border="0" src="images/spacer.gif" alt=" " width="734" height="15"></td> </tr> <tr> <td align="center" background="images/menubarbg.gif"> <!--webbot bot="Include" U-Include="includes/copyright.htm" TAG="BODY" --></td> </tr> </TABLE> <?PHP echo(" </BODY> </HTML> "); ?>
|
|
|
|
ctryman47
Posts: 9 Joined: 10/16/2005 Status: offline
|
RE: getting php into fp2003 - 10/19/2005 9:36:54
here is the link to the instruction page which makes no sense to me AT ALL but you will be able to make heads or tails out of it im sure http://www.whmautopilot.com/partners.php
|
|
|
|
ctryman47
Posts: 9 Joined: 10/16/2005 Status: offline
|
RE: getting php into fp2003 - 10/19/2005 9:55:21
yes I have I wen from <head> to </head> and called it header2.php and placed it in the inc folder here it is: <HTML> <HEAD> <TITLE> ".$site_title." </TITLE> "); echo(" <link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.okcwebworks.net/styles.css\"> "); echo(" </HEAD>
|
|
|
|
ctryman47
Posts: 9 Joined: 10/16/2005 Status: offline
|
RE: getting php into fp2003 - 10/19/2005 10:15:44
This is just for the auto billing the company I am working with handles the support. I use front page for editing and I did the head just like you sent it to me. I have been working the hosting thing for 3 years.and just ran accross this with PHP when the company I had was sold out. and they are a better company that bought them. If you dont have the time I understand sorry to have bothered you
|
|
|
|
jaybee
Posts: 14141 Joined: 10/7/2003 From: Berkshire, UK Status: offline
|
RE: getting php into fp2003 - 10/19/2005 12:21:27
For future reference for anyone who is using autopilot and finds this thread...... The confusion above seems to stem from the mis-apprehension that you put the autopilot code into your page. The idea is to set up your page layout in html then extract bits and put them into the autopilot files. So, design your page. Make sure all references to images etc are full URLs or you will have problems later on. So if an image is coded as images/mypic.jpg, change it to http://www.myweb.com/images/mypic.jpg. Once you are happy with the page you chop it up into two parts, header and footer. To make this easier. Put a line in where the split will be. You can use a comment <!-- Autopilot start --> or a bit of text which will show up in design view <p>Autopilot goes here</p> If you use the latter DO NOT include it in the header or footer when you start to cut the page up. The things that you always want at the top of the page become your header and you cut out the code in the page from immediately AFTER the <body> tag down to the line you put in to show where autopilot will sit. You paste this into a new page using a text editor or the FP code view. If you are using the FP code view remove all the code that FP generates before pasting your code in. Save this as header2.php Go back to your built page. Cut everything left between the line you put in to show where autopilot sits and </body> tags. Paste that into a new empty page as described above but this time save it as footer.php discard what is left of your original page. Upload header2.php and footer.php to the host Now, find a file already on your host that you should have uploaded along with the rest of the autopilot script, called header.php and open it in a text editor. Find the following lines <BODY
");
if (ereg("step_one.php", $PHP_SELF)==true)
{
echo"onLoad='select_row(\"plan\", ".$tick.");'";
}
else if (ereg("step_two.php", $PHP_SELF)==true)
{
echo"onLoad='select_row(\"plan\", ".$tick.");'";
}
echo">";
?> Put the cursor after the final > and press enter to make a new line then type the following <?php include('inc/header2.php'); ?> and save the file. Upload it to the host. To see your results open a page called step_one.php in your browser. The exact name depndes on where you've put it on your host.
< Message edited by jaybee -- 10/19/2005 12:38:03 >
_____________________________
If it ain't broke..... fix it until it is. GAWDS Now where did I put that Doctype?
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|