| View previous topic :: View next topic |
| Author |
Message |
npmaster
Joined: 18 Sep 2005 Posts: 1
|
Posted: Sun Sep 18, 2005 4:04 am Post subject: Web Development for the psp |
|
|
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. |
|
| Back to top |
|
 |
Bytrix
Joined: 14 Sep 2005 Posts: 72 Location: England
|
Posted: Sun Sep 18, 2005 7:31 am Post subject: |
|
|
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). |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Sun Sep 18, 2005 9:34 am Post subject: |
|
|
| Moved off-topic. |
|
| Back to top |
|
 |
|