Share/Bookmark

Featured Posts

SharePoint Ticker Web Part from Existing Data Ever wanted to create a ticker in SharePoint without having to buy the $99 add-on from Microsoft, well here's the code: Simply create a new Web Part using the 'Content Editor' and open the 'Source Editor...'...

Read more

Sony E3 Prediction 2010 With E3 upon us in the coming weeks, and Sony keeping tight lipped about their schedule I think it's time we started predicting the outcome, the announcements and surprises with educated and industry sector...

Read more

Sony E3 Prediction 2010 With E3 upon us in the coming weeks, and Sony keeping tight lipped about their schedule I think it's time we started predicting the outcome, the announcements and surprises with educated and industry sector...

Read more

Whats next for Nintendo? Today I noticed that Nintendo have had falling profits for 2010 and predict even less sales for next year. The Wii 2 hasn`t been officially announced and from what I can see is not really on the radar....

Read more

7 Great Free Android Apps The Android mobile operating system is both fast, reliable and can do everything that the Apple OS can and a little more (all for normally a fraction of the price.) plus it supports Flash and soon Flash...

Read more

Redirect a PSP Browser

Posted by matthew | Posted in Code Snippets | Posted on 01-12-2009

Tags: , ,

0

Need to redirect a PSP browser, easy!

Simply put this code at the top of your page before anything else:

if(preg_match('/.*PSP.+PlayStation.*/', $_SERVER['HTTP_USER_AGENT'])) {
header("location:http://www.mysite.com/psp.php");
}

This ultra-slim code will redirect a PSP browser to a page of your choice. This is very handy if you want PSP users to view a different site or to create a specific page suited for the browser

Write a comment