posted mailed
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) {
.
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://www.php.net
.
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://www.php.net/)
To unsubscribe, visit
,
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 List (http://www.php.net/)
To unsubscribe, visit: http
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: School
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
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.
--
Timothy Murphy
e-mail (80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353
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-mail: School of Mathematics
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 List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I 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
= $docA-save(/tmp/catalog.xml);
-
Timothy Murphy wrote:
I have a catalog in XML format:
?xml version=1.0 encoding=iso-8859-1 ?
catalog
book
...
book
book
...
book
...
/catalog
Now I want to add another book,
which I have
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 received.
--
Timothy Murphy
e-mail (80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86
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/bad, as a matter of interest?
--
Timothy Murphy
e-mail (80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School
that '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.maths.tcd.ie
tel: +353-86-2336090, +353
Timothy Murphy wrote:
I was trying Example 2147, which reads:
---
?php
$string = XML
a xmlns:b
foo name=one game=lonely1/foo
/a
XML;
$xml = simplexml_load_string($string);
foreach($xml-foo[0]-attributes() as $a = $b) {
echo $a,'=',$b,\\n
I'd be very grateful if someone could check if these scripts work 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
with importStyleSheet() in them
caused the same Segmentation fault.
--
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
a PHP program like this?
(I tried running strace php ex2526.php
but this didn't enlighten me.)
--
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
,
to get the program to run?
Any 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, Dublin 2, Ireland
--
PHP General Mailing List (http://www.php.net
19 matches
Mail list logo