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
Set, Get, Remove Cookies
- Examples of setting, getting, and removing cookies.
Show current time as PNG-image
- Code to display the current time as a .PNG image.
Show mySQL table as HTML
- This example use mySQL functions from PHP to display a full m...
Show the current season (spring, summer, fall, winter)
- Returns the current season (spr...
- A clearly written function that will get the average of numbers that ...
Simple DB connection class
- A simple DB connection class with all often used mySQL func...
Simple downloader script
- A simple downloader script.
Simple image scaling
- Simple way of scaling any image to fit either given width or heig...
Simple one-line template engine
- Very slick, very fast one-line template engine. Faster...
Simple reversible encryption
- This is an example of encryption and decryption that uses...
Sine, Cosine, and Tangent
- Easy way to get the Sine, Cosine, and Tangent.
Split all chars in string
- Split out all of the characters in a string.
Split URL into parts ver A
- Decomposes a URL completely.
Storing images in a database
- This tutorial teaches you how to upload images into a mys...
String to Date
- Convert almost any English textual representation of a date into a time...
Strip HTML to Text
- Strips tags, tables, etc and returns nice, clean text from HTML source.
Super Simple Database Driven Web Site
- Make a MySQL Database called "db" with a table n...
Super simple encryption example
- Super simple encryption example. The output is the sum...
Super-mini Chat room
- A super small, super simple chat room. No security, so use at you...
- Included for the sake of reference. Few PHP programmers use the t...
Test If File Is Included
- This tests to see if the current file is being included or ru...
Test if mySQL table exists
- This script just tests to see if a given table exists in my...
Text to GIF
- Slick method of changing text to an image- useful to prevent copying text ...
Toggle a column bit regardless of state
- Toggle a column bit regardless of state. Usefu...
Truncate Links Over X Chars long
- Truncate URL if longer than 'X' characters (add http:...
Truncate text while preserving HTML tags
- Truncate or limit a text string while still ...
Truncate URLs for clean appearance.
- Makes nicer looking URLs quickly and easily. Preve...
Unique Array function
- Similar to array_unique(), but implemented manually.
- Creates a picture based on your IP address. Is it useful? No! I...
Universal parameter reading
- This simple yet practical function will read in your scrip...
© 2003 - 2023 psoug.org