error

Status
Not open for further replies.

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Heh, OK. I'm not getting or ever were mad... If you can't help him solve it I'll be glad to help him over MSN/ICQ/AIM/YAHOO/etc.
 

BrettFreeman

New Member
Messages
106
Reaction score
0
Points
0
Post the part of the file the error is coming from... Or create a duplicate file and call it mainfile.phps and this will show the PHP code with highlighting.
 

Origin

New Member
Messages
1,082
Reaction score
0
Points
0
The problem is you used CPanel. Edit it using notepad, remove spaces at the end, and reupload it.

CPanel screws things up.
 

repusmod

New Member
Messages
502
Reaction score
0
Points
0
OKay to get ad working on php site, you need to add the ad code in "header.php" on top of the file..And site works fine in FireFox, why it doesn't work in IE I really don't know, and I'm not one of x10hosting guys, I'm member like you here on site.

Ad code
Code:
echo "<center><script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'> </script>\n"; echo "<script language='JavaScript' type='text/javascript'>\n"; echo "<!--\n"; echo "if (!document.phpAds_used) document.phpAds_used = ',';\n"; echo "phpAds_random = new String (Math.random());\n"; echo "phpAds_random = phpAds_random.substring(2,11);\n"; echo "document.write (\"<\" + \"script language='JavaScript' type='text/javascript' src='\");\n"; echo "document.write (\"http://x10hosting.com/advert/adjs.php?n=\" + phpAds_random);\n"; echo "document.write (\"&amp;what=zone:1&amp;target=_blank\");\n"; echo "document.write (\"&amp;exclude=\" + document.phpAds_used);\n"; echo "if (document.referrer)\n"; echo "document.write (\"&amp;referer=\" + escape(document.referrer));\n"; echo "document.write (\"'><\" + \"/script>\");\n"; echo "//-->\n"; echo "</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'> <img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d' border='0' alt=''></a> </noscript></center>\n";

Header.php with ad code in
Code:
<?php
echo "<center><script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'> </script>\n"; echo "<script language='JavaScript' type='text/javascript'>\n"; echo "<!--\n"; echo "if (!document.phpAds_used) document.phpAds_used = ',';\n"; echo "phpAds_random = new String (Math.random());\n"; echo "phpAds_random = phpAds_random.substring(2,11);\n"; echo "document.write (\"<\" + \"script language='JavaScript' type='text/javascript' src='\");\n"; echo "document.write (\"http://x10hosting.com/advert/adjs.php?n=\" + phpAds_random);\n"; echo "document.write (\"&amp;what=zone:1&amp;target=_blank\");\n"; echo "document.write (\"&amp;exclude=\" + document.phpAds_used);\n"; echo "if (document.referrer)\n"; echo "document.write (\"&amp;referer=\" + escape(document.referrer));\n"; echo "document.write (\"'><\" + \"/script>\");\n"; echo "//-->\n"; echo "</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'> <img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d' border='0' alt=''></a> </noscript></center>\n";
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("header.php", $_SERVER['SCRIPT_NAME'])) {
    Header("Location: index.php");
    die();
}
require_once("mainfile.php");

##################################################
# Include some common header for HTML generation #
##################################################
 
Status
Not open for further replies.
Top