Bulk Copy Directory Recursively
This function is used to copy a folder and all its contents and subfolders, its params are as follows: 1) The source folder path2) The
Find useful code snippets for your PHP projects
This function is used to copy a folder and all its contents and subfolders, its params are as follows: 1) The source folder path2) The
When exporting data to CSV line breaks can cause problems getting the data into the correct columns, removing them is the best course of action.
Using preg_split to separate words where a capital letter is found.
This will remove all non-integer characters, including commas and currency symbols. The output is a float.
This script can be used to auto-post to Facebook groups using graph API.
Post updates to buffer using this library – https://github.com/thewebguy/bufferapp-php details documentation about the api is available from https://buffer.com/developers/api
Doing a regular file_get_contents with gist API will return forbidden to allow the connection the user agent should be passed with the request.
Using an API from http://www.ipgp.net/ this snippet demonstrates getting a city from an IP address pass the IP address in a var called $ip and