[PHP] empty function and array indices

2005-05-01 Thread Gabriel Birke
Hello! Suppose I have the following code: $a = array('a'=1, 'b'=2); echo empty($a['c'])?'empty':'not empty'; echo $a['c']; Why doesn't the 2nd line output a warning when error_reporting is set to E_ALL? Is empty() some kind of special function where the validity of indices is not checked? If

[PHP] References and array indexes

2004-08-05 Thread Gabriel Birke
interpreter when it gets these instructions? With best regards Gabriel Birke -- KONTOR4_Neue Medien Plathnerstraße 5 30175 Hannover Fax: +49 51184 48 98 99 mailto:[EMAIL PROTECTED] http://www.kontor4.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What do I need in order to do the following with php.

2004-07-01 Thread Gabriel Birke
I want to make sure I'm correct in doing something. What do I need in order to perform the following: - Send an XML message to something at a website, have it load a database with the message, and return an acknowledgement.

Re: [PHP] OOP, Classes, Sharing Code

2004-06-29 Thread Gabriel Birke
regards Gabriel Birke -- KONTOR4_Neue Medien Plathnerstraße 5 30175 Hannover Fax: +49 51184 48 98 99 mailto:[EMAIL PROTECTED] http://www.kontor4.de Am 28.06.2004 um 20:32 schrieb Joel Kitching: I'm kind of new to OOP, so bear with me here... I have a portfolio which contains albums. These albums

[PHP] Parsing entities in XML attributes

2004-06-23 Thread Gabriel Birke
/second line / Now I've got two questions: 1. Which tag is correct XML? 2. What is the cause of this? I'm running the script with PHP 4.1.2 and EXPAT Version 1.95.2 Don't know what our customer has running. With best regards Gabriel Birke -- KONTOR4_Neue Medien Plathnerstraße 5 30175 Hannover Fax: +49

Re: [PHP] Help with creating an XML Document

2004-06-23 Thread Gabriel Birke
I think you only have to change one line of your php code: $text = $doc-create_text_node(00); instead of $text = $doc-create_text_node($el[00]); With best regards Gabriel Birke -- KONTOR4_Neue Medien Plathnerstraße 5 30175 Hannover Fax: +49 51184 48 98 99 mailto:[EMAIL PROTECTED] http