Shop > Other Software > PHP Image Cacher
PHP Image Cacher is a simple way to automatically download and display images with one line of HTML. You simply type in the custom URL with the link to the image you want, and the script will automatically download the image if it doesn't have it, and then display it.
Requirements
- PHP
- MySQL
- Curl
- GD Library
Critical Note: Please contact me with a list of sample URLs you wish to ensure work before purchasing. This script has been specially designed to be compatible with blogger, and support for other unusual sites may be possible. This script will, of course, still attempt to work with every site you throw at it.
Due to the likely abuse a live demo would incur, I have chosen to not create one. I will likely create a video in the future displaying the simplicity of the script, but for now there is no video either.
Setup
Instructions for installing/setting up the script are included in the PHP file. Basically, your setup should follow this order:
- Create a database if you don't already have one
- Find the SQL statement at the top of the PHP file and execute it with something like PhpMyAdmin (Be sure you execute it on the database you want the script to use!)
- Update the $host,$username,$password,$outputDirectory, and $database variables to reflect your current setup. Generally, $host and $outputDirectory don't need to be changed from their current values.
[!] If you are working with particularly long URLs, you may wish to change "`url` varchar(300) NOT NULL," to "`url` text NOT NULL,"
