Fred's cylinderize problem from php
Posted: 2010-04-23T03:06:58-07:00
Hi,
I have successfully run "cylinderize -m vertical -v background -b none -p 20 -t test.jpg test2.png" from my Fedora 10 command line, but once i tried to run the same using php i.e. exec('cylinderize -m vertical -v background -b none -p 20 -t test.jpg test2.png') it gives me this error
--- FILE test.jpg NOT READABLE OR HAS ZERO SIZE Rajesh---
Could someone please help me?
Warm regards
Rajesh
Please NOTE : Thanks to fmw42 who have suggested a solution, but that didn't work for me
1) provide the full path to cylinderize in your exec command and possibly full paths to images (this may or may not be necessary)
2) edit the cylinderize script to provide the full path to convert (PHP does not always recognize the system PATH)
3) edit the cylinderize script to change dir="." to dir="/tmp" (possibly a permission issus)
I have successfully run "cylinderize -m vertical -v background -b none -p 20 -t test.jpg test2.png" from my Fedora 10 command line, but once i tried to run the same using php i.e. exec('cylinderize -m vertical -v background -b none -p 20 -t test.jpg test2.png') it gives me this error
--- FILE test.jpg NOT READABLE OR HAS ZERO SIZE Rajesh---
Could someone please help me?
Warm regards
Rajesh
Please NOTE : Thanks to fmw42 who have suggested a solution, but that didn't work for me
1) provide the full path to cylinderize in your exec command and possibly full paths to images (this may or may not be necessary)
2) edit the cylinderize script to provide the full path to convert (PHP does not always recognize the system PATH)
3) edit the cylinderize script to change dir="." to dir="/tmp" (possibly a permission issus)