1. Announcement:
    How Do I Upgrade My Forum Account?
    Warren Ashcroft (Red Fox UK Limited (Director))
    1st January 2005
    Views:
    24,255
+ Post New Thread
Threads 1 to 7 of 7

Forum: Code Sharing

Share your handy snippets of code in this forum – remember to include the code language in the title.

  1. Sticky Thread Sticky: HTML: Custom Helm Login Form

    Hello Guys, A couple of people have been asking how to create custom login forms for Helm, since this dosent directly relate to Red Fox Hosting Im posting this in Code Sharing forum (though Helm installations used with this code need to be running at least one Red Fox AddOns theme or skin). ...

    Started by Warren Ashcroft, 12th November 2005 11:51 PM
    2 Pages
    1 2
    • Replies: 17
    • Views: 4,559
    28th September 2006 03:33 PM Go to last post
  1. PHP: Image validation/anti leech

    Just thought it'd be nice to share these scripts. Yes I know there's better out there - but it should give you something useful to start from. Please feel free to linkback to phorce.co.uk :D dl.php <? ob_start('ob_gzhandler'); session_start(); $files=array(...

    Started by E_G, 14th March 2006 04:29 PM
    • Replies: 0
    • Views: 1,337
    14th March 2006 04:29 PM Go to last post
  2. PHP: Working around ob_gzhandler bug

    I've just thought of a fairly obvious solution to the bug that causes output buffering to break when trying to clean a buffer that uses the ob_gzhandler compression handler. It's a bit crude perhaps; it works on the principle of using a top level buffer with gzhandler, then always using a nested...

    Started by nick, 16th February 2006 10:53 AM
    • Replies: 1
    • Views: 1,410
    9th March 2006 03:04 PM Go to last post
  3. PHP: Pronounceable password generator

    I wrote this a while back, I bet there are cleverer ways, but this little function has done me proud. function generatePass($length=8, $include_numbers=false) { $vowels = array("a", "e", "i", "o", "u"); $cons = array("b", "c", "d", "g", "h", "j", "k", "l", "m", "n", "p", "r", ...

    Started by nick, 16th February 2006 02:07 PM
    • Replies: 2
    • Views: 1,463
    16th February 2006 02:21 PM Go to last post
  4. PHP: Custom error handling

    I think I said a few days ago that I would offer up some ideas for creating your very own custom error handler in PHP. I have barely tested it, but it seems to work okay. To use the error handler, firstly make sure you have included the class, then add set_error_handler(...

    Started by nick, 8th February 2006 07:17 PM
    • Replies: 6
    • Views: 1,770
    12th February 2006 12:53 AM Go to last post
  5. PHP: Calculating a Directory File Size

    Here are a couple of quick and simple php functions, the first returns the size in bytes contained within the directory that is passed to it, the second function converts the bytes value to a different size unit. <?php function dir_size($dir) { $total_size = 0; $skip = array('.','..','');...

    Started by nick, 7th December 2005 04:35 PM
    2 Pages
    1 2
    • Replies: 17
    • Views: 3,285
    29th January 2006 10:32 AM Go to last post
  6. PHP: How to set $_SERVER['DOCUMENT_ROOT']

    Another code snippet for you all. I like to use the DOCUMENT_ROOT variable in my scripts, it is as if nothing else is ever quite as useful. Unfortunately here at redfox the variable is currently not set, which can be frustraiting. Stick this tiny bit of code so that it is one of the first...

    Started by nick, 5th October 2005 08:48 AM
    • Replies: 1
    • Views: 3,377
    5th October 2005 09:46 AM Go to last post
  7. PHP5: Auto loading classes

    In that mood today, just thought I would post a handy script that I have written and tend to use all the time. It saves a great deal of time and energy when writing large PHP programs. Simply put, it makes use of the __autoload function so that you never again have to load class files manually...

    Started by nick, 4th October 2005 06:08 PM
    • Replies: 0
    • Views: 1,506
    4th October 2005 06:08 PM Go to last post

+ Post New Thread

Forum Information and Options

Users Browsing this Forum

There are currently 1 users browsing this forum. (0 members & 1 guests)

Thread Display Options

Use this control to limit the display of threads to those newer than the specified time frame.

Allows you to choose the data by which the thread list will be sorted.

Order threads in...

Note: when sorting by date, 'descending order' will show the newest results first.

Icon Legend

Contains unread posts
Contains unread posts
Contains no unread posts
Contains no unread posts
Closed Thread
Thread is closed
Thread Contains a Message Written By You
You have posted in this thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts