RE: [PHP] $HTTP_USER_AGENT

2003-01-30 Thread Ford, Mike [LSS]
 -Original Message-
 From: Jan Mikes [mailto:[EMAIL PROTECTED]]
 Sent: 30 January 2003 15:23
 
 do anyone know where I can get a full list of 
 $HTTP_USER_AGENT strings ??

Try http://www.psychedelix.com/agents.html -- it's about as comprehensive as
they come!

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 


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





Re: [PHP] $HTTP_USER_AGENT

2003-01-30 Thread Jan Mikes
exactly what I needed

thank you
mtg

- Original Message -
From: Ford, Mike [LSS] [EMAIL PROTECTED]
To: 'Jan Mikes' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 4:46 PM
Subject: RE: [PHP] $HTTP_USER_AGENT


  -Original Message-
  From: Jan Mikes [mailto:[EMAIL PROTECTED]]
  Sent: 30 January 2003 15:23
 
  do anyone know where I can get a full list of
  $HTTP_USER_AGENT strings ??

 Try http://www.psychedelix.com/agents.html -- it's about as comprehensive
as
 they come!

 Cheers!

 Mike

 -
 Mike Ford,  Electronic Information Services Adviser,
 Learning Support Services, Learning  Information Services,
 JG125, James Graham Building, Leeds Metropolitan University,
 Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
 Email: [EMAIL PROTECTED]
 Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211


 --
 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] $HTTP_USER_AGENT

2003-01-30 Thread Chris Shiflett
--- Jan Mikes [EMAIL PROTECTED] wrote:
 do anyone know where I can get a full list of
 $HTTP_USER_AGENT strings ??

There is no such thing.

Chris

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




Re: [PHP] HTTP_USER_AGENT - list of possibilities

2002-10-08 Thread Sascha Cunz

Hi,

 Hey everyone... do you know where I can find a list of the common returns
 of the $_SERVER[HTTP_USER_AGENT] variable?

 For example:
 I.E. 5.0 = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR
 1.0.3705)
 Netscape 4.08 = Mozilla/4.08 [en] (WinNT; U ;Nav)

On one side - i've never seen such a list. (I'd suggest to record them by 
yourself) - on the other side: wouldn't it be a bit better to have regular 
expressions (or at least some rules), that map the Useragent text into the 
individual data it contents:
  1. Browser Manufacturer
  2. Browser Version
  3. Browser Language
  4. OS
  5. Buildtime
  6. other propritary information some companies supply in Useragent text.
  ...

Consider: 
  The last value of your first example can be anything. .NET CLR indicates 
that the version of Microsoft's Common Language Runtime will follow. 
Meanwhile i had about 20 of them installed on my windows machine. Even, if I 
never changed the browser, on ever CLR Update Mircosoft's UserAgent-String 
had changed.
 
Sascha
  

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




Re: [PHP] HTTP_USER_AGENT - list of possibilities

2002-10-08 Thread @ Edwin

I'm not aware of any but I'm sure you'll find this interesting: (if you
haven't been there yet, at least)

  http://sourceforge.net/projects/phpsniff/

- E

On Wednesday, October 09, 2002 9:20 AM
Support @ Fourthrealm.com wrote:

 Hey everyone... do you know where I can find a list of the common returns
 of the $_SERVER[HTTP_USER_AGENT] variable?

 For example:
 I.E. 5.0 = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR
 1.0.3705)
 Netscape 4.08 = Mozilla/4.08 [en] (WinNT; U ;Nav)


 Thanks,
 Peter


 - - - - - - - - - - - - - - - - - - - - -
 Fourth Realm Solutions
 [EMAIL PROTECTED]
 http://www.fourthrealm.com
 Tel: 519-739-1652
 - - - - - - - - - - - - - - - - - - - - -


 --
 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] HTTP_USER_AGENT?

2002-07-14 Thread Richard Lynch

