Hi I have been approached by a client to integrate a none php program into a php site. Without giving too much away I need to pass 2 files to a none php program. Make the program perform some actions then return a merged file. I then need to pick it up in the script and process it further within the php script. Is this possible at all. Thanks
Generally, yes. But it's impossible to say in your case with the information you're giving. What kind of program is this "none PHP file"? What does it return? Does it return anything at all? Have a look at exec().
Well I am a little bound by an NDA but basically I want to pass 2 jpegs to a programme that merges these jpegs and returns the finished product. The problem is that there are the user defined inputs within the program that decide how the pics are merged. is this something I would need to approach the software developer about.
If the server enables that non php language, then you can use shell commands. For example, if you want to run php files, you can say: shell_exec("php path/to/file/filename.php"); So, you will be able to run that file in the same way. Just know what the program name is.
The images are not just purely merged. AS I said its a little difficult to say due to the NDA just trying to get a feel for if its possible. I can see without giving more detail it will be hard for you to answer but I am unable to give more dets Thanks for all your help anyway. Liam
Just send the merged image to the PHP-script, and have the PHP-script do whatever needed on the image and return the image. On unix/linux you can send the image to a PHP-script on a server (local or remote) via the curl command, and if you then have the PHP-script spit out the resulting image it's a simple download to get the finished picture.