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]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.