News Feed
Jobs Feed
Sections




News Archive
feed this:

Sean Coates' Blog:
Arbitrary Incrementer in PHP
August 06, 2010 @ 12:09:28

In a new post to his blog Sean Coates shares a technique he's used to pull an arbitrary incrementer from a certain set of characters.

On several recent occasions I had a need for an incrementer that uses an arbitrary character set and I thought I'd share my code with you. I've used this code in the GPL Virus that I wrote to poke fun at the Wordpress/Thesis/GPL debacle, as well as in some clean up I'm doing for the extremely useful JS Bin project.

He's used the technique in an upcoming URL shortening service to make the shortest possible URLs without overlap. He tried a few methods including using base_convert but they had their limitations. Ultimately, he settled on a custom function that, based on a given character set and increments over it recursively.

1 comment voice your opinion now!
arbitrary Incrementer baseconvert dechex example


SecurityReason.com:
PHP 5.2.4 Released...unpatched
September 05, 2007 @ 11:43:00

As mentioned by the International PHP Magazine, Maksymilian Arciemowicz has posted about some testing he's been doing on the newly released PHP 5.2.4 and has still found some issues with it.

In 30 August PHP Team have released new version PHP with number 5.2.4. We have tested this version and now we can say, that not all issues from PHP 5.2.3 are patched. It is possible bypass safe_mode, open_basedir and disabled_functions.

The issue he describes is the lack of a "mail.force_extra_parameters" setting in the php.ini still making it possible to exploit the mail() function to execute arbitrary PHP code.

0 comments voice your opinion now!
release php5 mail function arbitrary phpini setting patch release php5 mail function arbitrary phpini setting patch



Community Events











Don't see your event here?
Let us know!


development zendframework2 introduction conference release testing opinion framework community language unittest interview tool code example api composer podcast series functional

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework