Skip to content

helgi/phar-talk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d27b798 · Jan 27, 2012

History

7 Commits
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012
Jan 27, 2012

Repository files navigation

Examples from "Phar, the PHP .exe format" talk I (Helgi) wrote.

To run any of the create scripts you will have to pass in -d phar.readonly=0 or change it in php.ini (not recommended) as Phar disables write access by default.

php -d phar.readonly=0 example2/create.php

phpMyAdmin

Due to Phar not liking relative paths so the phpmyadmin example isn't working right now

Apache

Example of how you can run Phar in apache

AddType application/x-httpd-php .php .phar

<VirtualHost *:80>
    ServerName   phar.dev
    DocumentRoot /path/to/phar-talk-examples/web/
    DirectoryIndex project.phar
</VirtualHost>

About

Example code for my "Phar, the PHP exe format" talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages