Jump to content

Recommended Posts

I hope this is the right place to place this question i'm new here so if it ain't please for give me I am trying to install a script on my website and i am getting this error's

 

Warning: include(/home/mary2012/public_html/inc/footer.php) [function.include]: failed to open stream: No such file or directory in /home/mary2012/public_html/surf/index.php on line 268

 

Warning: include() [function.include]: Failed opening '/home/mary2012/public_html/inc/footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mary2012/public_html/surf/index.php on line 268

 

I tried everything i could do to fix the script and the footer file is there so i don't know what the problem here.

Here is the index.php script it is talking about

 

<?php
require('inc/config.php');
require('paymentconfig.php');
mysql_query("update ste_settings SET tot_hits=(tot_hits +1)")or die(mysql_error());
?>
<html>
<head>
<TITLE><?echo $domainname;?> - <?echo $ste_slogan;?></TITLE>
<meta name="Name" content="<?echo $domainname?>">
<meta name="Author" content="<?echo $domainname?>">
<meta name="Creator" content="<?echo $domainname?>">
<meta name="Publisher" content="<?echo $domainname?>">
<meta name="Copyright" content="? <?echo $domainname?>">
<meta name="Distributor" content="Global">
<meta name="Rating" content="General">
<meta name="Robots" content="All">
<meta name="Revisit-After" content="3 days">
<meta name="DESCRIPTION" content="<?echo $domainname?> - FREE and Paid Credits and Advertising for your website!, Thru global Web-Sites and Worldwide Traffic exchanges For Advertisement And Visual Presentations and AD Views by Internet Web-Site Customers, Including, not limited to, Free marketing, Free advertising, Paid marketing, Paid advertising, Make money, Make traffic, Make credits, Traffic exchanges, Banner exchanges, Free traffic, Paid to surf, Free traffic to my site, Unlimited hits, Free hits to my site, Free hits, Paid Hits, Banner exchange, Free Banner exchange, Paid Banner exchange">
<meta name="KEYWORDS" content="Auto-Surfer, Auto-Traffic-Exchange, Autohits, Auto-Hits, Autopro, Autohitter, Automatic hits, Automatic looking at Websites, Automatically, Autosurf programs, Autosurf, Autosurfing, Auto-surfing, Auto traffic, Boost, Direct, Forums, Free marketing, Free advertising, Paid marketing, Paid advertising, Make money, Make traffic, Make credits, Traffic exchanges, Banner exchanges, Free traffic, Paid to surf, Free traffic to my site, Unlimited hits, Free hits to my site, Free hits, Paid Hits, Banner exchange, Free Banner exchange, Paid Banner exchange, free autosurfing, Free, Free programs, Free traffic, Free sites, Hit exchange, Hits, Internet, Links, Lots of visitors, More hits, Safe, Safe-traffic, Live Traffic, Secure, Secure traffic, Secure-traffic-live, Start page, Startpage, Support, Surf page, Surf credits, Surfer, Surfers, Surfers,  Surfer exchange, Exchange, Traffic-Exchange, Traffic exchange, junction, Traffic program, Traffic programs, Traffic-programs, Traffic, unique Traffic, Unigue, Unlimited visitors, Visitors ,Web, Webmasters, Webmasters, Website, Affiliates, Website affiliate, High, Clickbank, e-Spotting, Affiliation, Targeted Guaranteed, Space, Text, Rates, Page, Reviews, Cheap, Super, Sale, Tips, List, Sponsor,  Sponsors, Track, Manager, Manage, Shopping, Trade, Management, reseller, Seller, Search, Referral, Top, Agent, Statistics, Email, PPC, Impression, CPM, Generator, Wholesale, Associates, Store, Internet, Surveys, Auction, Paid, Instant, Builder, Income, Web, Advertise, Exchange, Sales, Program, Getting, Earn, Forum, Best, Software, Online, Site, Signup, Dating, CPC, Surf, Ccbill, Ultimate, Portal, Sites, Web Site, Overture, Blind, Network, Commissions, Publisher, Login, Directory, Partners, Refer, Visitors, Promotion, Scheme, Monthly, Campaign, Networks, Fee, Publishers, E-books, Bid, Link,  Join, Resellers, MLM, Program, Links, Associates, ROI, Bonus, Tracker, Commission, Visits, Cash, Member, Marketing, Buy, Selling, Newsletter, Million, i-Bill, Directories, Profit, Surfing, Partnership, Impressions, Search engine, Sell, Stats, e-Book, Affiliated, Sponsorship, Visitor, Merchant, Survey, Partner, Commision, Revenue, Advertisement, Tracking, Increase, Advertiser, Banners, Unique, Pay-pal, Popup, Pay, Paid, Schemes, Leads, Money, Paying, Membership, Safe , Secure, Live">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style>
.bannerhold{
margin-top:40px;
}
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000" topmargin="0">
<table width="794" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
  <tr>
    <td valign="top" height="156" background="images/004b_01.jpg">
      <table width="65%" border="0" cellspacing="5" cellpadding="5" height="77">
        <tr>
          <td width="5%" height="71"> </td>
          <td width="95%" height="71"> <font color="#FFFFFF" size="5"><b><br>
            <font face="Arial, Helvetica, sans-serif" size="6"><?echo $domainname;?></font><font face="Arial, Helvetica, sans-serif"><br>
            </font></b></font><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><b>
            <?echo $ste_slogan;?> </b></font></td>
        </tr>
        <p align="left" class="content"><?echo $hme_pg;?></p>
      </table>
    </td>
  </tr>
  <tr>
    <td background="images/004b_03.jpg" valign="top">
      <table width="794" border="0" cellspacing="0" cellpadding="0" height="63">
        <tr>
          <td width="17" height="20"> </td>
          <td width="161" height="20" valign="top">
            <table width="135" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr>
                <td width="135"> </td>
              </tr>
              <tr>
                <td width="135">
                  <p><b><font face="Arial, Helvetica, sans-serif">Menu</font></b></p>
                  <ul>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=home&refid=<? echo $refid?>">Home</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=signup&refid=<? echo $refid?>">Signup</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=mem_log&refid=<? echo $refid?>">Login</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=purchase&refid=<? echo $refid?>">Purchase</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=upgrades&refid=<? echo $refid?>">Upgrades</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=faq&refid=<? echo $refid?>">Faq</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=tos&refid=<? echo $refid?>">Tos</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=support&refid=<? echo $refid?>">Contact</a></font></li>
                  </ul>
                </td>
              </tr>
              <tr>
                <td width="135">
                <br>
                <font size="1" face="Tahoma"><b>
               			  Launch Date: <?echo $ldate_formatted;?><br>
                          Total Hits: <?echo $tot_hits_format;?><br>
                          Sites Advertised: <?echo $tot_url_format;?><br>
                          Banners Advertised: <?echo $tot_ban_format;?><br>
                          Active Members: <?echo $ucount2_format;?><br>
                          Members Today: <?echo $dailymem;?><br>
                          Members This Month: <?echo $monthmem_format;?>
                          </b>
                </font>
                </td>
              </tr>
              <tr>
              <td width="135">
              <p><font face="Arial, Helvetica, sans-serif" size="-1"><b><br>
                Great Programs!</b></font></p>
              </td>
              </tr>
              <tr>
                <td width="135">
                <font face="Arial" size="1" color="#4A79D6"><marquee direction="down" height="230" width="120" align="middle" scrollamount="2" onMouseOver="this.scrollAmount=0" onMouseOut="this.scrollAmount=2"><p align="center">
