[PHP] print_r style array content

2001-04-18 Thread Chien-pin Wang
Dear All, I wonder if there is a php function that could return content of an array, in print_r style, as a string. I need to get it and send as debug information. If not, is there a workaround or alternative, other than writing a function? Many thanks. Chien-pin -- PHP General Mailing L

Re: [PHP] oracle last inserted

2001-03-25 Thread Chien-pin Wang
If you use sequence to generate your last_inserted_id, then you can always get that ID by calling SELECT sequence_name.CURRVAL FROM DUAL; within the same session. Chien-pin On Sun, 25 Mar 2001, almir wrote: > is there a way to get last inserted id from oracle as > mys

[PHP] The right way to include class files?

2001-03-19 Thread Chien-pin Wang
Dear all, Attached are three files I used to demonstrate the problem I'm troubled with. Some experiments may be required to see the problem. To put the problem in short, I'd like to ask what the proper way is to include classA and classB in order to make test.php work? In the attached f

[PHP] The right way to include class files?

2001-03-19 Thread Chien-pin Wang
Dear all, Attached are three files I used to demonstrate the problem I'm troubled with. Some experiments may be required to see the problem. To put the problem in short, I'd like to ask what the proper way is to include classA and classB in order to make test.php work? In the attached f

[PHP] Where is my parent?

2001-03-15 Thread Chien-pin Wang
Dear All, Is there a way to re-write a method in parent class and still access the parent class by parent::method()? I have a class (classChild) extended from another class (classParent). In classChild I have re-implemented method foo() as a wrapper function of method foo() in classPare

[PHP] Wierd OCI Problem... [Urgent, and please help]

2001-02-08 Thread Chien-Pin Wang
Dear all, My server is running RedHat6.2/Apache 1.3.14/PHP 4.0.4pl1/Oracle 8.0.5. The way I make connection from PHP to Oracle is through php's Oracle 8 extension OCIPLogon. Since the server was made available to the public, *EVERY ONCE A WHILE* I got error messages logged in apache's

[PHP] what is ::?

2001-02-07 Thread Chien-pin Wang
Dear all, Pardon me if this is explained somewhere in the documentation. I've found the :: notation (double colons) in class definitions of PHP's ~/lib/php directory, such as DB.php. It looks like doing the same thing as -> notation. Can someone help to explain this a little bit or provi

[PHP] Generic cloner?

2001-02-05 Thread Chien-pin Wang
Hi, I'm wondering if there is an easy way to code a generic cloner at top level of object inheritance tree so that all descendents can follow? Or by nature the clone() function needs be implemented at final class def.? Thanks a lot! Chien-pin -- PHP General Mailing List (http://www.php.n

[PHP] HTML source in Apache error log

2001-01-17 Thread Chien-pin Wang
Dear All, Lately I've noticed that my Apache error logs were filled up with HTML sources. Logs grow rapidly and I have to clean it every once a while. Is that caused by any particular PHP error? Normally I should have just one line per error, shouldn't I? Is there a way to trace or turn it off