There are 55 posts in the PHP category. Displaying posts 1 through 25:

Fade Between Images with jQuery

JavaScript | jQuery | PHP
With this PHP function, you can fade directly from one image to another with jQuery, and even make a looping slideshow. Super easy. » View Post

PHP Content-Type Headers

A list of commonly used HTTP headers, pre-formatted as PHP code for quick copying and pasting. » View Post

Collect and Save Electronic Signatures

JavaScript | PHP
This simple example will show you exactly how to collect an electronic signature from your users and save it as a PNG file using PHP. » View Post

Send Email via SMTP from PHP Using PEAR

Email | PHP
A more secure alternative to using PHP’s mail() function that will help keep your messages out of the spam filters. » View Post

Get Redirect URL with PHP

This function follows redirects (even multiple redirects) and returns the final destination URL as a string. » View Post

List of PHP Supported Time Zones

Data Dumps | PHP
An easy-to-copy display of all the supported zones, plus code that you can use to create your own dynamic list and HTML to populate a dropdown. » View Post

Regex Checking of Foreign Characters in PHP

How to handle extended characters (like the é in café) with regular expressions. » View Post

Convert mcrypt Keys in PHP

Fix this error: Warning: mcrypt_decrypt(): Key of size 29 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in file.php on line 30 » View Post

Simple PHP Upload Form

A tested and working form that allows for the user to upload a CSV file. Can be easily modified for other file types. » View Post

CSV to MySQL Queries PHP Function

This function lets you take giant CSV files that are too big for phpMyAdmin and break them up into a manageable size so that they can be processed. » View Post

Increase phpMyAdmin Upload Size

Detailed steps showing how to modify php.ini so that you can upload bigger files into MySQL through phpMyAdmin. » View Post

Spell Out Numbers PHP Function

This PHP function takes numbers (like 11) and turns them into words (like eleven). It handles thousands, millions, billions, and even trillions. » View Post

TSV File to PHP Array

This function lets you take a tab separated text file (or comma separated, pipe separated, etc.) and convert it into a PHP array with just one line of code. Huge time saver. » View Post

Import MySQL Queries from a File Too Big for phpMyAdmin

This PHP script will process queries exported by phpMyAdmin (or any other source) from a file that exceeds your maximum file upload size. » View Post

Convert IPv6 Address to IP Number with PHP

Quick and easy function converts both IPv4 and IPv6 addresses to IP numbers. No PHP extensions required. » View Post

Get Timezone by Latitude and Longitude in PHP

cURL | Maps | PHP
This function lets you quickly go from lat. and long. coordinates to a time zone by connecting to the GeoNames web service. » View Post

Display List in PHP with Commas and "And"

Like PHP's built-in implode function, but with extra logic to give an "and" before the last item in the list. » View Post

Get Facebook app_scoped_user_id From Facebook ID

Facebook | PHP
A little help transitioning to version 2 of the Facebook Graph API. Explains how to get the app_scoped_user_id values for your users if all you have is their original Facebook ID. » View Post

Basic PHP cURL Example

A quick example showing how to retrieve a webpage's contents remotely. » View Post

Convert PHP Array to CSV File

Basically the opposite of fgetcsv, this function takes a PHP array and converts it into a CSV file for you. » View Post

Display PHP Array as Table

This function lets takes a one-dimensional PHP array and turns it into a nicely formatted HTML table for display on your page. » View Post

Display PHP Array as a Google Chart

This function makes it super easy to go from a PHP array to the JavaScript you need to generate a Google BarChart, AreaChart, GeoChart, LineChart, PieChart, and more. » View Post

Custom Error Handling Function

This PHP function prints a nicely formatted error message out to the screen and ends the script. » View Post

CSV to Array PHP Function

This time-saving function lets you go from CSV file to PHP array with just one line of code. Very simple and easy to use. » View Post

Tint Images with PHP

Images | PHP
Take a black & white image and tint it red, blue, green, or any other color that you can dream up using PHP and its built in image library. » View Post
» Next · End · Categories