Client side JS that fetches server side PHP to detect mobile devices.
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
is_mobile.php
is_mobile_functions.php

README

/*
USAGE

You'll have to set the mobile domain and the location of the script.
*/

<script type="text/javascript"> 
//CONFIGURATION
var websitez_mobile_detection_api = {
	current_domain: document.domain,
	redirect_mobile_visitor: true,
	mobile_website_url: 'http://m.domain.com',
	insert_mobile_website_footer_override_link: true
}
</script> 
<script type="text/javascript" src="http://remotedomain.com/is_mobile.php"></script>