Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 10-04-2011, 12:06 AM   #1
Solid State Member
 
rajveer's Avatar
 
Join Date: Sep 2011
Location: India
Posts: 12
Default Js include in php

HI Friends i need help to put google ads in my php website
THis is my site main index code plz help me including gogle code in it
PHP Code:
<?php
include_once 'sys/inc/start.php';
$doc = new document (); // инициализация документа для браузера


// получаем список виджетов
$widgets = ( array ) ini::read '/sys/ini/widgets.ini' );

foreach ( 
$widgets as $widget_name => $show ) {
    if (! 
$show)
        continue; 
// если стоит отметка о скрытии, то пропускаем
    

    
$widget = new widget '/sys/widgets/' $widget_name ); // открываем
    
$widget->display (); // отображаем
}
I want to put google code here
?>
i tried making another php with google code writen in it and then include fintion but nothing happend but if make just some text n include it works only google ads js function not works n ads not shows plz plz help me
__________________

rajveer is offline   Reply With Quote
Old 10-04-2011, 08:12 AM   #2
JCB
Daemon Poster
 
JCB's Avatar
 
Join Date: Oct 2004
Posts: 1,302
Default Re: Js include in php

the ads should work if you simply copy + paste the google code in to there.

Did you wait up to 30 mins after you created the ad in google adsense, When u create a new ad it usually take 10 minutes until it displays on your site

Can your site display google ads?? If that site is banned you wont be able to display ads on there, Create a blank .html file and paste the code in to there then upload the file and browse to it in your ie browser
__________________

__________________
Check Out My Computer Related YouTube Channel @ Click Here
JCB is offline   Reply With Quote
Old 10-04-2011, 09:27 AM   #3
Solid State Member
 
rajveer's Avatar
 
Join Date: Sep 2011
Location: India
Posts: 12
Default Re: Js include in php

I know bro but not working they works on .html file n even when i was using other script they worked dont know why no on this n my site is not banned nor the ads are new they are activated n working
rajveer is offline   Reply With Quote
Old 10-04-2011, 06:03 PM   #4
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: Js include in php

Paste the analytics code into a file named "analytics.html", and save it in the same location as the above file. Add the line "include_once 'analytics.html'" (without the outermost quotes) in your PHP code where you want your analytics code to be included.
j03 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 12:40 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0