PHP Code Category
Select a Location
PSOUG Home Page
Oracle Code Library
mySQL Code Library
PHP Code Library
Oracle Terms & Definitions
Oracle Error Codes
Advanced Code Search
Get filesize without downloading
- Nifty way to get the size of a file without having to...
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/psou...
Get Relative Dates and Times
- This function takes seconds as an argument and returns th...
Get text between tags
- Gets the text between any pair of tags, matching or not.
Get week number
- This function returns the week number of the given date according to I...
- This script notifies you when Google bot visits your page. Copy this...
Gradient Image Generator
- The default gradient is set at black->white. To change it, ju...
Graphical tree like Explorer
- This code displays a graphical tree (similar to that of W...
Handy SORT BY box
- This code produces a sort box for any number of arbitrary criteria o...
Heavy Duty URL validator
- A heavy-duty URL validator that should work on nearly any val...
Heavy-duty SendMail function
- A heavy-duty SendMail function
- Here is a nice way to use preg_replace to convert a hex encoded stri...
HEX to RGB array
- Function to convert a string with hexadecimal colors to an associativ...
Hierarchical categories browser
- A very simple way to build and do a hierarchical HTML ...
Highlight Words #2
- Highlight words in a string.
How many days ago
- Takes a date and returns a string describing how long ago that date ...
How to write a config file
- Easy way to collect user data and write it to a config file...
Import SQL Data
- This script will create tables and load data from an sql file.
- An improved version of strip_tags().
Include All Files In A Directory
- This function will include all files from a specified...
Insert Into Middle Of Text
- Insert some text (or image) into the middle of a block of text.
Invert Hex Color
- Inverts a hexadecimal color value.
Invert Hex Color #2
- Invert a hexadecimal color value. Doesn't get any easier than this.
IRC Bot skeleton code
- Simple skeleton code for an IRC bot that connects to an IRC serv...
Is email deliverable?
- Checks to see if email address is actually deliverable.
Is Number Even?
- If the variable contains an odd number, don't execute the code. If t...
Language Specific Response
- Ever wanted to give response to the users in the language t...
© 2003 - 2023 psoug.org