Greetings,
I need to write a PHP program but it is beyond my simple knowledge. I would REALLY appreciate any help, links, advice, etc.
The site I am building is for mobile phones. I'm located in Japan. Mobile phones have various screen sizes. In a nutshell:
The index page has various images, for example a logo. When the limg tag for the logo is executed, it should check the user agent. I have a file that contains all the user agents of Japanese mobile phones. For example:
Model | File Code
D501i a.gif
F501i b.gif
D505 a.gif
P2034 c.gif
and so on...
So we check the user agent, and replace the url with the correct image.
Like:
<img src="<?=$ta-> ***(USER_INDEX_URL,"logo") ?>">
So the above references getfilename.php, and so when index page is loaded, the mobile browser sees
<img src="logo-a.gif" />
(something like that)
I think you can get what I'm after.
I have no idea where to begin. I looked for some snippets on hotscripts but wasn't successful. 🙁
If my explanation isn't clear, please let me know.
Regards,
Carlos