[PHP-DB] Call two class object failed

2010-05-23 Thread win.a
Hi my friend,i wrote two classed on is user,the other is db .The user have a property which from the db class object . When i writing my application have both class object invoked at the same time ,just like $user_a = new user($para); $db_a = new db() Then the problem occurs only one of the clas

[PHP-DB] Fatal error: Class 'Mail' not found in

2010-05-29 Thread win.a
Excuse me to trouble ,in my little application there's a mail function which i revoked the pear package require 'mail.php' when i test the app ,it show me "Fatal error: Class 'Mail' not found ",i checked the mail.php no Class Mail? How can i solve the issue ,or where i can download the Mail.php in

[PHP-DB] ie multi tab label share one cookie?

2010-06-09 Thread win.a
It's known that the IE browser share on session in the same APP How about cookie ,the same ?or use its own? Thanks in advacne! All you best What we are struggling for ? The life or the life ? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP-DB] pear template revoke problem

2010-06-28 Thread win.a
Hello,the phpers.i'm recently learn to use the pear HTML_Template_IT, The following is my test template test.tpl,the source code is : {DATA} And my php revoke source code is : "; } else print "Object initial succeed!"; $tpl->loadTe

[PHP-DB] Re: pear template revoke problem

2010-06-29 Thread win.a
The problem resolved because the following line: $tpl = new HTML_Template_IT("./template"); changed to : $tpl = new HTML_Template_IT("."); the .php works fine. All you best What we are struggling for ? The life or the life ? On Tue, Jun 29, 20

[PHP-DB] how to explain such a regular syntax

2010-08-12 Thread win.a
Its was picked from drupal source code and i don't know how does it works. This is the code : preg_match('/^\[?(?:[a-z0-9-:\]_]+\.?)+$/', $host); After followed the regular syntax ,i try to cut it into pieces to make it simpler to understand , part a1: ^\[? part a2:([a-z0-9-:\]_]+\.?)+$ Then go o