PHP code example of znframework / package-filesystem
1. Go to this page and download the library: Download znframework/package-filesystem library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
znframework / package-filesystem example snippets
N::run();
File::write('example.txt', 'Example');
echo File::read('example.txt');
Folder::create('Example');
Folder::delete('Example');
use ZN\Request\Post;
if( Post::uploadButton() )
{
Upload::mimes('image/jpeg', 'image/png')->start('uploadFile', 'upload');
output( Upload::error() );
}
echo Form::enctype('multipart')->open('form');
echo Form::file('uploadFile');
echo Form::submit('uploadButton', 'Upload');
echo Form::close();