Working on SSH but not on PHP
Posted: 2012-05-18T07:53:46-07:00
Hi, a few weeks ago i posted my problem and finally i got the solution. Or that is what i thought. The problem is still there.
When i use this via SSH
"/kunden/homepages/39/d296597816/htdocs/imagick6.7/bin/convert input.jpg -scale 600x300 -background white -gravity center -extent 600x300 output.jpg"
it works 100% perfect.
When i use this via PHP
exec("/kunden/homepages/39/d296597816/htdocs/imagick6.7/bin/convert input.jpg -scale 600x300 -background white -gravity center -extent 600x300 output.jpg");
(the same as above)
This don't work.
I tried everything and still have no idea what's the problem. Any idea?
How can capture a "text error" on the PHP exec?
Things like
exec("$pathTo/convert input.jpg -scale $width output.jpg");
works perfect on both sides.
Maybe there is another way to do the command posted above?
I tried with:
exec("/kunden/homepages/39/d296597816/htdocs/imagick6.7/bin/convert imagenPruebas.jpg -fill white -scale 600x600^ output.jpg");
But it doesnt fill the white space.
Sorry for my English.
Finally i manage to catch the error. I get the following error:
libgomp: Thread creation failed: Resource temporarily unavailable
When i use this via SSH
"/kunden/homepages/39/d296597816/htdocs/imagick6.7/bin/convert input.jpg -scale 600x300 -background white -gravity center -extent 600x300 output.jpg"
it works 100% perfect.
When i use this via PHP
exec("/kunden/homepages/39/d296597816/htdocs/imagick6.7/bin/convert input.jpg -scale 600x300 -background white -gravity center -extent 600x300 output.jpg");
(the same as above)
This don't work.
I tried everything and still have no idea what's the problem. Any idea?
How can capture a "text error" on the PHP exec?
Things like
exec("$pathTo/convert input.jpg -scale $width output.jpg");
works perfect on both sides.
Maybe there is another way to do the command posted above?
I tried with:
exec("/kunden/homepages/39/d296597816/htdocs/imagick6.7/bin/convert imagenPruebas.jpg -fill white -scale 600x600^ output.jpg");
But it doesnt fill the white space.
Sorry for my English.
Finally i manage to catch the error. I get the following error:
libgomp: Thread creation failed: Resource temporarily unavailable