<?php include("tpl/rightsidebuttons.ihtml"); ?>
</MARQUEE></font>
                </td>
              </tr>
            </table>
          </td>
          <td width="26" height="20"> </td>
          <td width="574" height="20" valign="top">
           <?

switch($imspt) {
    case 'account':
        require("account.php");
        break;
case 'ban_x':
        require("ban_x.php");
        break;
case 'ban_x2':
        require("ban_x2.php");
        break;
case 'confirm':
        require("confirm.php");
        break;
    case 'faq':
        require("faq.php");
        break;
case 'mem_log':
        require("mem_log.php");
        break;
case 'mem_log2':
        require("mem_log2.php");
        break;
case 'member_acc':
        require("member_acc.php");
        break;
case 'opensite':
        require("opensite.php");
        break;
case 'purchase':
        require("purchase.php");
        break;
case 're_act':
        require("re_act.php");
        break;
case 'report':
        require("report.php");
        break;
case 'report2':
        require("report2.php");
        break;
case 'retrieve':
        require("retrieve.php");
        break;
case 'signup':
        require("signup.php");
        break;
case 'signup2':
        require("signup2.php");
        break;
case 'signup3':
        require("signup3.php");
        break;
case 'support':
        require("support.php");
        break;
case 'support2':
        require("support2.php");
        break;
case 'thankyou':
        require("thankyou.php");
        break;
case 'tos':
        require("tos.php");
        break;
case 'unsubscribe':
        require("unsubscribe.php");
        break;
case 'upgrades':
        require("upgrades.php");
        break;
case 'members/acc_sum':
        require("members/acc_sum.php");
        break;
case 'members/acc_pro':
        require("members/acc_pro.php");
        break;
case 'members/ban_mgr':
        require("members/ban_mgr.php");
        break;
case 'members/ban_mgr2':
        require("members/ban_mgr2.php");
        break;
case 'members/ban_mgr3':
        require("members/ban_mgr3.php");
        break;
case 'members/ban_mgr_del':
        require("members/ban_mgr_del.php");
        break;
case 'members/convert_cred':
        require("members/convert_cred.php");
        break;
case 'members/convert_cred2':
        require("members/convert_cred2.php");
        break;
case 'members/ref_mgr':
        require("members/ref_mgr.php");
        break;
case 'members/ref_mgr2':
        require("members/ref_mgr2.php");
        break;
case 'members/web_mgr':
        require("members/web_mgr.php");
        break;
case 'members/web_mgr2':
        require("members/web_mgr2.php");
        break;
case 'members/web_mgr3':
        require("members/web_mgr3.php");
        break;
case 'members/web_mgr_del':
        require("members/web_mgr_del.php");
        break;
default:
       require("home.php");
}
?>
<div class="bannerhold" align="center"><IFRAME WIDTH='468' HEIGHT='60' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO'
src='http://www.<?echo $domainname;?>/ban_x.php?affil=Admin'></IFRAME>
<br>
		<font color="#000000" size="1" face="Arial, Helvetica, sans-serif">Our
            member banner!</font><br>
        <p align="left" class="content"><?echo $hme_pg;?></p>
