Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
upload w/ script
#11
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)
Copyright © 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright © 1998-2011 Zend Technologies
on Synology DS111
Reply
#12
(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)
Copyright © 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright © 1998-2011 Zend Technologies
on Synology DS111

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

Reply
#13
(02-05-2012, 02:23 AM)steinm Wrote:
(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)
Copyright © 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright © 1998-2011 Zend Technologies
on Synology DS111

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
realy simple thing:
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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)