PHP Image Host 1.4 beta released and other updates

I’m happy to announce the beta version of php image host v1.4 is now available.

This is a major rewrite of the existing code base and the new feature-set is limited to support for uploading images in a zip archive and (optional) use of imagemagick for image manipulation, however the new support for themes, language files and easier upgrades should make life easier for future updates.

This website now features a (currently small) selection of useful free online webmaster tools with many more to come as I have time to add them.

I’ve also added support for a whole bunch of new tlds and cctlds to my free php whois script. See that page for information on the list of domain extensions now supported.

Cheers :)

Bulk Image Converter Script

I’ve just released a web application for providing an image conversion service via a website.

The script supports resizing, watermarking and conversion between jpeg, gif and png images as well as uploading and downloading zip archives of the images. Its priced at $19.95 but visit the pre-sales forum for a discount.

Support forum available

I’ve opened a forum to support anyone using my scripts. I’ll try to check for posts as often as possible, so if you need help with php image host, sams’s whois or any other stuff on this site visit the forum :)

PHP Image Host 1.3

A new version of my image hosting script is now available to download. I wasn’t planning on adding any new features to the original script but V2 is taking longer than I expected :p and from comments I’ve received the original is still useful, so I’ve thrown a few new features into another release.

PHP Image Host Demo

Here’s the list of new features. Features marked with a * can be turned on or off by site admin:

  • Public or private option for user’s images
  • Users can rotate images
  • Visitors can browse public uploaded images *
  • Admin can set only images he has checked as publicly browsable
  • Random thumbnails page *
  • HTML and bb codes for linking to images *
  • More control over bandwidth monitoring and hotlinking via .htaccess and admin cp. Options for both thumbnails and full size images are: *
    • Hotlinking on or off
    • No bandwidth monitoring
    • Bandwidth monitoring of hotlinked images only
    • Bandwidth monitoring of all image views except those from user cp or admin cp
    • Bandwidth monitoring of all image views except via admin cp
    • Bandwidth monitoring for all image views

    Bandwidth monitoring puts more strain on the server as every image view requires a couple of database queries. When off the server just serves the image directly.

  • Option to place user login form and account info box below the navigation bar or in the side column of the layout *
  • Option to display random, recent or no images in the side column *.
  • Option to display plan details on home page, upgrade page or both *
  • Display a random (or latest uploaded) image on the home page *
  • Display random (or latest uploaded) thumbnails on the home page *

More information and download links on the main php image host page.

Extract images from a zip archive

For my second example of using my image thumbnailer I’ve thrown together a little script which accepts a zip archive upload containing images and generates and returns to the browser a new zip archive containing a thumbnail for each image in the original.

Form to upload a zip file containing images

Form to upload a zip file containing images

After processing a new zip is sent to the browser containing thumbnails

After processing a new zip is sent to the browser containing thumbnails

Read the rest of this entry →

Create thumbnails for all images in a directory

This is a simple script to demonstrate using my image resizing function
. It scans the directory you place it in for any images, generates a thumbnail for each image, then outputs html to display the thumbnails as links to each image.

It requires php 5.1+ as it uses the Directory Iterator to get the files in the directory. If you’d like to see a version compatible with earlier versions of php leave a comment below.

For each file it checks that:

  1. It is a jpeg, png or gif image (or at least has that file extension)
  2. The filename doesn’t end in "_t.jpg" (as this is what is uses for naming the thumbnails)

Read the rest of this entry →

Image Resizing with php

One of the great things about php is its built in support for the gd image library which makes creating thumbnails from images quite trivial, although you still need to calculate the correct dimensions if you want your thumbs to be resized proportionally.

Here’s a function that takes a gd image, a maximum width and / or maximum height and returns a new thumbnail image that fits into these sizes. The function can either scale the image proportionally so the whole image fits completely into the new size, or scale and crop the original so that the thumbnail is exactly the maximum width and height.

Read the rest of this entry →

A Simple PHP Contact Form

This is a simple php contact form / feedback form script I through together as an introduction to php for a friend.

Rather than write a tutorial I’ve heavily commented the code. Hope its useful to somebody.

Read the rest of this entry →

Hello World

Welcome to my new php blog :0) Nothing much here yet except for some bits and pieces migrated over from my past.

My php image hosting script is now available for free under an MIT open source licence, and for the domainers amongst you a very slightly updated version of my php domain name whois lookup script, and some free domain name whois lookup software.

More free scripts, php code snippets and tutorials coming soon…

Scripts.com