Re: modify xml file php script
- From: Wolfgang Forstmeier <wolfgang.forstmeier@xxxxxx>
- Date: Wed, 31 Aug 2005 09:43:46 +0200
Hm ..
this maybe an answer but there could be better solutions that my one :-)
<?php
// ... fetch your id with DOM
$id_array = explode(".", $id);// id[0] == first number of ID // id[1] == second number of ID // count up second one id[1]++;
// connect id that you have back x.x
$id = implode(".",$id[0].$id[1]);
// write id back to XML (using DOM) ...?>
dem0o8 wrote:
actually, im more concern about the logic behind of the script. how do you make the id update in cascading manner. anyway, thanks for the reply
.
- References:
- modify xml file php script
- From: jp . delatorre
- Re: modify xml file php script
- From: Wolfgang Forstmeier
- Re: modify xml file php script
- From: dem0o8
- modify xml file php script
- Prev by Date: Re: Portability of PHP from windows to Linux
- Next by Date: image: truecolor to palette
- Previous by thread: Re: modify xml file php script
- Next by thread: image: truecolor to palette
- Index(es):