</div>
          </td>
          <td width="16" height="20"></td>
        </tr>
      </table>
    </td>
  </tr>
<? include($DOCUMENT_ROOT.'/inc/footer.php'); ?>
</table>
<p> </p></body>
</html>

 

I don't know what's wrong here but i appreciate any help i can get thanks

Mary

 

 

Link to comment
https://forums.phpfreaks.com/topic/266662-get-sql-errors-need-help/
Share on other sites

I need help fixing these errors

 

Warning: include(/home/mary2012/public_html/inc/footer.php) [function.include]: failed to open stream: No such file or directory in /home/mary2012/public_html/surf/index.php on line 268

 

Warning: include() [function.include]: Failed opening '/home/mary2012/public_html/inc/footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mary2012/public_html/surf/index.php on line 268

 

 

<?php
require('inc/config.php');
require('paymentconfig.php');
mysql_query("update ste_settings SET tot_hits=(tot_hits +1)")or die(mysql_error());
?>
<html>
<head>
<TITLE><?echo $domainname;?> - <?echo $ste_slogan;?></TITLE>
<meta name="Name" content="<?echo $domainname?>">
<meta name="Author" content="<?echo $domainname?>">
<meta name="Creator" content="<?echo $domainname?>">
<meta name="Publisher" content="<?echo $domainname?>">
<meta name="Copyright" content="? <?echo $domainname?>">
<meta name="Distributor" content="Global">
<meta name="Rating" content="General">
<meta name="Robots" content="All">
<meta name="Revisit-After" content="3 days">
<meta name="DESCRIPTION" content="<?echo $domainname?> - FREE and Paid Credits and Advertising for your website!, Thru global Web-Sites and Worldwide Traffic exchanges For Advertisement And Visual Presentations and AD Views by Internet Web-Site Customers, Including, not limited to, Free marketing, Free advertising, Paid marketing, Paid advertising, Make money, Make traffic, Make credits, Traffic exchanges, Banner exchanges, Free traffic, Paid to surf, Free traffic to my site, Unlimited hits, Free hits to my site, Free hits, Paid Hits, Banner exchange, Free Banner exchange, Paid Banner exchange">
<meta name="KEYWORDS" content="Auto-Surfer, Auto-Traffic-Exchange, Autohits, Auto-Hits, Autopro, Autohitter, Automatic hits, Automatic looking at Websites, Automatically, Autosurf programs, Autosurf, Autosurfing, Auto-surfing, Auto traffic, Boost, Direct, Forums, Free marketing, Free advertising, Paid marketing, Paid advertising, Make money, Make traffic, Make credits, Traffic exchanges, Banner exchanges, Free traffic, Paid to surf, Free traffic to my site, Unlimited hits, Free hits to my site, Free hits, Paid Hits, Banner exchange, Free Banner exchange, Paid Banner exchange, free autosurfing, Free, Free programs, Free traffic, Free sites, Hit exchange, Hits, Internet, Links, Lots of visitors, More hits, Safe, Safe-traffic, Live Traffic, Secure, Secure traffic, Secure-traffic-live, Start page, Startpage, Support, Surf page, Surf credits, Surfer, Surfers, Surfers,  Surfer exchange, Exchange, Traffic-Exchange, Traffic exchange, junction, Traffic program, Traffic programs, Traffic-programs, Traffic, unique Traffic, Unigue, Unlimited visitors, Visitors ,Web, Webmasters, Webmasters, Website, Affiliates, Website affiliate, High, Clickbank, e-Spotting, Affiliation, Targeted Guaranteed, Space, Text, Rates, Page, Reviews, Cheap, Super, Sale, Tips, List, Sponsor,  Sponsors, Track, Manager, Manage, Shopping, Trade, Management, reseller, Seller, Search, Referral, Top, Agent, Statistics, Email, PPC, Impression, CPM, Generator, Wholesale, Associates, Store, Internet, Surveys, Auction, Paid, Instant, Builder, Income, Web, Advertise, Exchange, Sales, Program, Getting, Earn, Forum, Best, Software, Online, Site, Signup, Dating, CPC, Surf, Ccbill, Ultimate, Portal, Sites, Web Site, Overture, Blind, Network, Commissions, Publisher, Login, Directory, Partners, Refer, Visitors, Promotion, Scheme, Monthly, Campaign, Networks, Fee, Publishers, E-books, Bid, Link,  Join, Resellers, MLM, Program, Links, Associates, ROI, Bonus, Tracker, Commission, Visits, Cash, Member, Marketing, Buy, Selling, Newsletter, Million, i-Bill, Directories, Profit, Surfing, Partnership, Impressions, Search engine, Sell, Stats, e-Book, Affiliated, Sponsorship, Visitor, Merchant, Survey, Partner, Commision, Revenue, Advertisement, Tracking, Increase, Advertiser, Banners, Unique, Pay-pal, Popup, Pay, Paid, Schemes, Leads, Money, Paying, Membership, Safe , Secure, Live">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style>
.bannerhold{
   margin-top:40px;
}
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000" topmargin="0">
<table width="794" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
  <tr>
    <td valign="top" height="156" background="images/004b_01.jpg">
      <table width="65%" border="0" cellspacing="5" cellpadding="5" height="77">
        <tr>
          <td width="5%" height="71"> </td>
          <td width="95%" height="71"> <font color="#FFFFFF" size="5"><b><br>
            <font face="Arial, Helvetica, sans-serif" size="6"><?echo $domainname;?></font><font face="Arial, Helvetica, sans-serif"><br>
            </font></b></font><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><b>
            <?echo $ste_slogan;?> </b></font></td>
        </tr>
        <p align="left" class="content"><?echo $hme_pg;?></p>
      </table>
    </td>
  </tr>
  <tr>
    <td background="images/004b_03.jpg" valign="top">
      <table width="794" border="0" cellspacing="0" cellpadding="0" height="63">
        <tr>
          <td width="17" height="20"> </td>
          <td width="161" height="20" valign="top">
            <table width="135" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr>
                <td width="135"> </td>
              </tr>
              <tr>
                <td width="135">
                  <p><b><font face="Arial, Helvetica, sans-serif">Menu</font></b></p>
                  <ul>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=home&refid=<? echo $refid?>">Home</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=signup&refid=<? echo $refid?>">Signup</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=mem_log&refid=<? echo $refid?>">Login</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=purchase&refid=<? echo $refid?>">Purchase</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=upgrades&refid=<? echo $refid?>">Upgrades</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=faq&refid=<? echo $refid?>">Faq</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=tos&refid=<? echo $refid?>">Tos</a></font></li>
                    <li><font face="Arial, Helvetica, sans-serif"><a href="?imspt=support&refid=<? echo $refid?>">Contact</a></font></li>
                  </ul>
                </td>
              </tr>
              <tr>
                <td width="135">
                <br>
                <font size="1" face="Tahoma"><b>
                          Launch Date: <?echo $ldate_formatted;?><br>
                          Total Hits: <?echo $tot_hits_format;?><br>
                          Sites Advertised: <?echo $tot_url_format;?><br>
                          Banners Advertised: <?echo $tot_ban_format;?><br>
                          Active Members: <?echo $ucount2_format;?><br>
                          Members Today: <?echo $dailymem;?><br>
                          Members This Month: <?echo $monthmem_format;?>
                          </b>
                </font>
                </td>
              </tr>
              <tr>
              <td width="135">
              <p><font face="Arial, Helvetica, sans-serif" size="-1"><b><br>
                Great Programs!</b></font></p>
              </td>
              </tr>
              <tr>
                <td width="135">
                <font face="Arial" size="1" color="#4A79D6"><marquee direction="down" height="230" width="120" align="middle" scrollamount="2" onMouseOver="this.scrollAmount=0" onMouseOut="this.scrollAmount=2"><p align="center">
