Hi all
This is the code I'm using to edit a file from the remote server
In IE it doesn't work
In Netscape version 7.1 it works , but if you try to edit that file more than once Netscape add a secuence number to the file name
Let say in this example the first time you edit dpstat.htm it is ok, then the second time when you try to save it the file the system shows dpstat-1.htm and so on. You have to close your browser to get the right name.
Any idea?
Why it is not working on IE?
IE is 6.0 sp 1
Netscape is version 7.1
Server is SUSE version 8.1, PHP 4.2.x
Thanks a lot folks....🙂
<?php
$file = "dpstat.htm";
$filepath= "documents";
header("Content-type: application/msword");
header("Content-Disposition: inline, filename=dpstat");
readfile($filepath."/".$file);
?>