Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/apache/vhosts/caltreeripe.com/httpdocs/ps_main.inc on line 140
Warning: getimagesize: Unable to open '/tmp/php8HhF2n' for reading. in /usr/local/apache/vhosts/caltreeripe.com/httpdocs/ps_main.inc on line 140
I have tryed everything to make this work. Any ideas?
line 140 down.....
$image_info = getimagesize($temp_file);
switch($image_info[2]) {
case 1:
$to_file .= ".gif";
break;
case 2:
$to_file .= ".jpg";
break;
case 3:
$to_file .= ".png";
break;
default:
$d["error"] .= "ERROR: $image_type file is invalid.<BR>";
return false;
}