Search (advanced search) | ||||
Use this Search form before posting, asking or make a new thread.
|
07-27-2013, 11:53 PM
Post: #1
|
|||
|
|||
[REQ] CAN YOU CONVERT THIS FROM PHP TO JAVASCRIPT
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 |
|||