Jump to content

arman2123

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by arman2123

  1. HiSuppose i have an xml file portal.xml like this <?xml version="1.0" encoding="UTF-8" standalone="yes"?><portal><info><name>arman</name><job>boss</job></info><info><name>mamun</name><job>chela</job></info></portal>now i have another xml with the same structure named temp.xml<?xml version="1.0" encoding="UTF-8" standalone="yes"?><portal><info><name>php</name><job>scripting</job></info></portal>If i want to add this info node from temp.xml to portal.xml using simplexmlfunctions what should be the best/easiest method.Right now i read all the data , create all nodes , textnodes and then append them.This is very slow.Can i do anything similar to this ( conceptually similar )<?php $xml = simplexml_load_file ("portal.xml"); $tmp = simplexml_load_file ("temp.xml"); $portal1 = $xml->portal; $portal2 = $tmp->portal; $info = $portal2->info[0]; $portal1->appendChild($info); ?>please help if u can Thanx
  2. arman2123

    slice

    Hi I am making a site which ain't looking cool. So i planned to use some background images. how can i create sliced images for faster loading ?What do you use for this plz tell me.Bye
×
×
  • Create New...