(Member since July 21, 2007)

User Profile: Zhay

About:
I am a freelance web designer.

Website:
Uploaded Scripts

  • String Contains
    Determines whether or not a string contains another string.
    Added on February 3, 2011.
  • List Files in Directory Rated an average of 4 stars by 1 person (Average: 4 stars by 1 person)
    This code prints out all of the files in the given directory.
    Added on February 3, 2011.
  • Get File Extension Rated an average of 5 stars by 1 person (Average: 5 stars by 1 person)
    This script gets the file extension from a file name/path.
    Added on February 2, 2011.
  • Determine Pronounceability of a Word Rated an average of 4 stars by 1 person (Average: 4 stars by 1 person)
    This script determines how pronounceable a word is as a percentage (returns values from 0 to 1).
    Added on December 19, 2010.
  • Check If a String Starts with a Specific Pattern
    Some languages such as Java have a startWith method/function which allows you to check if a string starts with a specific pattern. Unfortunately, PHP does not have a similar built-in function. Whatever--we just have to build our own, which is very simple.
    Added on December 19, 2010.
  • Search for a String in Another String Rated an average of 5 stars by 1 person (Average: 5 stars by 1 person)
    If a string is contained in another string and you need to search for it, this is a very clever way to do it.
    Added on December 19, 2010.
  • String Get Between Rated an average of 1 star by 1 person (Average: 1 star by 1 person)
    Returns the content in a string between $start and $end.
    Added on December 19, 2010.
  • Set Cookie Rated an average of 3.5 stars by 2 people (Average: 3.5 stars by 2 people)
    Makes it easy to set a cookie for a specified number of days.
    Added on March 8, 2009.
  • Validate E-mail Address Rated an average of 5 stars by 1 person (Average: 5 stars by 1 person)
    This script checks to see if an e-mail address is valid.
    Added on March 8, 2009.
  • Quick File Upload Rated an average of 3.5 stars by 2 people (Average: 3.5 stars by 2 people)
    This function uploads a file that has been POST and is in the $_FILES array.
    Added on January 13, 2008.
  • Website Last Modified Rated an average of 4 stars by 3 people (Average: 4 stars by 3 people)
    This script displays the last modified date of an entire directory (and its subdirectories).
    Added on December 27, 2007.
  • Random String Generator Rated an average of 4.571 stars by 7 people (Average: 4.571 stars by 7 people)
    Generate and return a random string
    Added on October 13, 2007.
  • Convert Tabs to Spaces Rated an average of 3.5 stars by 4 people (Average: 3.5 stars by 4 people)
    Converts tabs to the appropriate amount of spaces while preserving formatting
    Added on October 13, 2007.
  • Extract Variables Rated an average of 4 stars by 2 people (Average: 4 stars by 2 people)
    This snippet allows scripts on servers with register globals off to function properly.
    Added on August 3, 2007.
  • Write Text to a File Rated an average of 3.636 stars by 11 people (Average: 3.636 stars by 11 people)
    This script makes the process of writing text to a file quicker.
    Added on August 3, 2007.
  • Format Size Units Rated an average of 3.667 stars by 3 people (Average: 3.667 stars by 3 people)
    This script accepts a long value representing a number of bytes, and it outputs the appropriate file size unit.
    Added on August 2, 2007.
  • Random Number in a Range Rated an average of 4 stars by 2 people (Average: 4 stars by 2 people)
    This function returns a random number between an upper and lower boundary.
    Added on July 29, 2007.

Login

User:
Pass:

Register

Not a member? Register today and receive the many free benefits of being a member!

Advertisements