Re: HTTP_USER_AGENT?

From: Date: Fri, 12 Jul 2002 00:43:23 +0000
Subject: Re: HTTP_USER_AGENT?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-107276@lists.php.net to get a copy of this message
In article <20020711034110.14263.qmail@pb1.pair.com>, hesterloli@hotmail.com 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

« previous php.general (#107276) next »