linux的crond不能正常工作
我有一个用于创build缩略图的cronjob。 文件夹/var/www/html/work/具有权限744 (我认为744比777更安全) 的crontab * * * * * /usr/bin/php /var/www/html/work/images.php PHP脚本 $newstore = dirname(__FILE__) . '/images/.$data->name.'jpg'; $width = (int)($data->width); $height = (int)($data->height); $desired_width = round((300*$width)/$height); $desired_height = 300; $virtual_image = imagecreatetruecolor($desired_width, $desired_height); imagecopyresized($virtual_image,$source_image,0,0,0,0,$desired_width,$desired_height,$width,$height); imagejpeg($virtual_image,$newstore); 编辑 在浏览器部分。 我已经login到phpmyadmin ,所以当我尝试localhost/work/images.php ,它运作良好。 , and works in in PuTTY SSH , and works in / usr / bin […]