[PHP] Re: Data Access Object (DAO) with PHP

2004-12-11 Thread Shen Kong
Hi, do you mean ADODB? PEAR::DB? or DBX ? Adwin Wijaya : Hi, Is there any mature DAO class for PHP (free) ? thx -- -- ShenKong (shenkong(at)php.net) -- http://www.openphp.cn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Data Access Object (DAO) with PHP

2004-12-11 Thread Shen Kong
Hi, mybe you mean PDO: http://pecl.php.net/package/PDO http://www.zend.com/expert_qa/qas.php?id=93single=1 http://www.zend.com/expert_qa/qas.php?id=98single=1 Adwin Wijaya : Shen Kong wrote: Hi, do you mean ADODB? PEAR::DB? or DBX ? -- more advance than that i think. It is a class

[PHP] Re: Objects and sessions

2004-12-09 Thread Shen Kong
Hi, your code my be this , you must use session_start() first: ?php session_start (); class SessionTestC { protected $value; function __construct ( $val ) { $this-value = $val; } function GetValue () { return $this-value; } } if ( isset ($_SESSION['TestObj'])) {

[PHP] Re: How to post quote/double quote mark?

2004-12-09 Thread Shen Kong
Hi, because your magic_quotes_gpc = on, so, do this: $A = stripslashes($_POST['A']); here is a function I use , maybe useful for you: function returnInfo($info) { if (!get_magic_quotes_gpc()) { if (is_array($info)) { $info = array_map(trim, $info);

[PHP] Re: php 4 to 5

2004-11-28 Thread Shen Kong
Travis Conway wrote: I do not know much about the history of php and do not know why there is active development on both the 4 and 5 major versions, but is there a definite reason for me to migrate from 4 to 5 on my servers? Trav here can help you . http://www.php.net/manual/en/history.php