rlobster Posted August 16, 2007 Share Posted August 16, 2007 Hi, After creating an XML file using the DOM extension, I used the $doc->save("test.xml"); to save the file. Is there any way to prompt the user to specify the filename and where he/she wants to save it? Quote Link to comment https://forums.phpfreaks.com/topic/65168-dom-extension-question/ Share on other sites More sharing options...
trq Posted August 16, 2007 Share Posted August 16, 2007 You could build a form requesting the name of the file prior to creation. and where he/she wants to save it? You are aware you can't directly save a file to the client? Quote Link to comment https://forums.phpfreaks.com/topic/65168-dom-extension-question/#findComment-325395 Share on other sites More sharing options...
rlobster Posted August 16, 2007 Author Share Posted August 16, 2007 This is on a standalone server that contains an oracle db. The xml file is created from information extracted from the db. I want to create a front end for someone using the server to extract whatever data is needed and save to an xml file on the server. Quote Link to comment https://forums.phpfreaks.com/topic/65168-dom-extension-question/#findComment-325396 Share on other sites More sharing options...
trq Posted August 16, 2007 Share Posted August 16, 2007 I want to create a front end I assume you mean a web based front end? Prior to creating the xml document present the user with a form asking them the name of the file and the location on the server to which they want it saved. Be aware that php runs under the Apache process's permissions, so it can't just write a file anywhere. Quote Link to comment https://forums.phpfreaks.com/topic/65168-dom-extension-question/#findComment-325398 Share on other sites More sharing options...
keeB Posted August 16, 2007 Share Posted August 16, 2007 Unless you're using the CLI version, then it assumes whatever user's permissions your running the script as. Quote Link to comment https://forums.phpfreaks.com/topic/65168-dom-extension-question/#findComment-325437 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.