daipratt


Member since 05/07/2009

Name: David Pratt

Location: London

Website: http://daipratt.co.uk

24 snippets

4571 profile views

1 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

daipratt's Recent Snippets



« Prev 1 Next »
See here for Amazon EC2 range https://forums.aws.amazon.com/ann.jspa?annID=877
0 1009 posted 14 years ago by daipratt
If you every get hit by ERROR 1153 (08S01): Got a packet bigger than 'max_allowed_packet' bytes, then this might help. You also need to make sure that the user that you log in with has SUPER privileges on their account.
0 857 posted 14 years ago by daipratt
This script can be used to install the PECL upload progress PHP extension. You'll know this extension from the Drupal status report page which encourages you to install it.
1 859 posted 14 years ago by daipratt
This will redirect all pages from one domain, to the homepage of another domain.
0 975 posted 14 years ago by daipratt
This will remove all non-ascii characters / special characters from a string.
1 1596 posted 14 years ago by daipratt
Convert a Drupal time stamp field into a readable format. The Drupal time stamp field is in the UNIX format.
1 1087 posted 14 years ago by daipratt
The command you need to close the mysql port 3306 from external access. You need to use the 2 lines in the snippet below once you have connected to the server via SSH.
0 1068 posted 14 years ago by daipratt
Group by user defined price bands.
1 2334 posted 14 years ago by daipratt
Show the top tags by usage.
1 1358 posted 14 years ago by daipratt
Embed the "Who's online" block from within a template file.
1 1030 posted 14 years ago by daipratt
Customises the \"who\'s online\" block to show what role type the user has + the links now point to private message instead of profiles.
1 955 posted 14 years ago by daipratt
1 978 posted 14 years ago by daipratt
Stick this inside the <?php> and you get the month group title shown only once for that date range. Sexy.
0 778 posted 15 years ago by daipratt
0 618 posted 15 years ago by daipratt
« Prev 1 Next »