CoderZone.org

 Category: PHP Code

Bookmark and Share

FTP via PHP - A lot of people have asked for VERY simple FTP functionality with PHP, so here it is. This clas...
GD barchart demo - This GD barchart demo will display a bar chart based on random values (which you could chang...
Generate Random Keys - A fast way to generate random alphanumeric keys in PHP.
Generate random string - This will return a character based on the give input number. All you have to do is fee...
Generate web thumbnail from a Linux server - The easy way to generate a thumbnail of a web page using a Linux s...
Get Absolute Path - It's sometimes necessary to figure out the absolute path to a certain file. This snippet wi...
Get All Files into an Array - This loads all of the file names in a given directory into an array.
GET and POST variables in hidden form - A class to put get and post variables in hidden form.
Get Atomic time - This returns the time in the form of a timestamp.
Get Current Directory Name - This gets the name of the directory which contains the current script.
Get Current Page URL - This will return the URL of the current page or script. Works with HTTP and HTTPS, as we...
Get file extension - Reliable way to get the file extension- this will print the last part after the last dot.
Get file in as variable - You can read the whole content of a file into a variable with this statement.
Get filesize without downloading - Nifty way to get the size of a file without having to download it first.
Get last added insert ID - Get the id of an auto_incrementing id from a mySQL insert.
Get Link Text - Gets just the text of a URL link.
Get oldest file in directory - Shows the oldest file in directory.
Get Path Info - The example given (/www/psoug/index.html) would produce: /www/psoug index.html html
Get Relative Dates and Times - This function takes seconds as an argument and returns the time difference simil...
Get text between tags - Gets the text between any pair of tags, matching or not.
Get the relative path to the root folder - Find the relative path to the current script's root folder
Get Unix Timestamp for midnight tomorrow - Three simple ways to get the unix timestamp for midnight tomorrow.
Get week number - This function returns the week number of the given date according to ISO 8601-1988.
GoogleBot monitor - This script notifies you when Google bot visits your page. Copy this into the page and edit...
Gradient Image Generator - The default gradient is set at black->white. To change it, just add the start and en...
Graphical tree like Explorer - This code displays a graphical tree (similar to that of Windows' Explorer) from...
Handy SORT BY box - This code produces a sort box for any number of arbitrary criteria on any type of data you ...
Heavy Duty URL validator - A heavy-duty URL validator that should work on nearly any valid URL.
Heavy-duty SendMail function - A heavy-duty SendMail function
HEX Encode / Decode - Here is a nice way to use preg_replace to convert a hex encoded string back to clear text.

© coderzone.org | users online: 7