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

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

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

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

Convert mcrypt Keys in PHP

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

PHP
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

MySQL | PHP
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

MySQL | PHP
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

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

Autocomplete Example

Ajax | Helpers | jQuery | PHP
This will show you how to use the autocomplete function from our forms helper class. » View Post

TSV File to PHP Array

PHP
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

MySQL | PHP
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

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

Convert State and Country Abbreviations to Names Function

MySQL | PHP
This PHP function makes it super easy and quick to go from an abbreviation to a full state or country name. We include the MySQL data tables you need too. » View Post

Display List in PHP with Commas and "And"

PHP
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

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

Generate CSV From PHP Array

PHP
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

PHP
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

PHP
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

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

CSV to Array PHP Function

PHP
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