How to check if popen() actually finds and runs executable and fwrite() passes data?

I have an executable written in C which reads some data thru scanf. I wanna call it from PHP using popen() and pass data using fwrite(). How will I know if popen finds and executes file ad fwrite() really writes to the executable's input. I mean, my PHP script to do this task doesn't work

Category:php Views:10 Time:2018-12-27
Tags: php popen

Related post

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.209 (s). 11 q(s)