Re: spreadsheets are opened read only

From: Date: Wed, 24 Sep 2008 11:59:32 +0000
Subject: Re: spreadsheets are opened read only
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-280832@lists.php.net to get a copy of this message
On Wed, 2008-09-24 at 14:28 +0300, Thodoris wrote:
Hi guys. I am having a problem with opening xls files from a link generated from php script. Let me analyze this: I have two linux servers with apache (php,mysql etc) that are running the same project. There is a part in this project that reads all the files from a directory and generates the appropriate links to them. These files are usually spreadsheets (xls) and when I open a file using the link on the first machine it opens normally but when I open the file from the second it is opened read only. I have checked the rights and the ownership and they are the exact same from the servers document root to the file itself. Any ideas why is this happening? -- Thodoris
    
Do you have the spreadsheet opened on both machines at the same time? If so, then as far as I know there is no way to prevent it short of versioning software. The first person opening a M$ Office document marks it as read-only for anyone else who later opens it at the same time. As soon as the first person closes it, it gets marked write-allowed. Ash www.ashleysheridan.co.uk
No that is not the case since every server is completely independent from the other. That is why I was comparing the configuration and the rights. In addition to this I said that these are linux servers. The weird is that apache opens the files and sends them and openoffice takes the file and opens it. There is a difference in that procedure between the two that make the office to open the file as read only that I am not aware of. -- Thodoris

« previous php.general (#280832) next »