07-27-2013, 11:53 PM
CAN YOU CONVERT THIS FROM PHP TO JAVASCRIPT
...........................................................
<?php
//country code redirect
require_once('geoplugin/geoplugin.class.php');
$geoplugin = new geoPlugin();
$geoplugin->locate();
$country_code = $geoplugin->countryCode;
switch($country_code) {
case 'US':
echo '<script type="text/javascript"><!--
google_ad_client = "ca-pub-****************";
/* */
google_ad_slot = "****************";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
break;
}
?>
.............................................
"geoplugin/geoplugin.class.php" i want to upload it in external server
And Thank you
...........................................................
<?php
//country code redirect
require_once('geoplugin/geoplugin.class.php');
$geoplugin = new geoPlugin();
$geoplugin->locate();
$country_code = $geoplugin->countryCode;
switch($country_code) {
case 'US':
echo '<script type="text/javascript"><!--
google_ad_client = "ca-pub-****************";
/* */
google_ad_slot = "****************";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
break;
}
?>
.............................................
"geoplugin/geoplugin.class.php" i want to upload it in external server
And Thank you