[PHP] Re: mySQL Results To XML -- my xmltag() functions

2007-10-06 Thread Timothy Murphy
mike wrote: > I made this at one point: > > function array2xml($array, $complete = true) { > $xml = "<$array[NODE] "; > unset($array['NODE']); > ksort($array); > foreach(array_keys($array) as $key) { > $xml .= "$key=\"$array[$key]\" "; > } > if($complete) { >

[PHP] Calendar booking form in PHP/MySQL

2007-07-03 Thread Timothy Murphy
on the calendar. Any pointers or scipts or suggestions gratefully received. -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland -- PHP General Mailing List (http:

[PHP] RE: Address book - LDAP or MySQL?

2007-06-29 Thread Timothy Murphy
some kind. It may be used for other purposes, but they are not really relevant to my enquiry. -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland -- PHP General Mailing Li

[PHP] Address book - LDAP or MySQL?

2007-06-29 Thread Timothy Murphy
t seems the way to go. Is that right ... ? I'd be interested to hear your views. -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland -- PHP General Mailing List (http

[PHP] Booking form, please

2007-06-14 Thread Timothy Murphy
I'm looking for a form to allow people to book an hour on a computer system. Is there a standard PHP program for this? Or can you point me to such a program, please? -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: S

[PHP] Re: Standard Address Book?

2007-04-23 Thread Timothy Murphy
dress book for my own use, using a PHP/XML format, and I just wondered if there was any kind of agreed standard in this area. vCards and Jabber seem to be alternative approaches; but as far as I can see no format has won general approval, which I find rather surprising. -- Ti

[PHP] Standard Address Book?

2007-04-23 Thread Timothy Murphy
Is there any kind of standard for a PHP/SQL/XML addressbook? -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP editor

2007-04-13 Thread Timothy Murphy
Press (WP), and am not particularly enamoured of any of the WP editors I have seen. -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland -- PHP General Mailing Lis

Re: [PHP] PHP editor

2007-04-13 Thread Timothy Murphy
Just showing my ignorance, probably, but what exactly is meant by a "PHP editor"? Does it mean an editor for editing PHP scripts, or an editor written in PHP? -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-ma

[PHP] Re: Simple question on simplexml

2007-04-09 Thread Timothy Murphy
->appendChild($new); } $output = $docA->save("/tmp/catalog.xml"); - > Timothy Murphy wrote: >> I have a catalog in XML format: >> >> >> >> ... >> >> >> ... >> >&g

[PHP] Re: Simple question on simplexml

2007-04-09 Thread Timothy Murphy
t;> >>... >> >> >> Can I add this new entry to the catalog >> using SimpleXML functions, >> or do I have to introduce a DOMDocument? >> >> As may be obvious, I am very new to PHP programming; >> and advice or suggestions gratefully

[PHP] Simple question on simplexml

2007-04-06 Thread Timothy Murphy
have to introduce a DOMDocument? As may be obvious, I am very new to PHP programming; and advice or suggestions gratefully received. -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dub

[PHP] Re: PHP textbook suggestions?

2007-04-05 Thread Timothy Murphy
o substr("abcdef", 1); > > > I will be teaching, so a book that a student can-- before the class-- > work through and understand is good-- doesn't have to be a traditional > textbook! But it shouldn't be a reference manual either. Why do you think these are good

[PHP] Re: Example from www.php.net

2007-04-02 Thread Timothy Murphy
Timothy Murphy wrote: > I was trying Example 2147, which reads: > --- > $string = << > 1 > > XML; > > $xml = simplexml_load_string($string); > foreach($xml->foo[0]->attributes() as

[PHP] Example from www.php.net

2007-04-02 Thread Timothy Murphy
'The above example will output: name="one" game="lonely"' However, in my case it outputs nothing. (I'm running php-5.1.6 under Fedora-6.) Is there an error in the example; or is the error mine? -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest

[PHP] Re: Problem with XSLT importStyleSheet

2007-03-28 Thread Timothy Murphy
xsl rules echo $proc->transformToXML($xml); ?> Now I get [EMAIL PROTECTED] Test]# php ex2526.php Segmentation fault I tried a few other examples, but all those with importStyleSheet() in them caused the same Segmentation fault. -- Timothy Murphy e-mail (&l

[PHP] Problem with XSLT importStyleSheet

2007-03-28 Thread Timothy Murphy
ork for you, so I can see if it is a problem with Fedora PHP, or with PHP itself, (or if I am doing something silly, which is quite probable). -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Tri

[PHP] Re: PHP newbie question on xslt

2007-03-27 Thread Timothy Murphy
proc->transformToXML($xml); ?> - from http://www.php.net/manual/en/function.xsl-xsltprocessor-transform-to-xml.php - [EMAIL PROTECTED] Test]# php ex2526.php // Example 2526. Transforming to a string Segmentation fault -

[PHP] PHP newbie question on xslt

2007-03-26 Thread Timothy Murphy
eating an XSLTProcessor Segmentation fault I'm running the program under Fedora-6 Linux with the latest versions of all programs. Is there something I should have included, to get the program to run? Any advice or suggestions gratefully received. -- Timothy Murphy