Jump to content

Passing variable along with exe in passthru() or system()


sksingh

Recommended Posts

I am writing a php code in which i am trying to implement the following

- I have made a exe program in c++ which takes a string input from the user and then displays the output;

- Now in php, i am calling this program using passthru(), system(). like passthru('/var/php/hash')

- if i pass the string along with it works like passthru('/var/php/hash "hello"')

- but i dont want this, i want user to input a string and then pass that string as variable along with passthru command.

i will be greatfull if someone can help me.

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.