In article [EMAIL PROTECTED], 
[EMAIL PROTECTED] says...

 For example in a book discussing PHP 3 it says:
 
 ?
 phpinfo();
 ?
 
 This works just fine.  In a book that discusses PHP 4 it says:
 
 ?
 php_info()
 ?
 
 This gives Fatal error: Call to undefined function: php_info() in
 c:\inetpub\wwwroot\php\phpinfo.php on line 2.
 
 So it's not just backwards compatibility it is careless planning.  This is not
 good.  I will have to search hi and lo to determine if a failure is due to
 incorrect syntax because of version and not just careless typing on my part.

As far as I know, php_info() has never been a documented function.  The
manual has always re-directed requests for php_info to phpinfo.  Try it
yourself:

http://php.net/php_info

This is not a new behaviour nor a change in the language -- It's people
using an undocumented alias that they shouldn't.

I do not understand why people insist on using undocumented features, much
less putting them into text books.

Don't do that.

PHP actually has a pretty good history as far as backwards compatibility
goes.  Not perfect, perhaps, but pretty good.

I suggest you complain to the Author, Technical Editor, or Publisher of the
book.

If that doesn't suit, feel free to write your web-pages in Fortran 77 :-)

-- 
Like Music?  http://l-i-e.com/artists.htm


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




Re: [PHP] HTTP_USER_AGENT?

2002-07-11 Thread David Robley

In article [EMAIL PROTECTED], 
[EMAIL PROTECTED] says...
 Thanks that worked just fine.  But now I am irritated as hell.  Obviously there
 is no backwards compatibility with new releases.  Does this mean if I install a
 new version of PHP then all books published before that date are worthless?
 Seems so.
 
 For example in a book discussing PHP 3 it says:
 
 ?
 phpinfo();
 ?
 
 This works just fine.  In a book that discusses PHP 4 it says:
 
 ?
 php_info()
 ?
 
 This gives Fatal error: Call to undefined function: php_info() in
 c:\inetpub\wwwroot\php\phpinfo.php on line 2.
 
 So it's not just backwards compatibility it is careless planning.  This is not
 good.  I will have to search hi and lo to determine if a failure is due to
 incorrect syntax because of version and not just careless typing on my part.

Have you considered the possibility that, in this case, the book might 
have a misprint? Your definitive source should always be the latest php 
documentation.

 I remember when FORTRAN was being developed we were assurred that all previous
 commands from older versions would continue operative in the new.  FORTRAN 77
 to FORTRAN 90.  I think the developers of PHP ought to consider why the
 developers of FORTRAN thought that might be a good thing to do.  It is still
 used to this day.  Write a FORTRAN 77 prog and it will compile and run on a
 FORTRAN 90 compiler out of the box.  Thanks again.


-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

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




Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Andrew Brampton

the $HTTP_USER_AGENT varible contains nothing...

Try doing a phpinfo(); to see what the correct varible to use is, it is most
likly $_SERVER['HTTP_USER_AGENT']  since the way these varibles are handled
changed a few versions ago

Andrew
George Hester [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have this in my web site not in an executable folder:

 HTML
 HEAD
 TITLEMy First PHP Program/TITLE
 /HEAD
 BODY
 ?php echo Hello World!; ?
 /BODY
 /HTML

 No problem.  I then put this in the same folder:

 HTML
 HEAD
 TITLEMy Second PHP Program/TITLE
 /HEAD
 BODY
 ?php echo $HTTP_USER_AGENT; ?
 /BODY
 /HTML

 Nothing appears.  What's wrong?


 --
 George Hester
 _



 --
 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] HTTP_USER_AGENT?

2002-07-10 Thread Balaji Ankem

It is working fine for me!!!


-Original Message-
From: George Hester [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 8:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] HTTP_USER_AGENT?


I have this in my web site not in an executable folder:

HTML
HEAD
TITLEMy First PHP Program/TITLE
/HEAD
BODY
?php echo Hello World!; ?
/BODY
/HTML

No problem.  I then put this in the same folder:

HTML
HEAD
TITLEMy Second PHP Program/TITLE
/HEAD
BODY
?php echo $HTTP_USER_AGENT; ?
/BODY
/HTML

Nothing appears.  What's wrong?


--
George Hester
_



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



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Justin French

Try:

? echo $_SERVER['HTTP_USER_AGENT']; ?

