re: how to access the perl file from palm top

2001-12-28 Thread Grant Babb

CGI::WML available from CPAN ... you should be able to port your code quite 
easily with it.

hope that helps-
grant




re: how to access the perl file from palm top (READ THIS ONE)

2001-12-28 Thread Grant Babb

[sorry, forgot about the otherpart of this]
CGI::WML available from CPAN ...
you should be able to port your code quite easily with
it.
also - you need to set up the mime-type for wml in apache, 1.3.22 and up
seem to have it already (don't know about previous versions).

hope that helps-
grant 

Grant
BabbEmail:
[EMAIL PROTECTED]
Data Junction Corporation
Phone: (512)
459-1308
2201 Northland Dr.
Fax:
(512) 459-1309
Austin, TX 78756-1117
Web:
http://www.datajunction.com




how to access the perl file from palm top

2001-12-27 Thread SubbaReddy M

Hello Gurus,

I have apache with mod-perl env. on Redhat linux 6.2 and mysql as backend.
Written perl script that fetch the data from mysql database and generate the
dynamic page to view
from PC based browser.


#!/usr/bin/perl -w
use CGI qw(:standard);
use DBI;
$driver = mysql;
$database = MsgBoard;
$user = root;
$password = ;
$host = 127.0.0.1;
$port = ;
$dsn = DBI:$driver:database=$database;host=$host;port=$port;
$dbh = DBI-connect($dsn, $user, $password,{'RaiseError' = 1});
$drh = DBI-install_driver(mysql);

my $cgiQuery = new CGI;
print $cgiQuery-header,start_html(check user);
$myTable = UNAME;
$sth = $dbh-prepare(Select uname From $myTable WHERE uname =
'required user' );

 if (!$sth)
{
   $ERROR=Error: . $dbh-errstr.BR Network Failed by Your
requestbr/body/html;
}
 if (!$sth-execute)
{
  $ERROR=Error:  . $dbh-errstr;
}
  $sth-bind_columns( undef,\$uid);
  $sth-fetch();

print b $uid user found /b;
$cgiQuery-end_html;


But, now I want to access the same file from Palm top and Cell phone.

What is content-type and in what format the page need to generate to access
from the Palm top?
and from Cell phone?

If Generate the XML data repository using perl script, to view from Palm top
what are the parser need to use at Palm top and server.

Kindly, please give me suggestion and if any examples.

Thanks  in advance.

~ SubbaReddy .M