Page 1 of 1

How to change tmp directory?

Posted: 2011-01-18T01:33:37-07:00
by RomikTronik
I use TCPDF Library, which uses Imagick.

After I uploaded my app on hosting, i get this error:

Code: Select all

ImagickException #1 open_basedir restriction in effect. File(/tmp/mska_b9HO8U) is not within the allowed path(s) 
tcpdf.php Line: 7705 $img->writeImage($tempfile_alpha);

i dont have access to /tmp/ directory. Can you please help me how to set other tmp directory to which I have access?