<?php include("tpl/rightsidebuttons.ihtml"); ?>
</MARQUEE></font>
                </td>
              </tr>
            </table>
          </td>
          <td width="26" height="20"> </td>
          <td width="574" height="20" valign="top">
           <?

switch($imspt) {
    case 'account':
        require("account.php");
        break;
   case 'ban_x':
        require("ban_x.php");
        break;
   case 'ban_x2':
        require("ban_x2.php");
        break;
   case 'confirm':
        require("confirm.php");
        break;
    case 'faq':
        require("faq.php");
        break;
   case 'mem_log':
        require("mem_log.php");
        break;
   case 'mem_log2':
        require("mem_log2.php");
        break;
   case 'member_acc':
        require("member_acc.php");
        break;
   case 'opensite':
        require("opensite.php");
        break;
   case 'purchase':
        require("purchase.php");
        break;
   case 're_act':
        require("re_act.php");
        break;
   case 'report':
        require("report.php");
        break;
   case 'report2':
        require("report2.php");
        break;
   case 'retrieve':
        require("retrieve.php");
        break;
   case 'signup':
        require("signup.php");
        break;
   case 'signup2':
        require("signup2.php");
        break;
   case 'signup3':
        require("signup3.php");
        break;
   case 'support':
        require("support.php");
        break;
   case 'support2':
        require("support2.php");
        break;
   case 'thankyou':
        require("thankyou.php");
        break;
   case 'tos':
        require("tos.php");
        break;
   case 'unsubscribe':
        require("unsubscribe.php");
        break;
   case 'upgrades':
        require("upgrades.php");
        break;
   case 'members/acc_sum':
        require("members/acc_sum.php");
        break;
   case 'members/acc_pro':
        require("members/acc_pro.php");
        break;
   case 'members/ban_mgr':
        require("members/ban_mgr.php");
        break;
   case 'members/ban_mgr2':
        require("members/ban_mgr2.php");
        break;
   case 'members/ban_mgr3':
        require("members/ban_mgr3.php");
        break;
   case 'members/ban_mgr_del':
        require("members/ban_mgr_del.php");
        break;
   case 'members/convert_cred':
        require("members/convert_cred.php");
        break;
   case 'members/convert_cred2':
        require("members/convert_cred2.php");
        break;
   case 'members/ref_mgr':
        require("members/ref_mgr.php");
        break;
   case 'members/ref_mgr2':
        require("members/ref_mgr2.php");
        break;
   case 'members/web_mgr':
        require("members/web_mgr.php");
        break;
   case 'members/web_mgr2':
        require("members/web_mgr2.php");
        break;
   case 'members/web_mgr3':
        require("members/web_mgr3.php");
        break;
   case 'members/web_mgr_del':
        require("members/web_mgr_del.php");
        break;
   default:
       require("home.php");
}
?>
<div class="bannerhold" align="center"><IFRAME WIDTH='468' HEIGHT='60' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO'
src='http://www.<?echo $domainname;?>/ban_x.php?affil=Admin'></IFRAME>
<br>
         <font color="#000000" size="1" face="Arial, Helvetica, sans-serif">Our
            member banner!</font><br>
        <p align="left" class="content"><?echo $hme_pg;?></p>
</div>
          </td>
          <td width="16" height="20"></td>
        </tr>
      </table>
    </td>
  </tr>
   <? include($DOCUMENT_ROOT.'/inc/footer.php'); ?>
</table>
<p> </p></body>
</html>

 

Here's the index.php in code sorry about the mistake before putting it in quotes lol i'm new at this forgive me

There, that's much easier to read, no?

 

You should avoid using short open <? tags, and instead use the full <?php syntax. The full syntax is supported universally; short tags can be disabled. That isn't the problem, though. You're using a global variable that most likely contains nothing ($DOCUMENT_ROOT), then when you follow it with the rest of the path, the forward slash starts at the root of the disk. Have you tried echoing $DOCUMENT_ROOT to see if there's any value assigned to it? In any event, you should be using the $_SERVER superglobal, $_SERVER['DOCUMENT_ROOT'] for that.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.