Page 1 of 1

Web Development for the psp

Posted: Sun Sep 18, 2005 4:04 am
by npmaster
i am having a web development problem for the psp. i decieded i was going to make a psp version of my site. i made the site ok and it works on my psp. the only trouble is i want to be able to send users to me psp sized site automatically. another trouble is that cause i am a student i am using a free 50 megs account so i am slightly restricted. anyway i found out (maybe) a solution to this problem but i need to have the psp's user agent code (the web browser id thingy). i can't find it anywhere so if someone can help me i will really be happy :-).

p.s i wasn't sure where to put this, if it is in the wrong forum then sorry. if admin can move it to the right place if there is one i would be grateful, thanks.

Posted: Sun Sep 18, 2005 7:31 am
by Bytrix
At the top of my index.php for my main domain I have this line :

if($_SERVER['HTTP_USER_AGENT']=='Mozilla/4.0 (PSP (PlayStation Portable); 2.00)') header('location:/psp/');

Which will basically just load the page from domain.com/psp/ if viewed from a PSP (or a browser pretending to be a PSP for testing).

Posted: Sun Sep 18, 2005 9:34 am
by mrbrown
Moved off-topic.