Skip to content

Instantly share code, notes, and snippets.

@FMCorz
Created May 25, 2016 04:16
Show Gist options
  • Save FMCorz/285891b86b459fc858cffa5c39c52b28 to your computer and use it in GitHub Desktop.
Save FMCorz/285891b86b459fc858cffa5c39c52b28 to your computer and use it in GitHub Desktop.
Output result of a PHP expression
#!/bin/sh
# Place in /usr/local/bin
# Run: chmod +x /usr/loca/bin/phpx
echo "<?php var_dump($@);" > /tmp/phpx.php
php /tmp/phpx.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment