php - fopen() and file_get_contents() are disabled, is there another way to write to a file? -



php - fopen() and file_get_contents() are disabled, is there another way to write to a file? -

i made script overwrites xml file, , works locally, hosting company not allow fopen() or file_get_contents(). there way, maybe curl, create / write file?

as revealed in comments directory beingness written has permissions set 665

in order create file in directory must have execute permissions.

$ mkdir test $ chmod 665 test/ $ touch test/foo touch: cannot touch ‘test/foo’: permission denied $ cd test/ bash: cd: test/: permission denied

modifying permissions 755 should trick.

chmod 755 test/ $ touch test/foo $ cd test/ $ ls foo

if can ssh box , alter permissions self so, else contact back upwards , see if can you.

php

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -