constructor

From: Date: Tue, 16 May 2000 19:20:41 +0000
Subject: constructor
Groups: php.version4 
Request: Send a blank email to php-version4+get-15094@lists.php.net to get a copy of this message
Hi, I am new on this list so I am pleased to meet everybody :) I've just installed php4 and have two questions: 1. Does anyone tried to compile php4 on Cobalt Cube 2 (kernel 2.0.34) ? Can I find rpms for this platform somewhere ? 2. Suppose we got: class Cuser { var $id; var $status; var $perms; function Cuser($userid) { //get userdata from external database and initialize object with it }; } $myuser = Cuser($myid); And I want $myuser points to created object if connection to database was succesfull or 'false' (object will not be created) if it was not. Is it possibile with PHP? Thanks for any help. -- Łukasz Michalski mailto:zork@clan.pl

« previous php.version4 (#15094) next »