Re: [PHP] include/require not allowed in classes?

2003-11-17 Thread Pavel Jartsev
Boyan Nedkov wrote: Initializing data members ("var"-s) of a class with non-constant values is completely legal operation in PHP, so I don't think this could be a reason for the problem. hmmm... PHP manual says something else... http://www.php.net/manual/en/language.oop.php "In PHP 4, only con

Re: [PHP] include/require not allowed in classes?

2003-11-14 Thread Ryan A
Hey guys, Thanks for replying. This is the solution that actually works. class ads_DB extends DB_Sql { var $Host = ""; var $Database = ""; var $User = ""; var $Password = ""; /* public: constructor */ function ads_DB($query = "") { global $MR_Host,$MR_Database,$MR_User,$MR_

Re: [PHP] include/require not allowed in classes?

2003-11-14 Thread Boyan Nedkov
Ryan, Pavel, Pavel Jartsev wrote: Ryan A wrote: ... > class ads_DB extends DB_Sql { var $Host = $MR_Host; var $Database = $MR_Database; var $User = $MR_User; var $Password = $MR_Password; } > I think, Your problem is here. If i remember correctly, then PHP4 doesn't allow to

Re: [PHP] include/require not allowed in classes?

2003-11-14 Thread Pavel Jartsev
Ryan A wrote: ... > class ads_DB extends DB_Sql { var $Host = $MR_Host; var $Database = $MR_Database; var $User = $MR_User; var $Password = $MR_Password; } > I think, Your problem is here. If i remember correctly, then PHP4 doesn't allow to initialize "var"-s with non-constant val

[PHP] include/require not allowed in classes?

2003-11-13 Thread Ryan A
Hi, I have a database class that is working perfectly by itself, the only problem is it works fine when the login details to the database are in that file...but since i have other apps using that login info I want to have the login info in a seperate file an include it in this class...but when i do