Re: [PHP] WAP?

2006-11-07 Thread clive

Richard Lynch wrote:


So far, in my limited reading, it seems like more than a few people
are saying the 1.x-only handsets are still out there


yes true, just remember the 80/20 principle, how many of those older 
handset user will be using this wap site, actually depending on what you 
want to do you may want to have a look at USSD (way older than wap), 
this will work on all GSM phones even ones that don't have wap support.


It pretty much has to just work for any user in the United States.
Or Canada.


maybe you can gets stats on the most common handsets



I'm just happy to have Hello World working.

cool

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WAP?

2006-11-06 Thread Richard Lynch
On Mon, November 6, 2006 1:23 am, clive wrote:
 Richard Lynch wrote:
 On Fri, November 3, 2006 3:14 am, clive wrote:


 The closest I can come is with a deck whose entire contents spew out
 at once to a handset:

 Is there any reason why you insist on using WAP 1.X?

I dunno that I insist on it...

So far, in my limited reading, it seems like more than a few people
are saying the 1.x-only handsets are still out there

It pretty much has to just work for any user in the United States.
Or Canada.

At least, that's the closest thing I've got to a spec from the
client at this point on this particular sub-project of the project.

I'm very much in the research phase here though.

Have all 1.x-only handsets been retired/replaced?

I haven't made any kind of decision on this yet at all.

I'm just happy to have Hello World working.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WAP?

2006-11-05 Thread clive

Richard Lynch wrote:

On Fri, November 3, 2006 3:14 am, clive wrote:




The closest I can come is with a deck whose entire contents spew out
at once to a handset:


Is there any reason why you insist on using WAP 1.X?

clive

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WAP?

2006-11-05 Thread clive

Richard Lynch wrote:

On Fri, November 3, 2006 3:14 am, clive wrote:




http://www.acousticdemo.com/nationalsystems/pizzahut.com/wap/index.wml


tried the url on my nokia 6230i and get your first card displaying 
correctly.






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WAP?

2006-11-03 Thread Aarno Syvänen

Perhaps you should start at http://www.kannel.org

Aarno

On 02 Nov 2006, at 22:02, Richard Lynch wrote:


So today I was tasked with converting a PHP SMS solution to a PHP WAP
solution...

My first attempt at running through a Zend tutorial from 2000 was of
limited success...

Apparently, the card tag has gone the way of the dodo or something...

Went looking for the php-wap list at php.net/mailing-lists.php and I
guess it's not there...

I'm about to make some more tries at all this after a meeting with the
boss, and will probably eventually stumble across a good
resource/site/list for PHP+WAP, but...

Anybody want to nudge me in the right general direction?...

Thanks!

--
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WAP?

2006-11-03 Thread clive

Richard Lynch wrote:


Anybody want to nudge me in the right general direction?...


WAP 1.2.1 (not sure of the last version number ) is dead. Dont even 
bother with WAP 1.


WAP 2 is based on XHTML MP, thats xhtml mobile profile. Most newer 
phones are in some way compliant with WAP 2. What I mean is they will 
all display correctly, but things like file uploads aren't implemented 
on all phones.


Some people may say that WAP 1 was more compact and efficient than the 
latest version, but remember phones now use 3G, HSDPA etc instead of 
grps/edge, so I don't think thats a valid argument anymore, unless your 
accessing a wap page with brick.


clive



Thanks!



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WAP?

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 3:14 am, clive wrote:
 Anybody want to nudge me in the right general direction?...

I appreciate everybody's help, I really do, but...

At this point, I've gone through about 10 Hello World tutorials,
altered my DOCTYPE and DTD several times, used 2 different handsets
and 2 different SDK thingies, and I've got nothing useful so far, in
terms of a working card deck with actual interaction...

The closest I can come is with a deck whose entire contents spew out
at once to a handset:

http://www.acousticdemo.com/nationalsystems/pizzahut.com/wap/index.wml

I must be doing something really stupid wrong here...

But what?

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WAP?

2006-11-03 Thread tg-php
Doesn't look like the content type is set properly.  Here's another link that 
may be useful (from Zend themselves!) maybe that can help you out a bit.  
Content type and setting the xml version and DOCTYPE in the header are all 
fairly important.

Also, if I recall.. Firefox and/or Opera (not IE) will view the pages similar 
(but not identical) to how a cell phone does. Works nice if you just want 
quick/dirty script checking.

http://www.zend.com/zend/tut/wap.php?article=wapkind=tid=5191open=1anc=0view=1

-TG

= = = Original message = = =

On Fri, November 3, 2006 3:14 am, clive wrote:
 Anybody want to nudge me in the right general direction?...

