php-windows Digest 24 Jan 2002 05:00:56 -0000 Issue 967
Topics (messages 11589 through 11610):
Re: $PHP_SELF
11589 by: Aasmund Sæter
11590 by: Martin Lindhe
11591 by: Ryan Marrs
11592 by: Martin Lindhe
smtp help
11593 by: Mike Garfias
11594 by: Martin Lindhe
11597 by: J Wynia
11599 by: DL Neil
Printing using PHP
11595 by: Tom Skillman
Re: [binarycloud-dev] Re: [PEAR-DEV] Re: [metabase-dev] RE:[PEAR-DEV] New Metabase
Aniversary release
11596 by: alex black
Re: Include()
11598 by: Ross Fleming
11601 by: alain samoun
11604 by: Shrock, Court
Re: [PHP-INST] Adding GD extensions
11600 by: Ellis Michael A KPWA
fopen
11602 by: Robert Abbate
11606 by: Philipp Traeder
Windows NT SMTP Set Up Help Needed
11603 by: Charlie Killian
Problems with users using pconnect instead of connect
11605 by: Fritz Keller
Re: Session and Header function
11607 by: Charlie Killian
Re: WAP
11608 by: Charlie Killian
kermit? getting data from comm port?
11609 by: Jeff D. Hamann
Here is a Step by Step on how to install and configure PHP 4.1.x in Win2k with IIS5
11610 by: Andre Amaral
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I just installed PHP 4.1.1 and $PHP_SELF worked!
"Aasmund SæTer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have been trying to get $PHP_SELF to display the filename, but I only
get
> "Warning: Undefined variable: PHP_SELF ". Isn't this a supposed to a
> predefined variable?
>
> I got Windows XP, Apache 1.3.12 and PHP 4.1.0. I use PHP as a Apache
module.
> Shouldn't it work then? I read on www.php.net that PHP_SELF wouldn't work
if
> PHP is running as a command-line processor (CGI verion of PHP?).
>
> Please help me, I have been looking everywhere for an answer. I got
scripts
> (not made by me) which uses this variable.
>
>
--- End Message ---
--- Begin Message ---
This depends on your php.ini configuration,
to assure your script works in any case, use
$_SERVER["PHP_SELF"] instead :)
/Martin
> -----Original Message-----
> From: Aasmund Sæter [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 23, 2002 5:15 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: $PHP_SELF
>
>
> I just installed PHP 4.1.1 and $PHP_SELF worked!
>
>
> "Aasmund SæTer" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I have been trying to get $PHP_SELF to display the filename, but I
> > only
> get
> > "Warning: Undefined variable: PHP_SELF ". Isn't this a
> supposed to a
> > predefined variable?
> >
> > I got Windows XP, Apache 1.3.12 and PHP 4.1.0. I use PHP as a Apache
> module.
> > Shouldn't it work then? I read on www.php.net that PHP_SELF
> wouldn't
> > work
> if
> > PHP is running as a command-line processor (CGI verion of PHP?).
> >
> > Please help me, I have been looking everywhere for an answer. I got
> scripts
> > (not made by me) which uses this variable.
> >
> >
>
>
>
> --
> 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]
>
--- End Message ---
--- Begin Message ---
The problem lies not with the installation, but the configuration. You
should try your best to get around using $PHP_SELF and other globally
registered variables, but if you must use them, you can turn
register_globals On in you php.ini file.
Ryan
-----Original Message-----
From: Aasmund Sæter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 11:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: $PHP_SELF
I just installed PHP 4.1.1 and $PHP_SELF worked!
"Aasmund SæTer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have been trying to get $PHP_SELF to display the filename, but I
> only
get
> "Warning: Undefined variable: PHP_SELF ". Isn't this a supposed to a
> predefined variable?
>
> I got Windows XP, Apache 1.3.12 and PHP 4.1.0. I use PHP as a Apache
module.
> Shouldn't it work then? I read on www.php.net that PHP_SELF wouldn't
> work
if
> PHP is running as a command-line processor (CGI verion of PHP?).
>
> Please help me, I have been looking everywhere for an answer. I got
scripts
> (not made by me) which uses this variable.
>
>
--
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]
--- End Message ---
--- Begin Message ---
> This depends on your php.ini configuration,
> to assure your script works in any case, use
>
> $_SERVER["PHP_SELF"] instead :)
>
> /Martin
Hmm, or actually i think the deal is just that
PHP 4.1.x have error_reporting = E_ALL & ~E_NOTICE
by default, so warnings isnt displayed. and
at least IE would threat the resulting
<a href=""> or <a href="?xxx"> as if it was the current page,
so everything will appear to work, <a href=""> wont work
with Netscape tho, so go with $_SERVER["PHP_SELF"]
/Martin
>
> > -----Original Message-----
> > From: Aasmund Sæter [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 23, 2002 5:15 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Re: $PHP_SELF
> >
> >
> > I just installed PHP 4.1.1 and $PHP_SELF worked!
> >
> >
> > "Aasmund SæTer" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I have been trying to get $PHP_SELF to display the filename, but I
> > > only
> > get
> > > "Warning: Undefined variable: PHP_SELF ". Isn't this a
> > supposed to a
> > > predefined variable?
> > >
> > > I got Windows XP, Apache 1.3.12 and PHP 4.1.0. I use PHP
> as a Apache
> > module.
> > > Shouldn't it work then? I read on www.php.net that PHP_SELF
> > wouldn't
> > > work
> > if
> > > PHP is running as a command-line processor (CGI verion of PHP?).
> > >
> > > Please help me, I have been looking everywhere for an
> answer. I got
> > scripts
> > > (not made by me) which uses this variable.
> > >
> > >
> >
> >
> >
> > --
> > 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]
>
--- End Message ---
--- Begin Message ---
Hi
I'm trying to make PHP send email from a windows server, or rather, I'm
trying to help my girlfriend do it.
in php.ini the SMTP variable is set to her mail server (which does relay
for her netblock).
Also, the sendmail_from line is also set.
She is mainly trying to use ACID to mail intrusion detection reports out.
However, the test script I wrote for her that calls mail() also refuses to
send mail.
The error messages are not very helpful in diagnosing the problem.
Incidently, she is running PHP 4.0.6 with Apache 1.3.20. All other php
functions appear to work.
Any ideas?
Thanks,
Mike
--- End Message ---
--- Begin Message ---
> Hi
>
> I'm trying to make PHP send email from a windows server, or
> rather, I'm trying to help my girlfriend do it.
>
> in php.ini the SMTP variable is set to her mail server (which
> does relay for her netblock).
>
> Also, the sendmail_from line is also set.
>
> She is mainly trying to use ACID to mail intrusion detection
> reports out. However, the test script I wrote for her that
> calls mail() also refuses to send mail.
>
> The error messages are not very helpful in diagnosing the
> problem. Incidently, she is running PHP 4.0.6 with Apache
> 1.3.20. All other php functions appear to work.
>
> Any ideas?
> Thanks,
> Mike
Have you uncommented
extension = php_imap.dll
in your php.ini ?
Can you supply the error messages from php?
/Martin
>
>
> --
> 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]
>
--- End Message ---
--- Begin Message ---
I'd just install a copy of the Hermes mail server. It's pretty simple to
configure and you just set the PHP entries to localhost.
"Mike Garfias" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi
>
> I'm trying to make PHP send email from a windows server, or rather, I'm
> trying to help my girlfriend do it.
>
> in php.ini the SMTP variable is set to her mail server (which does relay
> for her netblock).
>
> Also, the sendmail_from line is also set.
>
> She is mainly trying to use ACID to mail intrusion detection reports out.
> However, the test script I wrote for her that calls mail() also refuses to
> send mail.
>
> The error messages are not very helpful in diagnosing the problem.
> Incidently, she is running PHP 4.0.6 with Apache 1.3.20. All other php
> functions appear to work.
>
> Any ideas?
> Thanks,
> Mike
>
--- End Message ---
--- Begin Message ---
Hi Mike,
> I'm trying to make PHP send email from a windows server, or rather, I'm
> trying to help my girlfriend do it.
=well seeing there's a lady involved...
> in php.ini the SMTP variable is set to her mail server (which does relay
> for her netblock).
> Also, the sendmail_from line is also set.
=those are the two main settings to worry about - can I assume that you have checked
that the PHP.INI file is
being read?
=please run the phpinfo() test and check the SMTP registration.
=If you haven't already, please PING the SMTP server.
> She is mainly trying to use ACID to mail intrusion detection reports out.
> However, the test script I wrote for her that calls mail() also refuses to
> send mail.
=do you have/can you throw together an ultra-simple email script and see if that will
go through? eg
mail( you@youraddress,
"THis is the subject",
"This is the message",
"From: emailfordummies@youraddress\n");
echo "mail away<BR>";
NB you may not need the \n, but you will need a sensible ToAddress (the first
argument).
> The error messages are not very helpful in diagnosing the problem.
> Incidently, she is running PHP 4.0.6 with Apache 1.3.20. All other php
> functions appear to work.
=nevertheless they might help point/discard ideas.
=also a snippet of code might be relevant.
=Please advise,
=dn
(about the same s/w on WinNTWS 4.0 SP6a, with email working well)
--- End Message ---
--- Begin Message ---
I'm using PHP to do some database interfaces to Paradox databases.
Everything is working great, except that my report is not being
printed. I'm trying to schedule a report to be printed using winat at
midnight every night. Scheduling the report on one machine works fine,
but scheduling it on the server that it will be run from does not work.
I get an error stating "Warning: couldn't connect to the printer [PR009
(ENGINEERING)] in c:\flasher list\f-pickup.php on line 10"
It is correctly picking up PR009 (ENGINEERING) as my printer, because I
didn't even specify it in my code. Sounds to me like some kind of
permissions, but everyone has printing rights. Anyone have any other
ideas to try. Please copy responses to my email listed below in case I
don't get a chance to check back to the list.
==============================
Tom Skillman
Systems Analyst Co-Op
City of St. Louis Water Division
[EMAIL PROTECTED]
(314) 771-4806 ext 184
--- End Message ---
--- Begin Message ---
Excellent, excellent.
I am extremely happy :)
Everything below is completely right and reasonable, Lukas it looks as
though you have the full support of many, many people in your quest... in
any case I look forward to the first pearized versions of metabase.
best,
_alex
> It is definitely not my intention to have several database abstraction
> layers. The most-used classes are best kept unique, and database
> abstraction seems to be the most obvious one of these.
>
> But to respond to Manuel's request: *yes*, I do want to see Metabase and
> PEAR DB merge. But as Lukas says, we have to see that the merger works
> before we can commit to replacing the current stuff.
--- End Message ---
--- Begin Message ---
Can I just add that this is a feature that already exists... it's called
FTP!! :) <tumbleweed>... tum-ti-tum, I'll go now shall I?.. ;)
Ross
-----Original Message-----
From: alain samoun [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2002 17:51
To: brother; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Include()
OK guys, it's not possible... But before I crawl back under my stone, I want
to say that it could be a nice feature, of course with the right security -
like username and password - such include could allow the sharing of code
between people.
A+
Alain
-----Original Message-----
From: brother [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 9:24 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP-WIN] Include()
If you think it over that could be a real security hazard.
If I have a phpdoc that opens sqlconnections at server A and includes that
doc over at server B then I will be able to get stuff from server A right in
front of my eyes, or?
No one ever said that server A was my own.
/bro. (i just hate that it isn't reply to: listadres)
> -----Original Message-----
> From: alain samoun [mailto:[EMAIL PROTECTED]]
> Sent: den 22 januari 2002 03:52
> To: Shrock, Court; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Include()
>
>
> Humm, I do not know if I understand you...
> If you include a file in your server A, it will run in your
> server locally
> as part of your code. Now if the included file is located at
> another server
> B, it should be all the same, the included file will run as
> part of your
> code in server A, isn't it?
> A+
> Alain
--
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]
--- End Message ---
--- Begin Message ---
Ross:
No, it's not what I mean :)
Let say that you have a PHP class that I like on your site, for free or a
bundle of pounds, you give me permission to use this class from my site to
your site (include it on my site) without even giving me your source.
Anyway, I know there are other ways to do that...
A+
Alain
-----Original Message-----
From: Ross Fleming [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 10:08 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Include()
Can I just add that this is a feature that already exists... it's called
FTP!! :) <tumbleweed>... tum-ti-tum, I'll go now shall I?.. ;)
Ross
-----Original Message-----
From: alain samoun [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2002 17:51
To: brother; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Include()
OK guys, it's not possible... But before I crawl back under my stone, I want
to say that it could be a nice feature, of course with the right security -
like username and password - such include could allow the sharing of code
between people.
A+
Alain
-----Original Message-----
From: brother [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 9:24 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP-WIN] Include()
If you think it over that could be a real security hazard.
If I have a phpdoc that opens sqlconnections at server A and includes that
doc over at server B then I will be able to get stuff from server A right in
front of my eyes, or?
No one ever said that server A was my own.
/bro. (i just hate that it isn't reply to: listadres)
> -----Original Message-----
> From: alain samoun [mailto:[EMAIL PROTECTED]]
> Sent: den 22 januari 2002 03:52
> To: Shrock, Court; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Include()
>
>
> Humm, I do not know if I understand you...
> If you include a file in your server A, it will run in your
> server locally
> as part of your code. Now if the included file is located at
> another server
> B, it should be all the same, the included file will run as
> part of your
> code in server A, isn't it?
> A+
> Alain
--
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]
--
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]
--- End Message ---
--- Begin Message ---
hmmmm....web services.....I am curious about an alternative to .Net and Sun
for web services.....anybody?
-----Original Message-----
From: alain samoun [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 11:48 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Include()
Ross:
No, it's not what I mean :)
Let say that you have a PHP class that I like on your site, for free or a
bundle of pounds, you give me permission to use this class from my site to
your site (include it on my site) without even giving me your source.
Anyway, I know there are other ways to do that...
A+
Alain
--- End Message ---
--- Begin Message ---
Since this is a Windows specific question I thought I would send it to the
php-windows mail list as well.
Mike Ellis
-----Original Message-----
From: Ellis Michael A KPWA [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 11:06 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP-INST] Adding GD extensions
I am migrating from the Mac world and so my knowledge of the Windows
environment is minimal. I have two systems. A desktop running Windows 2000
v5 SP2 with IIS 4 and a laptop running Windows XP and Apache 1.3
I have php running on both as a CGI. When I try to add any extension to php
via the php.ini file I get this "Unable to load dynamic library
'C:\PHP\php_<extension_name>.dll' - The specified procedure could not be
found."
I have the php.exe and the .dll's in the C:\PHP directory. Is the reference
to the specified procedure a reference to the .dll or is it a procedure
being called by the .dll when trying to load?
I am ultimately trying to add the image functions to php using the
php_gd.dll
I read on the GD site that I would also have to have the jpeg-6b, zlib and
Freetype extensions. Is there an exe for php with these already loaded? If
not, where do I find a step by step procedure to build the required
configuration. The step by step instructions will probably have to include
explanations since my knowledge is minimal.
Thanks
Mike Ellis
--
PHP Install 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]
--- End Message ---
--- Begin Message ---
I am having trouble getting php to be able to write to text files using
fopen under windows. does anyone know how to get php for windows to do this?
I'm using:
$fp2 = fopen($filezz, "w+"); flock($fp2, 1);
fputs($fp2, "my text");
fclose($fp2);
THanks,
Robert
--- End Message ---
--- Begin Message ---
Hi Robert,
I'm still a beginner concerning PGP, so I can't tell you where
the error is, but I've been successful using the following code:
<?php
$FILE_NAME = 'NewFile.txt';
// open the file for write-access and truncate it to zero.
$file = fopen($FILE_NAME, "w+");
// write something into the file
$filestring = 'HelloWorld';
fwrite($file, $filestring);
// close the file
fclose($file);
?>
HTH,
Philipp Traeder [[EMAIL PROTECTED]]
> -----Original Message-----
> From: Robert Abbate [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 23, 2002 11:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] fopen
>
>
> I am having trouble getting php to be able to write to text
> files using
> fopen under windows. does anyone know how to get php for
> windows to do this?
--- End Message ---
--- Begin Message ---
A client is having trouble setting up SMTP services on their Windows NT
machine so PHP can access it through the mail() function.
SMTP is set to mail.theserver.com in the php.ini.
Mail() works when set to a different mail server.
PHP and the mail services are on the same machine.
The SMTP server is open on port 25 and resolves locally.
A MX record has been defined.
Any suggestions on what else needs to be done?
Thanks,
Charlie
--- End Message ---
--- Begin Message ---
Hi
We have problems with users using on our NT 4
server PHP with the
pconnect string instead of only connect
All connects then keep to be open in sleep modus.
Then if there are too many the whole MySQL-server
stops working. How can we setup PHP so users
cannot use anymore the pconnect string? How do
others to work around this problem?
Thanks for tips and help,
Fritz Keller
*** Offizieller VisualRoute Server der Schweiz ***
*** Official VisualRoute Server of Switzerland ***
*** http://www.visualroute.ch ***
*** Trace the net and follow the internet routes ***
--- End Message ---
--- Begin Message ---
Make sure you session_write_close() before you redirect so the session data
has a chance to be written.
Charlie
"St Ooi" <[EMAIL PROTECTED]> wrote in message
005001c1a302$9d1f97c0$0100000a@mis">news:005001c1a302$9d1f97c0$0100000a@mis...
I have a problem with session and redirection. I have setup 2 testing file.
index.php will start the session, set the
session variable and redirect it to index-full.php.
However, in index-full.php, I cannot see the output that I expected. it
should be "trial is Ooi Soo Tuck". The output
is "trial is" which mean that the session variable is not registered or
expired.
If I remove the header function and replace it with a link to
index-full.php, I get the output that I expected.
Why header function will cause session not working?
(index.php)
<?
session_start();
$trial="Ooi Soo Tuck";
session_register("trial");
header("Location: index-full.php");
exit;
?>
(index-full.php)
<?
session_start();
print ("trial is ".$trial);
?>
any help would be appreciated.
Thanks
ST Ooi
Malaysia
--- End Message ---
--- Begin Message ---
I wrote a PHP class to check whether it is a WAP or Web browser depending on
the HTTP_ACCEPT.
You can view here:
http://www.tizac.com/php/DeviceType.txt
Hope this helps.
Charlie
"Laserjetter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks, that would probably work.
> What I wanted to do was distinguish between a web browser and a WAP
browser
> so that
>
> if (isWAP) {
> echo "WAP content";
> } else {
> echo "HTML content";
> }
>
> I'll try those things anyway - The WAP site is working anyway and I've set
> up a redirect from my main site using header ("Location:
> http://wapsite.com");
>
> LJ
>
>
> "Ross Fleming" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I'd personally do it in PHP. But there aren't standard wap browsers
> > unfortunately (ie in real PC's, you'd only really ever see IE, Netscape,
> > Mozilla etc). I don't know of a fully comprehensive list of browser
> > identities, but these should get you started: from
> > http://allnetdevices.com/faq
> >
> > <?
> > $browser=substr(trim($HTTP_USER_AGENT),0,4);
> > if($browser=="Noki") // Nokia phones and emulators
> > if($browser=="Eric") // Ericsson WAP phones and emulators
> > if($browser=="WapI") // Ericsson WapIDE 2.0
> > if($browser=="MC21") // Ericsson MC218
> > if($browser=="AUR ") // Ericsson R320
> > if($browser=="R380") // Ericsson R380
> > if($browser=="UP.B") // UP.Browser
> > if($browser=="WinW") // WinWAP browser
> > if($browser=="UPG1") // UP.SDK 4.0
> > if($browser=="upsi") // another kind of UP browser
> > if($browser=="QWAP") // unknown QWAPPER browser
> > if($browser=="Jigs") // unknown JigSaw browser
> > if($browser=="Java") // unknown Java based browser
> > if($browser=="Alca") // unknown Alcatel-BE3 browser (UP based?)
> > if($browser=="MITS") // unknown Mitsubishi browser
> > if($browser=="MOT-") // unknown browser (UP based?)
> > if($browser=="My S") // unknown Ericsson devkit browser ?
> > if($browser=="WAPJ") // Virtual WAPJAG www.wapjag.de
> > if($browser=="fetc") // fetchpage.cgi Perl script from
> > www.wapcab.de
> > if($browser=="ALAV") // yet another unknown UP based browser ?
> > if($browser=="Wapa") // another unknown browser (Web based
> > "Wapalyzer"?)
> > ?>
> > This is only a selection of browsers though, and the browser type
> > wouldn't help u I don't think. For example, I take it you are asking
> > with means to identify the screen size etc? Nokias use the same browser
> > I believe but have different screen sizes for different models. In the
> > same respect, you can't find out a PC users screen size through PHP,
> > javascript, or anything else you please.
> >
> > Javascript doesn't work on WAP phones. Forget that. You're thinking of
> > WMLscript, not too sure about that side of things.
> >
> > There should be enough there to get u going, either way, it ain't PHP
> > anymore so you'll probably find better help on wap/wml forums instead.
> >
> > Good luck
> >
> > R
> >
> > LaserJetter wrote:
> > >
> > > 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.)
> > > >
>
>
--- End Message ---
--- Begin Message ---
I'm not sure if this is really a php question or not?
I've got an application (win32, apache, php, mysql) where users download
data from a data recorder, using kermit (x/y/z modem), onto a server
(preferrably not going from the data recorder to a file on the hard disk,
then from the file to the upload form then into the database).
I would really like to be able to go directly from the data recorder (has to
go through comm port at least for now) through a php script into the
database using my php functions). Is it possible to get access to the comm
port using php? Or am I stuck with all the intermediate steps which would
be.
1) start the tx from the data recorder.
2) start exec() from php script from form button
3) when exec() is finished, then read the downloaded file into the mysql
database...
this has to be done on the server machine. is it possibleto do this from a
client (browser)?
Jeff.
--
Jeff D. Hamann
Hamann, Donald & Associates, Inc.
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
[EMAIL PROTECTED]
www.hamanndonald.com
--- End Message ---
--- Begin Message ---
Hi all. Here is my first attempt to make easy Step by Step installation
manual for PHP4.1.x on Windows 2000 based systems running IIS5 using CGI or
ISAPI. Here is the link that will ake a lot of people happy. :)
http://www.experttek.com/php/installation.txt
Fell free to contact me. Contacts are in the manual.
--- End Message ---