Urgent! Problem with passthru, system, exec...
Posted: Wed Aug 21, 2002 12:20 am
Ok, here's the source for my file, written from scratch:
http://houstonhardwoods.guardianhosting.net/image.phps
It's not creating the thumbnails.
Here's a section of it:
The passthru using "cp" works, indicating that the permissions are all good.
The convert ".$im." -resize 231x231 ".$thumbfile one works when I paste it into ssh and run it. So, basically
convert works.
passthru works.
passthru + convert does not work.
Any idea what it could be??
Thank you!
http://houstonhardwoods.guardianhosting.net/image.phps
It's not creating the thumbnails.
Here's a section of it:
Code: Select all
//passthru("convert $im -sample 231x231 -border 1x1 -bordercolor black $thumbfile");
//$blah = passthru("convert -scale 50%x50% ".$im." ".$thumbfile);
//$blah = passthru("convert -size 231x231 ".$im." -resize 231x231 -bordercolor black -border 0x0 +profile '*' ".$thumbfile);
//$blah = "/bin/sh `convert -size 231x231 ".$im." -resize 231x231 -bordercolor black -border 0x0 +profile '*' ".$thumbfile."`";
//$blah = "convert ".$im." -resize 231x231 ".$thumbfile;
$blah = "cp ".$im." ".$thumbfile;
//copy($im,$thumbfile);
//$blah = "mogrify -geometry 231x231 -quality 75 ".$thumbfile;
passthru($blah);The convert ".$im." -resize 231x231 ".$thumbfile one works when I paste it into ssh and run it. So, basically
convert works.
passthru works.
passthru + convert does not work.
Any idea what it could be??
Thank you!