$sXML = new SimpleXMLElement('<deletepicture />');

        foreach($planspaceImages as $img)
        { 
            $xImg = $sXML->addChild('img');

            $xImg->addChild("id", $img["id"]);

            $xImg->addChild("album_id", $img["album_id"]);
            $xImg->addChild("personal_id", $img["personal_id"]);

            $xImg->addChild("name", $img["name"]);

            $xImg->addChild("description", $img["description"]);

        }
            //$this->picfilepath = sfConfig::get('app_deleteduser_rootdir');
             $sXML->asXML("pic.xml");

i want to this xml data store in dynamic filepath$this->picfilepath = sfConfig::get('app_deleteduser_rootdir')."\".$personId;
the above code generated pic.xml in my project web directory,but i want to dynamic filepath.

plz hel me.

anybody plz help me.

Recommended Answers

All 2 Replies

Member Avatar for diafol
$this->picfilepath = sfConfig::get($somepath);
$sXML->asXML($somefilename);

THis all depends on how your sfConfig class works.

Hai
Thanks for ur reply already i tried this way.
file not stored in filepath inside

plz help me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.