Single-click remote forking
Version 0.4 makes forking pastes from another user's phorkie instance to your own server as easy as clicking on the "Fork to remote system" button.
At first you need to tell your browser that your phorkie instance is the target of web+fork actions:
- Visit a paste on your server
- Open the dropdown beside the "fork" button. Click "Help on remote forking".
- Click "Register web+fork protocol handler".
- Confirm the browser's registration question.
Fork a paste
Click "Fork to remote system".
Your own phorkie instance will show up with the message "Remote paste has been forked".
I spent a considerable amount of time making phorkie work from inside a .phar file.
The phar contains all dependencies, and phorkie does work without configuration now (sensible auto-configuration!). So theoretically all you need is to drop the .phar into your web server's document root, and phorkie simply works.
Unfortunately, this is not reality (for now).
No Linux distribution I know lets PHP handle .phar files. Accessing a .phar with your browser will show you the source code in most cases.
I made a patch that is included in PHP 5.6.0, 5.5.15 and 5.4.31, so unless you have one of this or a higher version, you're out of luck.
Remote fork display
Forking remote pastes is not fun when you don't see who forked, and from where you forked.
The remote system then verifies the fork by checking your newly forked paste HTML page and adds it to the "Forks" list.