does anybody know any good PHP codes?
does anybody know any good PHP codes?
what exactly are you looking for?
This code will (header) redirect anything that does not have "Firefox" in its HTTP_USER_AGENT (to location:) and will run the rest of the page otherwise (in this case it’ll print "HTTP_USER_AGENT identified as Firefox")..:)Code:<?php if (!stristr($_SERVER['HTTP_USER_AGENT'], "Firefox")) { header( 'location:http://your-firefox-promo-page/' ); exit(); } echo('HTTP_USER_AGENT identified as Firefox'); ?>
maybe this sites fit your needs ;)
http://www.hotscripts.com/PHP/index.html
http://www.phpclasses.org/
You could go to -
http://www.hotscripts.com/
And click PHP, they have everything there and the best part is that it's updated every day!