if (file_exists(DOCROOT . 'assets/doc/prijslijst.xls')) { File::update(DOCROOT . 'assets/doc', 'prijslijst.xls', $data); } else { File::create(DOCROOT . 'assets/doc', 'prijslijst.xls', $data); chmod(DOCROOT . 'assets/doc/prijslijst.xls', 0777); }
It looks like you're new here. If you want to get involved, click one of these buttons!