I want to store output of exec command in array.

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
kalashri
Posts: 1
Joined: 2013-02-22T03:16:40-07:00
Authentication code: 6789

I want to store output of exec command in array.

Post by kalashri »

I am running following code.In this code i am extracting all images from pdf.
In this code i am getting all extracted images in my "site" folder from where i am running my php script.

exec("convert -scale 1500x1000 ".$pdf[$i]. " img%d.png");

Now i want to store all the images into paticular array.
because i need to pass that array i.e all the images into another folder on ftp.

Or is there any another way to store all image's as output into a variable or array ?
Post Reply