Re: [PHP] Variables not initialized. Is it possible to...

2009-05-18 Thread Cesco
Thank you Il giorno 18/mag/09, alle ore 18:15, Bruno Fajardo ha scritto: This kind of tip is raised in form of notices. So, to enable that, use the following function on top of your scripts: error_reporting(E_ALL | E_NOTICE); Best regards, Bruno. -- PHP General Mailing List (http://www.

[PHP] Variables not initialized. Is it possible to...

2009-05-18 Thread Cesco
t): File "/Users/Cesco/Desktop/prova.py", line 3, in print(DonaldDuck); NameError: name 'DonaldDuck' is not defined Until now I've seen that when I write this PHP equivalent: echo($DonaldDuck); When I try to run it, the PHP writes a blank string, because the vari

[PHP] Something I don't understand about PHP classes

2009-05-09 Thread Cesco
Ok, I suppose that this should be a very simple problem and probably the answer is obvious, but I really can't understand how the classes and the rest of the stuff works in PHP... Let's suppose that we have this piece of code: I have put an infinite loop in the class constructor just to

[PHP] SimpleXML Class

2009-05-06 Thread Cesco
Could you help me clarify one thing that I don't understand... let's put it simple, just imagine that I have a tiny XML document with a list of movies: Gone with the wind I want to read this XML file and write the name of the first (and only) movie in th