02-12-2012, 07:04 PM
(This post was last modified: 02-12-2012, 08:12 PM by atarifreak.)
(02-05-2012, 02:23 AM)steinm Wrote:realy simple thing:(02-05-2012, 01:14 AM)atarifreak Wrote: hello, thank you for this gread script-thing :-)
but i have big problems...
allways got file is not readable. i dont know what to set to read that file.
it is simple a txt-file in utils directory and its already set to 777. do whats the problem?
i have tried full path and ./datei.txt bot no luck :-(
i found php-function is_readable but i do not understand what it does. just got that else message above...
and: i got this message on every file-input. also for non existing files!
something wrong with my php? its
Quote:PHP 5.3.6 (cli) (built: Nov 26 2011 15:20:01)on Synology DS111
Copyright © 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright © 1998-2011 Zend Technologies
As I said, the script you may have found in utils is not ready for production and was made some time ago. I have to check myself, but I'm currently too busy with other stuff.
Uwe
in your shell-Script there are DOS CR/LF and ash-Shell on Synology-DS dont like that :-)
remowing that ^M after php -f /usr/share/leotdms/utils/adddoc.php and it worked. no i need so change the owner of that file (it has become root and not www-data)