@NogDogNov 09.2015 — #Is this being run on a Windows system? (From the "" and the ".exe" suffix I'd guess so, but just wanted to make sure, as the path seems a bit odd for Windows.)
This function can return NULL both when an error occurs or the program produces no output. It is not possible to detect execution failures using this function. exec() should be used when access to the program exit code is required. [/quote]
this program when i run using command prompt this program generates image files. Actually i want to run this code in main code and the image files produced by this program will be displayed.
please give me a solution to run it, it works perfectly using command prompt.
@NogDogNov 10.2015 — #Could it be a permissions issue? (Remember that if the PHP script is being run via the web server, then that is normally its own user, so the executable file may need more global read/execute permissions.)