#!/usr/bin/php -n $contents = file_get_contents('php://stdin'); echo urlencode($contents);