Dear experts ,
I am stuck with the following problem and your help would be most welcome.
I am using the latest version of timthumb.php found here : http://timthumb.googlecode.com/svn/trunk/timthumb.php
I am calling timthumb.php using this as a test:
and in both cases I get
A TimThumb error has occured
The following error(s) occured:
Could not find the internal image you specified.
I understand that the problem is related to the document root variable, but I may be completely wrong.
Using the following small script which i ran in the same folder as timthumb.php i determined the document root
//Gets the document root
$root = getenv("DOCUMENT_ROOT") ;
The answer was
I tried adding
$_SERVER['DOCUMENT_ROOT'] = '/kXXXXXX/homepages/xx/nnn
at the top of the php file and still got the same error. For anybody who is familiar you may want to know that it is hosted on 1and1 and that it is shared hosting with no root access.
Any ideas ?
Thanks in advance.