Ads in PHP

Status
Not open for further replies.

frznmnky

New Member
Messages
326
Reaction score
0
Points
0
Hey i have a php file that load wen u first visit my site rougewars.co.cc, and everytime i put the ad code in the file it gives me error..
Code:
[B]Parse error[/B]:  syntax error, unexpected T_STRING, expecting ',' or ';' in [B]/home/****/public_html/****/****.php[/B] on line [B]45[/B]


how can i put the x10 ad code in there??
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Use echo
PHP:
echo 'ADCODE SCRIPT HERE';
 

frznmnky

New Member
Messages
326
Reaction score
0
Points
0
Nope still doesnt work.. would you like me to send u that php file so u can see wat to do?
 

Sohail

Active Member
Messages
3,055
Reaction score
0
Points
36
Have you tried inserting it with HTML? Here's an example of how you do it.

<? php
[PHP CODE HERE]
?>
[HTML CODE HERE / AD CODE]
<? php
[MORE PHP CODE]
?>

It should work :).
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
You could also try :
PHP:
<?php
...
print <<<END
<script>...</script>
END;
?>
 
Last edited:
Status
Not open for further replies.
Top