How to get php to save xml doc without prompt

Hello All
I have working script below, I am using on a local machine with php 5 installed.  It work just how I want EXCEPT that it prompts on the save.... I would like it to just save without any prompt window...
Perhaps its the "header" code I am using to save... is there some other way for php to save that just does it without prompt?  Thanks
Any ideas appreciated.
header('Content-type: text/xml'); 
header('Content-Disposition: attachment; filename="'. 'directoryList' .'.xml"');?>

// open this directory 
$myDirectory = opendir("file:///C:/evolve/");

// get each entry
while($entryName = readdir($myDirectory)) {
    $dirArray[] = $entryName;

// close directory

//    count elements in array
$indexCount    = count($dirArray);

// sort 'em

// print 'em
// loop through the array of files and print them all
echo "<dirList>" ;
for($index=0; $index < $indexCount; $index++) {
        if (substr("$dirArray[$index]", 0, 1) != "."){ // don't list hidden files
        print("<site>" . "$dirArray[$index]" . "</site>");
//        print("<td>");
//		  print(filetype($dirArray[$index]));
//        print("</td>");
//        print("<td>");
//        print(filesize($dirArray[$index]));
//        print("</td>");
//        print("</TR>\n");
echo "</dirList>" 

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michel PlungjanIT ExpertCommented:

Imagine you did

Content-type: application/someHackingExecutable


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bowerdesignAuthor Commented:
Yeah crud
Thats what I was afraid of.  Dont suppose you would have any other ideas on how to list contents of a directory...?  My plan was to create this xml doc and use to list in menu (flash).
????  If not no problem.
Michel PlungjanIT ExpertCommented:
Flash can read xml from the same source as the flash itself. So what exactly are you aiming to do?
bowerdesignAuthor Commented:
I have a directory with multiple xml docs in it.
I want to create a page or menu that would display all the xml docs in that directory.
So I created the php script to read the directory and create an xml doc that has all the names of the files in the directory (folder).
Then flash would be looking for that xml doc with all the files listed and present them on page.  But currently it will run the script, then the windows save dialog box will pop up, then the user will have to say yes, and then it will display.

Dont think flash can do it... but would be ideal if there was a way in actionscript to have it list all of the files in a local directory.
Michel PlungjanIT ExpertCommented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.