Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged browser



« Prev 1 Next »
0 2499 posted 12 years ago by larscmagnusson
This is my simple image resizer on the fly thing. -- WARNING -- Resizing and showing images on the fly could potentially kill your server or make the website slow. Ideally, this should save the resized image in a cache. However, more often th...
0 2851 posted 12 years ago by brownrl
Helps to find out browser version and type your website visitor is using.
0 2557 posted 12 years ago by apphp-snippets
0 2417 posted 14 years ago by simondiercks
0 2396 posted 14 years ago by serialk89
1 2727 posted 14 years ago by mfigge
0 1231 posted 15 years ago by i0ni
0 1342 posted 15 years ago by laurentzziu
1 2656 posted 15 years ago by danwhite85
0 1198 posted 15 years ago by miniake
5 1668 posted 15 years ago by StevenW721
Detect and echo browser version including differentiating between Chrome and Safari.
3 2098 posted 15 years ago by vagrantradio
1 1309 posted 15 years ago by frankyfish
Place in your functions.php file and call it in your theme like this: <?php>
1 2816 posted 16 years ago by afj176
1 1661 posted 16 years ago by jfoucher
Sometimes you just need to mask a script or reject a user from a page this can be done effortlessly using a single line of code. Header location will allow you to redirect a user quickly and without them having any control over the action. A good...
1 1334 posted 16 years ago by scopefragger
2 1839 posted 16 years ago by Thresh
Just provide $availableLanguages as an array('en', 'de', 'es')
5 3008 posted 16 years ago by ping_ch
This handy little script will allow you to detect whether or not a user is running FireFox as their browser.
0 1294 posted 17 years ago by aristoworks
2 1716 posted 18 years ago by smartalec
echo ( browser_detection( 'number' ) .''. browser_detection( 'browser' ) .''. browser_detection( 'os' ) .''. browser_detection( 'os_number' ) ); Outputs (browser version, browser, os, os number): 1.5 moz nt 5.1 if ( ( browser_de...
2 2808 posted 18 years ago by llbbl
Heres how to use print_r(browser_detection('full')); We can also use this script print "IP: ". $_SERVER['REMOTE_ADDR'].""; ### IP ADDRESS ## print "Browser:" . $_SERVER["HTTP_USER_AGENT"].""; ## Browser print "OS: ". $_ENV["OS"]; ### OS
8 1942 posted 19 years ago by mail_json
« Prev 1 Next »