Hai Friends i am new to php programing
I want to add admob code so that i can show ads on my dcms website
This is the Main index file of site i created the new php file added java code of admob to it
Then included in this file but nuthing happend plz tell me how to ad admob code to this php file thnx
I want to add admob code so that i can show ads on my dcms website
PHP Code:
<script type="text/javascript">
var admob_vars = {
pubid: '********', // publisher id
bgcolor: 'C62919', // background color (hex)
text: 'FFFFFF', // font-color (hex)
test: true // test mode, set to false to receive live ads
};
</script>
<script type="text/javascript" src="http://mmv.admob.com/static/iphone/iadmob.js"></script>
Then included in this file but nuthing happend plz tell me how to ad admob code to this php file thnx
PHP Code:
<?php
include_once 'sys/inc/start.php';
$doc = new document (); // инициализация документа для браузера
// получаем список виджетов
$widgets = ( array ) ini::read ( H . '/sys/ini/widgets.ini' );
foreach ( $widgets as $widget_name => $show ) {
if (! $show)
continue; // если стоит отметка о скрытии, то пропускаем
$widget = new widget ( H . '/sys/widgets/' . $widget_name ); // открываем
$widget->display (); // отображаем
}
?>