rancitis Posted March 9, 2008 Share Posted March 9, 2008 Hello everybody, First, I'm sorry for my bad english . I write to tell me that the problem has arisen at the time of wanting to insert advertisements in a script that I installed on my server. The ads are managed from the configuration file called config.php. They show the segment where the same shape: #### ADVERTISEMENT CONFIGURATION #### $lads1 = 'y'; //does advertisement publish? ? (y - n) $lads1no = '5'; //in which line? (1 - 50) $lads1code = '<center><a href="#"><img src="'.$surl.'/images/lads1.jpg" border="0"></a><center>'; //advertisement codes $lads2 = 'y'; //does advertisement publish? ? (y - n) $lads2no = '20'; //in which line? (1 - 50) $lads2code = '<center><a href="#"><img src="'.$surl.'/images/lads2.jpg" border="0"></a><center>'; //advertisement codes $ads1 = 'y'; //does advertisement publish? ? (y - n) $ads1code = '<center><a href="#"><img src="'.$surl.'/images/ads1.jpg" border="0"></a><center>'; //advertisement codes $ads2 = 'y'; //does advertisement publish? ? (y - n) $ads2code = '<center><a href="#"><img src="'.$surl.'/images/ads2.jpg" border="0"></a><center>'; //advertisement codes $ads3 = 'y'; //does advertisement publish? ? (y - n) $ads3code = '<center><a href="#"><img src="'.$surl.'/images/ads3.jpg" border="0"></a><center>'; //advertisement codes $ads4 = 'y'; //does advertisement publish? ? (y - n) $ads4code = '<center><a href="#"><img src="'.$surl.'/images/ads4.jpg" border="0"></a><center>'; //advertisement codes $ads5 = 'y'; //does advertisement publish? ? (y - n) $ads5code = '<a href="#"><img src="'.$surl.'/images/ads5.jpg" border="0"></a>'; //advertisement codes As you can see the script is ready to insert advertisements in the form of static links through banners. The theme is that my advertisements are designed in JavaScript. I would like to consult you could edit this part of the code that I take the code in Java script. I tried inserting in this way (see Listing No 5). #### ADVERTISEMENT CONFIGURATION #### $lads1 = 'y'; //does advertisement publish? ? (y - n) $lads1no = '5'; //in which line? (1 - 50) $lads1code = '<center><a href="#"><img src="'.$surl.'/images/lads1.jpg" border="0"></a><center>'; //advertisement codes $lads2 = 'y'; //does advertisement publish? ? (y - n) $lads2no = '20'; //in which line? (1 - 50) $lads2code = '<center><a href="#"><img src="'.$surl.'/images/lads2.jpg" border="0"></a><center>'; //advertisement codes $ads1 = 'y'; //does advertisement publish? ? (y - n) $ads1code = '<center><a href="#"><img src="'.$surl.'/images/ads1.jpg" border="0"></a><center>'; //advertisement codes $ads2 = 'y'; //does advertisement publish? ? (y - n) $ads2code = '<center><a href="#"><img src="'.$surl.'/images/ads2.jpg" border="0"></a><center>'; //advertisement codes $ads3 = 'y'; //does advertisement publish? ? (y - n) $ads3code = '<center><a href="#"><img src="'.$surl.'/images/ads3.jpg" border="0"></a><center>'; //advertisement codes $ads4 = 'y'; //does advertisement publish? ? (y - n) $ads4code = '<center><a href="#"><img src="'.$surl.'/images/ads4.jpg" border="0"></a><center>'; //advertisement codes $ads5 = 'y'; //does advertisement publish? ? (y - n) $ads5code = '<script type="text/javascript"> var AdBrite_Title_Color = '0000FF'; var AdBrite_Text_Color = '000000'; var AdBrite_Background_Color = 'FFFFFF'; var AdBrite_Border_Color = 'CCCCCC'; var AdBrite_URL_Color = '008000'; </script> <script src="http://ads.adbrite.com/mb/text_group.php?sid=603348&zs=3136305f363030" type="text/javascript"></script> <div><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=603348&afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here</a></div>'; //advertisement codes But I get the following error: Parse error: syntax error, unexpected T_LNUMBER in /www/****/htdocs/bit/config.php on line 46. It should be a simple problem of syntax but not what I could see, still not handling very well php. Since already many thanks for your help Greetings!. Quote Link to comment Share on other sites More sharing options...
rancitis Posted March 9, 2008 Author Share Posted March 9, 2008 Someone help me? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.