Posts Tagged ‘PHP’

Random password generator in PHP

Monday, December 27th, 2010

When you want a random password you might think that for instance uniquid() is a good fit. It’s not though as it will only return hex characters.... Read More

Getting start and end date of week in PHP

Friday, November 19th, 2010

I just searched for ways of getting the start and end dates of a week. Sadly there is some less than simple solutions in the top results, this is a small effort at remedying that situation.... Read More

Generating extended MySQL inserts in PHP

Thursday, November 4th, 2010

Today I just realized I didn’t have any PHP code to generate extended MySQL inserts at my disposal. For heavy inserts I’ve been using BEGIN and COMMIT with lines terminated with ;. ... Read More

Multiple File Uploads with XHR and PHP

Monday, October 25th, 2010

So the jQuery / Flash multiple file uploader has not really been working when it comes to heavy duty stuff “Flash player has crashed” is a common scenario after some six < 2MB pictures, problem is, it needs to be able to handle up to 50 of them. Therefore I decided to check out the HTML5 alternatives and eventually found a really good one. I did have to make some modifications however, to make the solution fit with my own scenario and I detail them below.... Read More

Hierarchical data with PHP and jQuery

Saturday, October 2nd, 2010
hierarchical-form.png

Demo here (go ahead and submit the form as much as you like, it will keep pre-populating with the data you submit).... Read More

Migrating a Legacy Forum to vBulletin 4.0.3

Saturday, July 17th, 2010

Recently I’ve just finished migrating a custom forum to vBulletin, in doing this your mileage may vary, much of it depends on if the original forum was part of a bigger offering that should still exist, or if it was standalone. In my case the site is cardlovers.com, a poker rakeback site, where the new forum is located at cardlovers.com/forum... Read More

Memcached in PHP on Dapper

Monday, February 8th, 2010

What is Memcached and what is it good for?... Read More

Foreign relations with jQuery / PHP

Friday, January 29th, 2010
jquery_crud_foreign.png

Well that didn’t take long, unsurprisingly. I needed the interface to handle foreign relations, for this I would’ve liked to use conventions, for instance that all primary autoincrementing keys be named id. However the legacy database I’m working with won’t allow that, so we need configuration:... Read More

The basic C(R)UD

Sunday, January 10th, 2010
jquery_ajax_php_crud.png

I recently made a very simple but functional administrational interface using jQuery and Ajax to avoid having to refresh the page all the time thus simplifying development.... Read More

Multiple select lists with jQuery and JSON

Wednesday, December 9th, 2009

This tutorial will all be about managing loading data into multiple select lists and then save the selections in the list.... Read More