error

Status
Not open for further replies.

coolrider

New Member
Messages
70
Reaction score
0
Points
0
Parse error: parse error, unexpected '<' in mainfile.php on line i tryed and i tryed every thing i can read and think of and i cant get teh code to work what am i doing wrong? :blink:
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Way more information man. You're like saying "go tell that person" when in the middle of a huge crowd...

We have no idea what you are talking about... What are you using? Is it a blog, etc.? Where's your website? Can you show us 5 lines above and below from the error?
 

coolrider

New Member
Messages
70
Reaction score
0
Points
0
no but every time i put in the x10hosting ad codes in the maifile.php i get a error i tryed every thing i can see and think of and it just dont want to work for me lol i did read in the fourms how but it dont want to work
 

BrettFreeman

New Member
Messages
106
Reaction score
0
Points
0
What is the code you are trying to include? Are you including it between the <? ?> tags? If you are, that is probably what you are doing wrong. Do this:

echo "Banner Code Here";
 

coolrider

New Member
Messages
70
Reaction score
0
Points
0
my site is www.military.x10hosting.com i was told by your guys to go to my cpanel and then mailfile.php and put in your ads so i did and so i did i went to your ads fourms and copy the code and did what it said but i can tge t it to work most of the time i get a error and the other i get nothing lol sorry just tell me what u want to see and ill show u if i can i use IE and i get the error but when i use firefox i get no error and the add dont show up
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
I don't get any error on Internet Explorer, it just appears with a white background and nothing on it...

The reason it isn't showing is because you didn't insert the ad right...

You put
<center><script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'> </script>
<script language='JavaScript' type='text/javascript'></script>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';

That's not the full code...
 

BrettFreeman

New Member
Messages
106
Reaction score
0
Points
0
Can you post the general area (about 10 lines above and 10 lines below) the area where you are trying to add the ads?
 

coolrider

New Member
Messages
70
Reaction score
0
Points
0
? what thats wierd i put the full code hmm and then took it off and thats another thing why cant people see my site wiht IE???? it worked for like 10min with IE then nothing for the last few days no one useing internet explorer can go to my site im am sorry if i dont give enough info and where did u see that code at? i did not put that in
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
You don't make any sense... if you say you are sorry for not providing alot of information, then why don't you, knowing that you arn't?

Whatever...

At the very top. I don't know exactly what page but I just skimmed through it at the top of http://www.military.x10hosting.com/.
 

BrettFreeman

New Member
Messages
106
Reaction score
0
Points
0
Dude, I found the problem:

Code:
<center><script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'> </script>
<script language='JavaScript' type='text/javascript'></script>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
<style type="text/css">

<!--

.sf {	FONT-SIZE: 10px; FONT-FAMILY: verdana, arial, helvetica, sans-serif

}

-->

</style>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>

Your script is located OUTSIDE of the html and head tags. It should be located in the <head></head> tags. Or you put the code where it is required, I am not totally sure... On second though, maybe you place the code where you want the ads to show-up.
 

coolrider

New Member
Messages
70
Reaction score
0
Points
0
ok i just put the code in at the top on the mainfile.php
<?php
echo "<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>\n";
?>

if u use IE the ad shows up but still not my site and if u use like firefox the site shows up and not the ads im sorry buging u all
 

BrettFreeman

New Member
Messages
106
Reaction score
0
Points
0
No problem, that is what we are here for. Try putting it at the bottom. Or try this. End your PHP block '?>' And put the HTML in.
 

coolrider

New Member
Messages
70
Reaction score
0
Points
0
all i am saying is when 1 of your guys help em set up the new wensite it worked find for like 10min then every thing gone then it all came back and now u cant use IE to view my website i had to install firefox just so i can see my site im am sorry but if people cant view my website useing IE then what are they going to do ? every one i know use's IE and yes chris the code works u are right i just need to know how to fix it so people can use IE again to view the website
 

BrettFreeman

New Member
Messages
106
Reaction score
0
Points
0
So, the codes shows up in IE, but not in FireFox, or is it the other way...

In the main index.php file, type this: require("mainfile.php");
 

coolrider

New Member
Messages
70
Reaction score
0
Points
0
if u use IE u cant view my website only the ad for x10hosting but if u use firefox u can view the site and not the ad i need to find out why my website not work with IE and every other explorer works
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Right now, you cannot view it in Firefox...

Warning: Cannot modify header information - headers already sent by (output started at /home/military/public_html/mainfile.php:2) in /home/military/public_html/mainfile.php on line 214

I have no idea how to fix it because I don't have the code... Can you post the index.php and/or mailfile.php or something?
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Or a good 20 to 40 lines up and down from line 214.

Preferabably the whole file, in case there is another error.
 

BrettFreeman

New Member
Messages
106
Reaction score
0
Points
0
I am going to help him over MSN. He requested it because he thought you might be getting mad because of all of the posts. Probably more effecient also.
 
Status
Not open for further replies.
Top