开发者

[ CAKEPHP ]Question in generate Xml file within controller snippet

开发者 https://www.devze.com 2023-03-22 17:04 出处:网络
I need to generate xml file from controller after I find in googleand found solution but I have question in snippet

I need to generate xml file from controller after I find in google and found solution but I have question in snippet

1.how to access file in webroot for example in snippet

$xmlFile = fopen('/webroot/xml/xml.开发者_如何学编程xml', 'a');

thank you for advice


$xmlFile = fopen(WWW_ROOT . 'xml/xml.xml', 'a');

0

精彩评论

暂无评论...
验证码 换一张
取 消