Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Keyword Suggestion Scripts|Articles| Email : sachin {at} jainsachin {dot} com

PHP | The Phar class | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



SEO Tools




    Friends


      The Phar class

      The Phar class

      Introduction

      The Phar class provides a high-level interface to accessing and creating phar archives.

      Class synopsis

      Phar
      class Phar extends DirectoryIterator implements Countable , ArrayAccess {
      /* Properties */
      /* Methods */
      bool addEmptyDir ( string $dirname )
      bool addFile ( string $file [, string $localname ] )
      bool addFromString ( string $localname , string $contents )
      string apiVersion ( void )
      array buildFromDirectory ( string $base_dir [, string $regex ] )
      array buildFromIterator ( Iterator $iter [, string $base_directory ] )
      bool canCompress ([ int $type ] )
      bool canWrite ( void )
      object compress ( int $compression [, string $extension ] )
      bool compressAllFilesBZIP2 ( void )
      bool compressAllFilesGZ ( void )
      bool compressFiles ( int $compression )
      void __construct ( string $fname [, int $flags [, string $alias ]] )
      PharData convertToData ([ int $format [, int $compression [, string $extension ]]] )
      Phar convertToExecutable ([ int $format [, int $compression [, string $extension ]]] )
      bool copy ( string $oldfile , string $newfile )
      int count ( void )
      string createDefaultStub ( void )
      object decompress ([ string $extension ] )
      bool decompressFiles ( void )
      int delMetadata ( void )
      int delete ( string $entry )
      int extractTo ( string $pathto [, string|array $files [, bool $overwrite ]] )
      int getMetaData ( void )
      bool getModified ( void )
      array getSignature ( void )
      string getStub ( void )
      array getSupportedCompression ( void )
      array getSupportedSignatures ( void )
      string getVersion ( void )
      int hasMetadata ( void )
      void interceptFileFuncs ( void )
      bool isBuffering ( void )
      mixed isCompressed ( void )
      bool isFileFormat ( int $format )
      bool isValidPharFilename ( string $filename [, bool $executable ] )
      bool isWritable ( void )
      mixed loadPhar ( string $filename [, string $alias ] )
      mixed mapPhar ([ string $alias [, int $dataoffset ]] )
      void mount ( string $pharpath , string $externalpath )
      void mungServer ( array $munglist )
      bool offsetExists ( string $offset )
      int offsetGet ( string $offset )
      void offsetSet ( string $offset , string $value )
      bool offsetUnset ( string $offset )
      bool running ([ bool $retphar ] )
      bool setAlias ( string $alias )
      void setDefaultStub ([ string $index [, string $webindex ]] )
      void setMetadata ( mixed $metadata )
      array setSignatureAlgorithm ( int $sigtype )
      void setStub ( string $stub )
      void startBuffering ( void )
      void stopBuffering ( void )
      bool uncompressAllFiles ( void )
      bool unlinkArchive ( string $archive )
      void webPhar ( string $alias , string $index , string $f404 , array $mimetypes , array $rewrites )
      }

      Table of Contents


      SEO Tutorial / Articles





      Php / Mysql Tutorial



      Articles



        Other Topics



        SEO by Jainsachin