Web Development for the psp

General, off-topic discussion about things of interest to the members of these forums.

Moderator: cheriff

Post Reply
npmaster
Posts: 1
Joined: Sun Sep 18, 2005 3:55 am

Web Development for the psp

Post 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.
Bytrix
Posts: 72
Joined: Wed Sep 14, 2005 7:26 pm
Location: England

Post 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).
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Moved off-topic.
Post Reply