RE: [PHP] How to access any function of a any class?

2005-03-17 Thread pf
>> I dont think so, because nothing is declared private in the present >> code. > > But they _might_ be as default in PHP5 ;-) That´s the really annoying > difference between JAVA and C++, one is public by default, the other is > private by default. I don´t know which approach they´ve chosen in PHP

RE: [PHP] How to access any function of a any class?

2005-03-17 Thread pf
> Hi > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 17, 2005 10:04 AM > >> I'm sorry Kim, but it is possible, I've made a web hosting control panel >> using entirely this approach and it is working very well for months now. >> A >> demo: h

RE: [PHP] How to access any function of a any class?

2005-03-17 Thread pf
> > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 16, 2005 2:27 PM > To: php-general@lists.php.net > Subject: [PHP] How to access any function of a any class? > > Hello. > Please consider this: > > class A { > [snip] > > class B { > [snip] >

Re: [PHP] How to access any function of a any class?

2005-03-16 Thread pf
> [EMAIL PROTECTED] wrote: >> Hello. >> Please consider this: >> >> class A { >> >>function A(&$Cont){ > > you obviously didn't RTFM about php5's new features, migration issues > etc. > > why do I say that? well it because you are using a '&' > each time you assign an object. thats not how

[PHP] How to access any function of a any class?

2005-03-16 Thread pf
Hello. Please consider this: class A { function A(&$Cont){ $this->Container= &$Cont; } function A_1(){ $this->Container->objB->B_1("somehing"); } } class B { function B(&$Cont){ $this->Container= &$Cont; } function B_1(){ //anything } } class Co

Re: [PHP] Re: which is best php editor?

2005-01-18 Thread pf
> What's the purpose of your coding? > Applications? Just some sort of dynamic code here n there? or Huge OOP > application with a team of programmers? > > I started with PHPEdit, Moved to Magna and then tried Dreaweaver to > communicate with designers. And then came Zend 2.5 n then Got shocked > w

[PHP] [PHP 4.3.7] $_POST accented characters

2005-01-09 Thread pf
Hello, I've spent all night trying to make a simple form checking function that checks the name text field from a form. For example: if I put Beltrán in the form, the ord($_POST['name_field'][5])=195 and not the spanish á=ord()225 Everything is ok if I use a variable in a test script: $var="Bel

[PHP] 4.3.7 array serialize problem

2004-12-26 Thread pf
Hi! Have PHP 4.3.7, magic_quotes_gpc = On Have a multidimensional array made from values from a POST form. It addslashes() every field of the form as expected, like (') => (\'), etc. When I searialize the array to put it into a mysql db it seems to fail to describe the string lenght of values with