Thanks! They've been useful.

How do I detect whether a WAP browser is being used? I know how to check
whether Netscape or IE is being used via JavaScript. Is this how to do it
with WAP?


"Ross Fleming" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This is part of my final year project at university, so hopefully I'll be
> able to help you.  Some pointers...
>
> 1. visit http://www.allnetdevices.com/faq/ for wml info
> 2. never assume the size of a WAP phone screen, no two are alike.
> 3. keep the pages TINY! WAP phones have very little memory, and don't
handle
> big pages at all.
> 4. generating wml pages from php.  Basically, you have to have a .php file
> that creates html content.  At the above webpage there is a php script
that
> determines whether a wap browser is opening the page and directs it
> accordingly.
> 5. atart any php/wml pages with <?
header("Content-type=text/vnd.wap.wml");
> ?> and it's now a page a phone will accept.
> 6. as for the porting all your files to wml, then that is VERY difficult
to
> do.  I'm not even sure PHP could do it.  This is what my project is all
> about and I'm not using PHP for the conversion.  It's harder than you
might
> think to do.  Professional software can do this for you (I believe IBM has
a
> solution but it costs a bomb) but I'd consider having a wap site and web
> site, with an index.php file at the root that sends the user to the
correct
> version (using the script at 1.)
>
> Good luck with it, let me know how you get on as I'd really like to hear
> other peoples opinions on this, seeing as I'll have to write an 80 page
> dissertation on it!!!
>
> Regards
>
> Ross Fleming
>
> -----Original Message-----
> From: LaserJetter [mailto:[EMAIL PROTECTED]]
> Sent: 17 January 2002 17:27
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP-WIN] WAP
>
>
> I was fiddling around with the Nokia WAP toolkit the other day and I've
> created a pretty little WAP site - just listing dates and it has a WBMP
> image as a welcome screen.
>
> Whilst looking for someone to host the site, I noticed a review for  f2s
> which said "allows PHP to be combined with WML" That would be a pretty
neat
> thing to do - I could have a PHP script automatically port every page to
WML
> and WBMP images.
>
> The problem is, how do you include PHP in a WML file?  Do you have to use
> <SCRIPT LANGUAGE="php"></SCRIPT> in a .wml file or can you use .php files?
> (I can't just fidddle about because I don't have a WAP phone yet!)
>
> Also, and I know this isn't really anything to do with PHP, what are the
> dimensions in pixels of a typical WAP phone screen?
> I checked my site using the emulator in the Nokia Toolkit and the one at
> TagTag.com and my WBMP image fitted nicely in the middle of the screen.
But
> when my girlfriend showed it me on her phone, only about a third of the
> image fitted on!!   Making the image smaller wouldn't be a problem but I
> dont really know what size to make it.
> Any directions to some useful info would be greatly appreciated.
>
> LJ
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to