Date: 09/28/00
- Next message: messju mohr: "Re: [phplib] Parse error"
- Previous message: Peter Bowyer: "[phplib] Parse error"
- In reply to: Peter Bowyer: "[phplib] Parse error"
- Next in thread: messju mohr: "Re: [phplib] Parse error"
- Reply: messju mohr: "Re: [phplib] Parse error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I had this error too....
The rigth way in php4.0 is....
class test {
var $var;
test() {
global $var
this->host = $var;
}
}
you may not declare variables directly anymore, sorry for that...
Maurice
NOXX.COM
----- Original Message -----
From: "Peter Bowyer" <reywob <email protected>>
To: <phplib <email protected>>
Sent: Thursday, September 28, 2000 8:45 PM
Subject: [phplib] Parse error
> Hi,
>
> Can anyone tell me why this is generating a parse error on the line
> marked >>>>>> (and I guess on the following lines as well)?
>
> include ("./db_pgsql.inc");
> include ("./postcard_setup.php");
> include("./class.FastTemplate.php");
>
> class DB_SendCard extends DB_Sql {
> >>>>>> var $Host = $dbhost;
> var $Database = $dbname;
> var $User = $dbuser;
> var $Password = $dbpassword;
> }
> $db = new DB_SendCard ;
>
> The postcard_setup.php file contains the following:
>
> // Enter your database details:
> // Database name:
> $dbname="abcdefg";
> // Username:
> $dbuser="username";
> // Database host:
> $dbhost="db.yoursite.f2s.com";
> // Database password:
> $dbpassword="********";
>
> What's wrong? It works fine on a server running PHP version 3.0.16 and
> PostgreSQL, but not on a server running PHP 4.02 and MySQL.
>
> TIA,
> Peter.
> --oOo--
> Narrow Gauge on the web - photos, directory and forums!
> http://www.narrowgauge.f2s.com
> --oOo--
> Peter's web page - Scottish narrow gauge in 009
> http://members.aol.com/reywob/
> --oOo--
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: messju mohr: "Re: [phplib] Parse error"
- Previous message: Peter Bowyer: "[phplib] Parse error"
- In reply to: Peter Bowyer: "[phplib] Parse error"
- Next in thread: messju mohr: "Re: [phplib] Parse error"
- Reply: messju mohr: "Re: [phplib] Parse error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

