[eluser]SoulM4n[/eluser]
[quote author="toopay" date="1304708298"]modify this line
Code:
//$imagepath = $_SERVER["DOCUMENT_ROOT"].'/'.$imagepath;
$imagepath = str_replace('\','/',$_SERVER["DOCUMENT_ROOT"]).'/'.$imagepath;
[/quote]
that code doesn't work .. i had to change it with :
Code:
$imagepath = str_replace(chr(92),'/',$_SERVER["DOCUMENT_ROOT"]).'/'.$imagepath;
but i get the error "Invalid Image path" .. i sort out that i had to add the site dir in the relative path .. like this :
Code:
$imagepath = $_SERVER["DOCUMENT_ROOT"].'test/'.$imagepath;
Anyway .. it doesn't work the same