Re: spreadsheets are opened read only

From: Date: Wed, 24 Sep 2008 13:09:07 +0000
Subject: Re: spreadsheets are opened read only
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-280842@lists.php.net to get a copy of this message
If you are trying to open a file that has a URL instead of a local path, then it will always be opened as read-only, and there is no way to change this. If you are opening it using a local path (samba, nfs, fish, etc) then I would check to see the file permissions. As the file is being written by Apache from a form upload, the file will have Apache permissions. Either exec out to a shell script and change the owner (chown) of the file, or have Apache modify the persions with the built-in PHP command chmod. Ash www.ashleysheridan.co.uk
Well what is bothering me is that the rights are identical to all dirs from the document root to all containing folders and I doubled checked that. Plus the rights are also the same. grrrrrr!! I think I may reconsider to change my career and start training elephants in a zoo or something. -- Thodoris

« previous php.general (#280842) next »