... you might have a newer version of PHP (4.1+), which uses the global
arrays like:

$_SERVER
$_POST
$_GET
$_SESSION
$_COOKIE

...


Justin French




on 11/07/02 12:32 PM, George Hester ([EMAIL PROTECTED]) wrote:

 I have this in my web site not in an executable folder:
 
 HTML
 HEAD
 TITLEMy First PHP Program/TITLE
 /HEAD
 BODY
 ?php echo Hello World!; ?
 /BODY
 /HTML
 
 No problem.  I then put this in the same folder:
 
 HTML
 HEAD
 TITLEMy Second PHP Program/TITLE
 /HEAD
 BODY
 ?php echo $HTTP_USER_AGENT; ?
 /BODY
 /HTML
 
 Nothing appears.  What's wrong?
 
 
 --
 George Hester
 _
 
 


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




Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread George Hester

I wish I could say the same.  Thanks.

--
George Hester
_
Balaji Ankem [EMAIL PROTECTED] wrote in message
005901c22883$f22d5840$[EMAIL PROTECTED]">news:005901c22883$f22d5840$[EMAIL PROTECTED]...
 It is working fine for me!!!


 -Original Message-
 From: George Hester [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 11, 2002 8:03 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] HTTP_USER_AGENT?


 I have this in my web site not in an executable folder:

 HTML
 HEAD
 TITLEMy First PHP Program/TITLE
 /HEAD
 BODY
 ?php echo Hello World!; ?
 /BODY
 /HTML

 No problem.  I then put this in the same folder:

 HTML
 HEAD
 TITLEMy Second PHP Program/TITLE
 /HEAD
 BODY
 ?php echo $HTTP_USER_AGENT; ?
 /BODY
 /HTML

 Nothing appears.  What's wrong?


 --
 George Hester
 _



 --
 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] HTTP_USER_AGENT?

2002-07-10 Thread Chris Kay


Have you tried $_SERVER[HTTP_USER_AGENT]

---
Chris Kay
Technical Support - Techex Communications 
Website: www.techex.com.au   Email: [EMAIL PROTECTED]
Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 
Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 
Platinum Channel Partner of the Year - Request DSL - Broadband for Business
---

 -Original Message-
 From: George Hester [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, 11 July 2002 1:18 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] HTTP_USER_AGENT?
 
 
 I wish I could say the same.  Thanks.
 
 --
 George Hester
 _
 Balaji Ankem [EMAIL PROTECTED] wrote in message 
005901c22883$f22d5840$[EMAIL PROTECTED]">news:005901c22883$f22d5840$[EMAIL PROTECTED]...
 It is working fine for me!!!


 -Original Message-
 From: George Hester [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 11, 2002 8:03 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] HTTP_USER_AGENT?


 I have this in my web site not in an executable folder:

 HTML
 HEAD
 TITLEMy First PHP Program/TITLE
 /HEAD
 BODY
 ?php echo Hello World!; ?
 /BODY
 /HTML

 No problem.  I then put this in the same folder:

 HTML
 HEAD
 TITLEMy Second PHP Program/TITLE
 /HEAD
 BODY
 ?php echo $HTTP_USER_AGENT; ?
 /BODY
 /HTML

 Nothing appears.  What's wrong?


 --
 George Hester
 _



 --
 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


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




Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Tyler Longren

It works for you because you have register_globals set to on in
php.ini.  If you set it to off it won't work any longer.

-- 
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com



On Thu, 11 Jul 2002 08:07:48 +0530
Balaji Ankem [EMAIL PROTECTED] wrote:

 It is working fine for me!!!
 
 
 -Original Message-
 From: George Hester [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, July 11, 2002 8:03 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] HTTP_USER_AGENT?
 
 
 I have this in my web site not in an executable folder:
 
 HTML
 HEAD
 TITLEMy First PHP Program/TITLE
 /HEAD
 BODY
 ?php echo Hello World!; ?
 /BODY
 /HTML
 
 No problem.  I then put this in the same folder:
 
 HTML
 HEAD
 TITLEMy Second PHP Program/TITLE
 /HEAD
 BODY
 ?php echo $HTTP_USER_AGENT; ?
 /BODY
 /HTML
 
 Nothing appears.  What's wrong?
 
 
 --
 George Hester
 _
 
 
 
 -- 
 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] HTTP_USER_AGENT?

