for the second,
If I've correctly understood what you want to do (and mybe I don't)
and you want create a PHP redirect,
to allow iphone users to view the correct version of your site, and
other, the standard version of your pages,
you can use this code:
<? if (stristr($_SERVER['HTTP_USER_AGENT'],'iPhone')) {
header("location: http://www.youriphonesite.com"); } ?>
I'm not an expert on PHP, but I think this will work corrrectly
bye!
On 26 Mar, 14:23, KenE <[EMAIL PROTECTED]> wrote:
> Ok, I want to make my first webpage for my iPhone users. I have made
> a page but I have a few begginers questions.
> (1) how do I tell the iPhone to open my page at some fixed pixels
> wide, say 600. Right now the first time I went to my page it opened
> at 600 wide but every time after the first time it opens at what ever
> zoom size I last had it at.
> (2) I have the code to tell if I am being browsed by an iPhone, how do
> I in php have one set of code display for iPhone and another set of
> code display for everything else. I could do a redirect, but google
> either will not let you or will not make the pages correctly.
>
> Thanks, Ken E
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---