try local path?
try writing to home
echo lenght