Re: ITX.php /IT.php , but DB deprecated in PHP 5 ?
| From: | Ze Zhang | Date: | Fri, 11 Mar 2005 02:57:02 +0000 |
| Subject: | Re: ITX.php /IT.php , but DB deprecated in PHP 5 ? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17956@lists.php.net to get a copy of this message | ||
Thanks Andre,
It seem to be OK after I just unziped the package HTM_templete_IT. But now I am having truble with
the DB package (using DB-1.7.4). I got several error message about DB.php or DB/mysql.php
"is_a", "var", are deprecated (in this versoin of PHP as I believe). And also I
got
UNHANDLED ERROR on line 960 in C:\PHP\PEAR\DB\common.php.
[PHP Error 20050310215318]Error: "Assigning the return value of new by reference is
deprecated" (error #2048).
[PHP Error 20050310215318]Backtrace:also anyone has an example of using DB to connect an mysql
database. Thank for the help.Ze Zhang----- Original Message -----
From: "Andre Gemünd" <listen@scroogie.de>
To: "Ze Zhang" <zzhang@coker.edu>
Sent: Thursday, March 10, 2005 5:55 PM
Subject: Re: [PEAR] ITX.php /IT.php
> Ze Zhang wrote:
>
> >I am new to php. I am trying to port a working PHP/MySQL database and the site to my own
> >Window XP and
> >Linux MySQL. Everything else seemed working fine except that I don't have the ITX.php
> >file in my
> >c:\php\pear\HTML directory. In fact I don't even have the HTML directory. How can I
> >get ITX.php file (or if
> >it is just a matter of find a copy of this file ?) Please help. Thank in advance.
> >
> >
> You have to install the packages, mostly they consist of more than just
> one file, but in this single case it may work if you just put the file
> in the html dir. The IT[x] package is no longer maintained, but you can
> use HTML_Template_Sigma, which is compatible. There are several ways how
> to install a Package, either using the PEAR_WebFrontend (recommended for
> shared environments like rented webspace), where you can install it on a
> nice and clean interface, the command line installer (recommended for
> console/ssh access) where you can install it with a single command (pear
> install html_template_itx), or manual installation (not recommended).
> please read
>
> http://pear.php.net/manual/en/installation.php
>
> for further information.
>
> hth
> ag
>