I am working with a WAMP installation (on Windows).
Do the methods system()
and shell_exec()
only work on Linux machine or are they available on Windows, too? I am trying these methods in Windows but nothing is working.
Asked
Active
Viewed 255 times
-1

Carlos Campderrós
- 22,354
- 11
- 51
- 57

praneeth
- 535
- 1
- 6
- 17
-
They work on windows, what can only mean, that you did something wrong. You should clarify your question. – KingCrunch Jun 28 '11 at 12:36
-
i used pdftohtml converter from from the link http://www.articlediary.com/article/php-script-for-pdf-to-html-conversion-125.html they used system() method in it it doesnt work for me. can u please help me in it – praneeth Jun 28 '11 at 12:38
-
We can, but the code (in form of an [SSCCE](http://sscce.org/), maybe in a new question) will get you way better answers than "please help me" - *we don't know what exactly to help you with*. – phihag Jun 28 '11 at 12:42
-
Without any code or error/notice/unexpected behavior is nearly impossible to find the problem. – KingCrunch Jun 28 '11 at 12:44
3 Answers
2
As you can see in the documentation for system
and shell_exec
, both are supported on all platforms php runs on (otherwise there'd be a notice).

phihag
- 278,196
- 72
- 453
- 469
0
For questions like that the first thing you should of done was look up the documentation found here, where you will find that it doesn't explicitly say its Linux only. The issue you could be having is PHP is in safemode or you need to add rights to CMD for the account php uses.

Declan Cook
- 6,066
- 2
- 35
- 52