-1

I'm trying to execute a PHP Script and run it from a C++ program here's my code C++:

cout << std::system("php -f http://www.php.net/manual/en/function.file-exists.php");

but it gives me this in the cmd window 'php' is not recognized as an internal or external command, operable program or batch file.

any herlp? thank you

1
  • Do you have php installed on your system? I think yes, but if you want to call php so, you have to register an environment variable. Take a look at this link Commented May 30, 2014 at 22:15

1 Answer 1

1

The PHP executable obviously isn't in your path.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.