RE: [PHP] class from php3 does not work in php4???

From: Date: Wed, 30 Aug 2000 10:28:58 +0000
Subject: RE: [PHP] class from php3 does not work in php4???
Groups: php.general 
Request: Send a blank email to php-general+get-14367@lists.php.net to get a copy of this message
I'm not sure why is that but my feeling says that the line var $port = 1111; should be var $port = "1111"; Try this... -----Original Message----- From: Steven Glogger [mailto:list@glogger.ch] Sent: Wednesday, August 30, 2000 6:37 PM To: php-general@lists.php.net Subject: [PHP] class from php3 does not work in php4??? i have a class in php3 which works really good. but if i copy this class to a php4 server, i get always an 'parse error' pointing to the lines starting with 'var'. does var is inexistent in php4? or how is it now declarable? class cyrus_email_admin { var $host = "10.0.0.1"; var $port = 1111; var $user = ""; var $admin_user = "admin"; var $admin_pass = "12345"; var $socket = 0; var $error_msg = ""; var $error = 0; .... .... } greetings steven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#14367) next »