Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    \$\begingroup\$ The probability of each character is its frequency in the original source code. I may be wrong, but it doesn't look like this entry meets this requirement. \$\endgroup\$ Commented Sep 7, 2016 at 22:34
  • \$\begingroup\$ Oh I missed that point. Back to the editor. How can this be done without reading the code? \$\endgroup\$ Commented Sep 7, 2016 at 22:35
  • \$\begingroup\$ Using this, I got a syntax error, unexpected '<'. But I'm not familiar with PHP, how do I test this? \$\endgroup\$ Commented Sep 8, 2016 at 1:00
  • \$\begingroup\$ @NonlinearFruit: Did you use the -d flag? This is supposed to be saved to a file and then called with php or php-cgi without any flags. Maybe you can use a heredoc. \$\endgroup\$ Commented Sep 8, 2016 at 1:49
  • \$\begingroup\$ @NonlinearFruit: ... or just remove the leading <? for usage with -d. \$\endgroup\$ Commented Sep 8, 2016 at 12:56