2002-07-10 Thread Balaji Ankem

Yes..That is right!!! :-)

-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 8:53 AM
To: Balaji Ankem
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] HTTP_USER_AGENT?


It works for you because you have register_globals set to on in
php.ini.  If you set it to off it won't work any longer.

-- 
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com



On Thu, 11 Jul 2002 08:07:48 +0530
Balaji Ankem [EMAIL PROTECTED] wrote:

 It is working fine for me!!!
 
 
 -Original Message-
 From: George Hester [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 11, 2002 8:03 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] HTTP_USER_AGENT?
 
 
 I have this in my web site not in an executable folder:
 
 HTML
 HEAD
 TITLEMy First PHP Program/TITLE
 /HEAD
 BODY
 ?php echo Hello World!; ?
 /BODY
 /HTML
 
 No problem.  I then put this in the same folder:
 
 HTML
 HEAD
 TITLEMy Second PHP Program/TITLE
 /HEAD
 BODY
 ?php echo $HTTP_USER_AGENT; ?
 /BODY
 /HTML
 
 Nothing appears.  What's wrong?
 
 
 --
 George Hester
 _
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread George Hester

Thanks that worked just fine.  But now I am irritated as hell.  Obviously there
is no backwards compatibility with new releases.  Does this mean if I install a
new version of PHP then all books published before that date are worthless?
Seems so.

For example in a book discussing PHP 3 it says:

?
phpinfo();
?

This works just fine.  In a book that discusses PHP 4 it says:

?
php_info()
?

This gives Fatal error: Call to undefined function: php_info() in
c:\inetpub\wwwroot\php\phpinfo.php on line 2.

So it's not just backwards compatibility it is careless planning.  This is not
good.  I will have to search hi and lo to determine if a failure is due to
incorrect syntax because of version and not just careless typing on my part.

I remember when FORTRAN was being developed we were assurred that all previous
commands from older versions would continue operative in the new.  FORTRAN 77
to FORTRAN 90.  I think the developers of PHP ought to consider why the
developers of FORTRAN thought that might be a good thing to do.  It is still
used to this day.  Write a FORTRAN 77 prog and it will compile and run on a
FORTRAN 90 compiler out of the box.  Thanks again.

--
George Hester
_
Justin French [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Try:

 ? echo $_SERVER['HTTP_USER_AGENT']; ?

 ... you might have a newer version of PHP (4.1+), which uses the global
 arrays like:

 $_SERVER
 $_POST
 $_GET
 $_SESSION
 $_COOKIE

 ...


 Justin French




 on 11/07/02 12:32 PM, George Hester ([EMAIL PROTECTED]) wrote:

  I have this in my web site not in an executable folder:
 
  HTML
  HEAD
  TITLEMy First PHP Program/TITLE
  /HEAD
  BODY
  ?php echo Hello World!; ?
  /BODY
  /HTML
 
  No problem.  I then put this in the same folder:
 
  HTML
  HEAD
  TITLEMy Second PHP Program/TITLE
  /HEAD
  BODY
  ?php echo $HTTP_USER_AGENT; ?
  /BODY
  /HTML
 
  Nothing appears.  What's wrong?
 
 
  --
  George Hester
  _
 
 




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




RE: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Martin Towell

I use ? phpinfo(); ? in both php3 and php4 and it works fine.

All the commands that I have used are all forward compatible. I even have
some php2 code that still works in php4!

Martin

-Original Message-
From: George Hester [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 1:41 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] HTTP_USER_AGENT?


Thanks that worked just fine.  But now I am irritated as hell.  Obviously
there
is no backwards compatibility with new releases.  Does this mean if I
install a
new version of PHP then all books published before that date are worthless?
Seems so.

For example in a book discussing PHP 3 it says:

?
phpinfo();
?

This works just fine.  In a book that discusses PHP 4 it says:

?
php_info()
?

This gives Fatal error: Call to undefined function: php_info() in
c:\inetpub\wwwroot\php\phpinfo.php on line 2.

So it's not just backwards compatibility it is careless planning.  This is
not
good.  I will have to search hi and lo to determine if a failure is due to
incorrect syntax because of version and not just careless typing on my part.

I remember when FORTRAN was being developed we were assurred that all
previous
commands from older versions would continue operative in the new.  FORTRAN
77
to FORTRAN 90.  I think the developers of PHP ought to consider why the
developers of FORTRAN thought that might be a good thing to do.  It is still
used to this day.  Write a FORTRAN 77 prog and it will compile and run on a
FORTRAN 90 compiler out of the box.  Thanks again.

--
George Hester
_
Justin French [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Try:

 ? echo $_SERVER['HTTP_USER_AGENT']; ?

 ... you might have a newer version of PHP (4.1+), which uses the global
 arrays like:

 $_SERVER
 $_POST
 $_GET
 $_SESSION
 $_COOKIE

 ...


 Justin French




 on 11/07/02 12:32 PM, George Hester ([EMAIL PROTECTED]) wrote:

  I have this in my web site not in an executable folder:
 
  HTML
  HEAD
  TITLEMy First PHP Program/TITLE
  /HEAD
  BODY
  ?php echo Hello World!; ?
  /BODY
  /HTML
 
  No problem.  I then put this in the same folder:
 
  HTML
  HEAD
  TITLEMy Second PHP Program/TITLE
  /HEAD
  BODY
  ?php echo $HTTP_USER_AGENT; ?
  /BODY
  /HTML
 
  Nothing appears.  What's wrong?
 
 
  --
  George Hester
  _
 
 




-- 
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] HTTP_USER_AGENT?

2002-07-10 Thread Philip Olson


PHP tries very hard to remain BC, in fact, some 
will say too hard :)  The register_globals change 
was the biggest change in PHP history, can't 
think of any other change that comes close.  And, 
that only changed the default value for this 
directive, you can turn it on if you wish.

The PHP 4 book that you have has a typo, there 
simply is no php_info().

Regards,
Philip Olson


On Wed, 10 Jul 2002, George Hester wrote:

 Thanks that worked just fine.  But now I am irritated as hell.  Obviously there
 is no backwards compatibility with new releases.  Does this mean if I install a
 new version of PHP then all books published before that date are worthless?
 Seems so.
 
 For example in a book discussing PHP 3 it says:
 
 ?
 phpinfo();
 ?
 
 This works just fine.  In a book that discusses PHP 4 it says:
 
 ?
 php_info()
 ?
 
 This gives Fatal error: Call to undefined function: php_info() in
 c:\inetpub\wwwroot\php\phpinfo.php on line 2.
 
 So it's not just backwards compatibility it is careless planning.  This is not
 good.  I will have to search hi and lo to determine if a failure is due to
 incorrect syntax because of version and not just careless typing on my part.
 
 I remember when FORTRAN was being developed we were assurred that all previous
 commands from older versions would continue operative in the new.  FORTRAN 77
 to FORTRAN 90.  I think the developers of PHP ought to consider why the
 developers of FORTRAN thought that might be a good thing to do.  It is still
 used to this day.  Write a FORTRAN 77 prog and it will compile and run on a
 FORTRAN 90 compiler out of the box.  Thanks again.
 
 --
 George Hester
 _
 Justin French [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Try:
 
  ? echo $_SERVER['HTTP_USER_AGENT']; ?
 
  ... you might have a newer version of PHP (4.1+), which uses the global
  arrays like:
 
  $_SERVER
  $_POST
  $_GET
  $_SESSION
  $_COOKIE
 
  ...
 
 
  Justin French
 
 
 
 
  on 11/07/02 12:32 PM, George Hester ([EMAIL PROTECTED]) wrote:
 
   I have this in my web site not in an executable folder:
  
   HTML
   HEAD
   TITLEMy First PHP Program/TITLE
   /HEAD
   BODY
   ?php echo Hello World!; ?
   /BODY
   /HTML
  
   No problem.  I then put this in the same folder:
  
   HTML
   HEAD
   TITLEMy Second PHP Program/TITLE
   /HEAD
   BODY
   ?php echo $HTTP_USER_AGENT; ?
   /BODY
   /HTML
  
   Nothing appears.  What's wrong?
  
  
   --
   George Hester
   _
  
  
 
 
 
 
 -- 
 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] $HTTP_USER_AGENT

2002-06-13 Thread Stuart Dallas

On Thursday, June 13, 2002, 4:36:29 PM, you wrote:
 Why $HTTP_USER_AGENT don't work?? I can't get it's value, but in phpinfo the
 value appears. why this???

Try $_SERVER['HTTP_USER_AGENT']. If that works, read
http://www.php.net/manual/en/language.variables.predefined.php.

-- 
Stuart


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




Re: [PHP] $HTTP_USER_AGENT

2002-06-13 Thread Philip Olson


The php directive register_globals = on is what 
creates $HTTP_USER_AGENT and all vars from various 
places, such as GET, POST, COOKIE, SERVER, etc.

If register_globals = off, $HTTP_USER_AGENT won't 
automagically exist.  See this faqt for related 
information:

  http://www.faqts.com/knowledge_base/view.phtml/aid/31

Regards,
Philip Olson


On Thu, 13 Jun 2002, Webmaster do Aborla.net wrote:

 Hello,
 
 Why $HTTP_USER_AGENT don't work?? I can't get it's value, but in phpinfo the
 value appears. why this???
 
 
 Thanking in advance,
 Nuno Lopes
 
 
 
 -- 
 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] $HTTP_USER_AGENT

2002-04-02 Thread Craig Donnelly

Have a look here:

http://www.evilwalrus.com/viewcode.php?codeEx=313

Craig Donnelly

Eric Coleman [EMAIL PROTECTED] wrote in message
000b01c1d845$55158020$0201a8c0@zaireweb">news:000b01c1d845$55158020$0201a8c0@zaireweb...
 Why not echo $HTTP_USER_AGENT and find out?

 - Original Message -
 From: Sean Kennedy [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, March 30, 2002 11:43 AM
 Subject: [PHP] $HTTP_USER_AGENT


  Hello,
 
  Im making a small php script, but I need to know how to do something.
 
  My problem is: I have a script thats like this:
 
  ?php
  if ($HTTP_USER_AGENT == WHAT GOES HERE FOR IE AND NS?) {
 echo You have Internet Explorer;
  } else {
 echo You have Netscape;
  }
  ?
 
  Do you know what I mean? Thanks,
 
  -Sean
  Kennedy
 
 
  --
  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] $HTTP_USER_AGENT

2002-03-30 Thread eric.coleman

Why not echo $HTTP_USER_AGENT and find out?

- Original Message - 
From: Sean Kennedy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 30, 2002 11:43 AM
Subject: [PHP] $HTTP_USER_AGENT


 Hello,
 
 Im making a small php script, but I need to know how to do something.
 
 My problem is: I have a script thats like this:
 
 ?php
 if ($HTTP_USER_AGENT == WHAT GOES HERE FOR IE AND NS?) {
echo You have Internet Explorer;
 } else {
echo You have Netscape;
 }
 ?
 
 Do you know what I mean? Thanks,
 
 -Sean
 Kennedy
 
 
 -- 
 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] http_user_agent and proxy

2001-02-10 Thread Richard Lynch

 I have this problem:
 I am using a script like this to make php use a remote proxy to get pages
using a remote proxy:

   fputs($data1,"GET $myfiles/ HTTP/1.0\n\n");

 The problem is that i want to set the HTTP_USER_AGENT to something
different than a blank field, but have no idea how to do that.

Wild Guess:

You know how you need *two* newlines after that GET to make it go?
I think you can throw more stuff in there, and *then* the two newlines.
In other words, it's just like headers...

fputs($data1, "GET / HTTP/1.0\n");
fputs($data1, "HTTP_USER_AGENT spiderman\n");
fputs($data1, "\n"); #end of headers

This is purely wild speculation on my part, but it does make sense it would
work this way...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



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