I appreciate everybody's help, I really do, but...

At this point, I've gone through about 10 Hello World tutorials,
altered my DOCTYPE and DTD several times, used 2 different handsets
and 2 different SDK thingies, and I've got nothing useful so far, in
terms of a working card deck with actual interaction...

The closest I can come is with a deck whose entire contents spew out
at once to a handset:

http://www.acousticdemo.com/nationalsystems/pizzahut.com/wap/index.wml

I must be doing something really stupid wrong here...

But what?

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WAP?

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 1:19 pm, [EMAIL PROTECTED] wrote:
 Doesn't look like the content type is set properly.

The tutorial referenced says:
Content-type: text/vnd.wap.wml

wget is telling me I have:
 1 HTTP/1.1 200 OK
 2 Date: Fri, 03 Nov 2006 22:10:56 GMT
 3 Server: Apache/2.0.59 (FreeBSD) PHP/5.1.4 mod_ssl/2.0.59
OpenSSL/0.9.7d
 4 X-Powered-By: PHP/5.1.4
 5 Content-Length: 266
 6 Keep-Alive: timeout=15, max=100
 7 Connection: Keep-Alive
 8 Content-Type: text/vnd.wap.wml

LiveHTTPHeaders in FF is pretty much the same.

Ooh!
Is that HTTP/1.1 header messing me up?
What should it be?
Can I even change that?
I mean... It's *still* going out over HTTP, right?...

Is WAP 2.0 supposed to use a different Content-type?  Sure haven't run
across that in my reading so far...

A quick Google seems to indicate the Content-type does not change from
1.x to 2.x
http://www.ericsson.com/mobilityworld/sub/open/technologies/wap/about/wap_on_application_server

The DTD URL is valid, afaict...
Though I confess, I wouldn't really know an invalid DTD from a valid
DTD if they both ran up and bit me...

I was, early on, using text/plain if your ACCEPT headers from the
browser didn't have vnd.wap in them *somewhere*, but I ripped that
out, and it's always just text/vnd.wap.xml now, no matter what your
User-Agent...

 Also, if I recall.. Firefox and/or Opera (not IE) will view the pages
 similar (but not identical) to how a cell phone does. Works nice if
 you just want quick/dirty script checking.

For me, at least, FireFox is just prompting to download.

I then try to load that seemingly-valid output file into Nokia's NMB
4.0 and/or their NMI 4.1, and get nada.

Surfing on a Motorola v3c actual handset with their OpenWave
built-in browser thingie, I get the whole cardstack as one page.

Surfing on a BlackBerry 7520 with Nextel's default NOL browser, I get
500 Internal Server error - 500 Web service problem. Please contact
the service provider.  AFAIK, I *am* the service provider, and I don't
have a clue what went wrong.

I did have DocumentIndex instead of DirectoryIndex in my .htaccess
for about 20 minutes from 10:35 to 10:58 (Portland OR time) so
apologies to anybody who tried it in the time-frame.  I always screw
that one up.

My source code is dirt simple, with nothing more than the Zend
Tutorial referenced in it, really...

http://www.zend.com/zend/tut/wap.php?article=wapkind=tid=5191open=1anc=0view=1

I suppose my webhost's Apache might be doing something quite different
based on the ACCEPT line?

Doesn't seem to...

-bash-2.05b$ wget
http://acousticdemo.com/nationalsystems/pizzahut.com/wap/index.wml
--server-response   --14:17:49-- 
http://acousticdemo.com/nationalsystems/pizzahut.com/wap/index.wml
   = `index.wml.3'
Resolving acousticdemo.com... done.
Connecting to acousticdemo.com[67.139.134.211]:80... connected.
HTTP request sent, awaiting response...
 1 HTTP/1.1 200 OK
 2 Date: Fri, 03 Nov 2006 22:17:49 GMT
 3 Server: Apache/2.0.59 (FreeBSD) PHP/5.1.4 mod_ssl/2.0.59
OpenSSL/0.9.7d
 4 X-Powered-By: PHP/5.1.4
 5 Content-Length: 266
 6 Keep-Alive: timeout=15, max=100
 7 Connection: Keep-Alive
 8 Content-Type: text/vnd.wap.wml

100%[=]
266  259.77K/sETA 00:00

14:17:49 (259.77 KB/s) - `index.wml.3' saved [266/266]

-bash-2.05b$ cat index.wml.3
?xml version=1.0?
!DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 2.0//EN
http://www.wapforum.org/dtd/wml20.dtd; 
vml
card id=no1 title=Card 1
pHello World!/p
/card

