PHP Classes

File: example.txt

Recommend this page to a friend!
  Classes of Gavin Gordon Markowski  >  IndexFile  >  example.txt  >  Download  
File: example.txt
Role: Example script
Content type: text/markdown
Description: An example of how to use the IndexFile class.
Class: IndexFile
Initialize a directory with a template index file
Author: By
Last change: Refined code
Date: 6 years ago
Size: 282 bytes
 

Contents

Class file image Download

<?php

   // include the class file

    include( strtolower( 'IndexFile.class.php' ) );

   // a directory to place the new file inside

   $workspace = realpath( './workspace' );

   // static call to create new file

   IndexFile::create( $workspace );