Skip to content

Instantly share code, notes, and snippets.

@EvanCarroll
Created June 23, 2009 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvanCarroll/134822 to your computer and use it in GitHub Desktop.
Save EvanCarroll/134822 to your computer and use it in GitHub Desktop.
ecarroll@x60s:~$ php -a
Interactive shell
php > $comp_me = gzcompress('Compress me', 9);
php >
php > parse_str( 'var='. urlencode( $comp_me ) );
php >
php > var_dump( urlencode($var) );
string(42) "x%DAs%CE%CF-%28J-.V%C8M%05%5C0%19%BD%04%3F"
php > var_dump( urlencode( $comp_me ) );
string(41) "x%DAs%CE%CF-%28J-.V%C8M%05%00%19%BD%04%3F"
php >
php >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment