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.
Web Development for the psp
Moderator: cheriff
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).
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).