Help with PHP code, I don't know what I did to it

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zeimenzeimen
Forum Newbie
Posts: 1
Joined: Wed Jul 16, 2008 5:18 pm

Help with PHP code, I don't know what I did to it

Post by zeimenzeimen »

I was trying to change the telephone number on this code, however I accidentally updated the links when I saved the file. This is for the homepage of http://www.electricsupercharger.net . I would like to know what I have to change to get my file to display correctly on the webpage. It should look like the other 4 pages of that site. What did I do, can you help me? I am not a php buff, but I understand html and such.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Electric Superchargers</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="Home to the most powerful electric supercharger on the net! ">
<meta name="keywords" content="electric supercharger, superchargers, supercharger, supercharging, turbo, turbocharger, turbocharging, echarger, Electric Turbo, eTurbo, electric superchargers, electric turbos, electric turbochargers
">
<link href="http://www.electricsupercharger.net/flip.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #FFFFFF}

-->
</style>
</head>

<body>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#333333">
<tr>
<td bgcolor="#000000"><table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3"><img src="http://www.electricsupercharger.net/images/line.jpg" width="778" height="1" /></td>
</tr>
<tr>
<td colspan="3"><? include("http://www.electricsupercharger.net/inc ... er.inc.php");?></td>
</tr>
<tr>
<td width="18">&nbsp;</td>
<td width="566" valign="top"><table width="100%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td width="38%">&nbsp;</td>
</tr>
<tr>
<td colspan="4" align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30%" align="left" class="textw"><img src="http://www.electricsupercharger.net/ima ... ehouse.jpg" width="150" height="112" /></td>
<td width="70%" colspan="2" align="left" valign="top" class="textw"><div align="justify">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hello, and welcome to Thorton. Thorton sells high quality electric superchargers and accessories at wholesale prices. Thorton electric superchargers are tested with the highest boost ratings available in the industry. Look no further, you won&rsquo;t find this quality elsewhere.</div></td>
</tr>
</table>
<br><img src="images/line.jpg" width="535" height="1" /></td>
</tr>
<tr>
<td colspan="4"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="75%" align="left" valign="top" class="textw"><div align="justify">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Each and every electric supercharger we sell will be made to the highest of industry standards. All of our products are made to bolt on right out of the box. We have a technical support team on staff that can help you with any installation issues. If you have any questions about our services, please contact us <a href="http://www.electricsupercharger.net/contact.php" class="weblink11">here</a> or give us a call at 1-866-376-6068.</div></td>
<td width="25%" align="right" class="textw"><img src="images/csr.jpg" width="124" height="94" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>
<td colspan="10">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="8"><span class="bstyle">Featured In:</span></td>
</tr>
<tr>
<td colspan="8"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>

<td class="bstyle"><img src="http://www.electricsupercharger.net/images/img4.jpg" width="501" height="130"></td>
</tr>
</table></td></tr>
</table></td>
<td width="194" valign="top" bgcolor="#C76600"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">
<tr>
<td><table width="100%" height="507" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="139" colspan="3" valign="top" bgcolor="#c76600"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"><img src="http://www.electricsupercharger.netimages/img5.jpg" width="183" height="135" /></td>
</tr>
</table></td>
</tr>
<tr>
<td width="5%" height="323" valign="top" bgcolor="#c76600">&nbsp;</td>
<td width="90%" align="center" valign="top" bgcolor="#c76600"><p class="textw"><br />
<br />
Manual Boost Controller Now Included With Your Purchase.&nbsp;&nbsp;Offer Ends Soon!</p>
<p> <span class="textw"><br />
Call With Questions<br />
1-866-376-6068<br />
MON - FRI<br />
8:00-6:00 PST</span></p>
<p class="blackt">&nbsp;</p>
<p class="textw">&nbsp;</p>
<p></p></td>
<td width="5%" valign="top" bgcolor="#c76600">&nbsp;</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3"><img src="images/line.jpg" width="778" height="1" /></td>
</tr>
<tr>
<td colspan="3"><? include("http://www.electricsupercharger.net/inc ... er.inc.php");?></td>
</tr>
</table></td>
</tr>
</table>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2901443-1";
urchinTracker();
</script>
</body>
</html>
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: Help with PHP code, I don't know what I did to it

Post by omniuni »

Your PHP links incorrectly to header.inc.php.

Your errors are:

Warning: main(/includes/header.inc.php): failed to open stream: No such file or directory in /home/content/e/l/e/electricsc/html/index.php on line 26

Warning: main(/includes/header.inc.php): failed to open stream: No such file or directory in /home/content/e/l/e/electricsc/html/index.php on line 26

Warning: main(): Failed opening '/includes/header.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/e/l/e/electricsc/html/index.php on line 26
I'm suspecting that they should be either .inc or .php, but probably not both, though I can't be at all sure.
Post Reply