[Solved] creating xml file and pass it to flash? |
[eluser]Zeeshan Rasool[/eluser]
Hi friends, I need a little help, i want to create an xml file which i have to pass to a flash but i did'nt know how to create xml ? Currently im getting data in controller and trying to write file that is in main root folder Code: function xml() I have created a blank File on main root folder but error is "can't open file" Did you know any other solution I just need a xml file printed my data Thanks in advance
[eluser]sudesh[/eluser]
Did u check the file is created. I m not an expert on xml, so i don't now whether it is correct. to open file like this http://localhost/mysite/flash_param_file.xml using url u need allow_url_fopen = On in php.ini, and this is not considered safe rather change the path to /home/something/somthing/mysite/flash_param_file.xml or use getcwd()."/".flash_param_file.xml this should work fine.
[eluser]Zeeshan Rasool[/eluser]
its ok now, I was doing it with PHP func like write(). But now im using file_write() of CI function. And its working well now. |
Welcome Guest, Not a member yet? Register Sign In |