WideImage not working on my server

It works on Xampp localhost , but when I try it on my server, it doesnt.

require_once "lib/WideImage.php";

$img = WideImage::load('i/big.jpg');
$res = $img ->resize(400, 300);
$res->saveToFile("i/small.jpg");

Server version: 5.1.61-0ubuntu0.10.10.1

Gd is installed on the server.

Answers


After a little research I found this:

WideImage is an object-oriented library for image manipulation. It requires PHP 5.2+ with GD2 extension.

But php version on your server is <5.2 Updating it will help you.

Maybe the problem is in permissions (you don't have permission to create new file).


Need Your Help

Getting maps working in KitKat emulator?

android eclipse maps emulation android-4.4-kitkat

A question I asked on Reddit, which it seems several other people would have liked answered, has elicited no response, so maybe the amazing Stackoverflow community can provide an answer?

ampersand in email address (href)

html html-entities ampersand

Im working with email address which has an ampersand in it,