card id=no2 title=Card 2
pWelcome to our WAP Tutorial!/p
/card
/vml
-bash-2.05b$

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WAP?

2006-11-02 Thread Dave Goodchild

You could try creating a stylesheet for media type=handheld, not sure how
stable support is.


Re: [PHP] WAP?

2006-11-02 Thread tg-php
WAP is just a sort of XML specific to creating 'cards' and content for cell 
phones.  I did some stuff a few years ago, was even in line to teach a class at 
a local training institute.

Once you figure out what structure you want to use for your cards and all that, 
the PHP stuff is really secondary.   You may find out that people are using 
'WAP' as a buzzword and really want the data displayed on fully capable HTML 
compliant (if somewhat small screened) devices.

Here are some WAP oriented links.  Some to WAP emulators so you can test online 
without using an actual cell phone or other wireless device.  A lot of 
companies offer software emualtors for their phones/devices.  Some of the 
emulators have plugin capability to emulate different devices (even changing 
the skin to look like that device).  Or if you find out that a particular 
device is running a mobile version of Opera or something, you can go to the 
software vendor's site and possibly get a PC version of it to simulate the 
experience.

If I can find it, I can post some super simplistic PHP+WAP stuff I did a while 
ago, but 99% of the fight is learning and writing the WAP code.  The PHP stuff 
will be exactly the same as PHP+MySQL+HTML or whatever other combo of PHP 
you've ever used.

I think I saw some PHP+WAP classes and libraries too, but I forget where. I'd 
check the usual sources (phpclasses, pear, etc).

http://www.w3schools.com/wap/
http://www.openmobilealliance.org/tech/affiliates/wap/wapindex.html
http://en.wikipedia.org/wiki/WAP
http://www.wirelessdevnet.com/
http://www.wap-shareware.com/directory/wapemulators.shtml
http://www.yospace.com/

Good luck Richard!

-TG

= = = Original message = = =

So today I was tasked with converting a PHP SMS solution to a PHP WAP
solution...

My first attempt at running through a Zend tutorial from 2000 was of
limited success...

Apparently, the card tag has gone the way of the dodo or something...

Went looking for the php-wap list at php.net/mailing-lists.php and I
guess it's not there...

I'm about to make some more tries at all this after a meeting with the
boss, and will probably eventually stumble across a good
resource/site/list for PHP+WAP, but...

Anybody want to nudge me in the right general direction?...

Thanks!





___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WAP?

2006-11-02 Thread Paul Scott

On Thu, 2006-11-02 at 17:11 -0500, [EMAIL PROTECTED] wrote:

 http://www.w3schools.com/wap/

Also, don't forget hawhaw. I think it lives at http://www.hawhaw.de or
something.

--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WAP?

2006-11-02 Thread tg-php
Ah.. grat pull!  I did forget about that one.  Good stuff, thanks! And yes, 
that appears to be the address.

= = = Original message = = =

On Thu, 2006-11-02 at 17:11 -0500, [EMAIL PROTECTED] wrote:

 http://www.w3schools.com/wap/

Also, don't forget hawhaw. I think it lives at http://www.hawhaw.de or
something.

--Paul
All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm



___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] WAP resources for PHP

2002-11-08 Thread Ernest E Vogelsinger
At 03:06 08.11.2002, Research and Development said:
[snip]
I need to make a site WAP ready in less than a month. What books or 
internet resources do you recommend for development of WAP in PHP.
[snip] 

Do a Google search for WML - it turns out a couple of very helpful links.
One of the best is http://www.w3schools.com/wap/default.asp, offering a
complete tutorial on WML.

To start with (and I didn't find that at w3schools) it is
_absolutely_necessary_ you tell PHP to transmit the correct content-type
header, by setting the header yourself:

header('Content-type: text/vnd.wap.wml');

Have fun (and post the URL when finished .-) )


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] WAP

2002-01-17 Thread Nathan Cassano


There are some excellent article at phpbuilder.com about PHP and WAP.

Go to http://www.phpbuilder.com/columns/
and scroll down to the WAP columns.

-Original Message-
From: LaserJetter [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 17, 2002 9:27 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] 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.


-- 
PHP General 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]




Re: [PHP] WAP

2002-01-17 Thread qartis

An easier way to do this is (in wap.php):

?
header(Content-type: text/vnd.wap.wml);
echo(?xml version=\1.0\?\n);
echo(!DOCTYPE wml PUBLIC \-//WAPFORUM//DTD WML 1.1//EN\
\http://www.wapforum.org/DTD/wml_1.1.xml\;\n\n);
?

And then continue with wml tags. This will be parsed by php but will also
have correct headers for WAP browsers.



-- 
PHP General 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]