PHP 5.4 has the built-in server (php -S localhost:8080). I'd like to be able to "create_server" (or similar, clearly don't know the function name) from within a PHP script (and without resolving to system, system_exec, exec, or backticks), but I don't see that in the documentation. Is this possible?
-
2By "call this", what do you mean exactly? Start up an instance of it? Note that the built-in web server is really only designed for testing and demonstration purposes.IMSoP– IMSoP2014-03-04 13:11:19 +00:00Commented Mar 4, 2014 at 13:11
-
1How exactly do you intend to run php script anyway, if your php server is not up and running?dkasipovic– dkasipovic2014-03-04 13:12:07 +00:00Commented Mar 4, 2014 at 13:12
-
Perhaps you're looking for this? stackoverflow.com/questions/8377178/…Steve– Steve2014-03-04 13:12:42 +00:00Commented Mar 4, 2014 at 13:12
-
1I have only one question - why? (answering this question may help to understand original issue and resolve it in proper way). Or is it just curiosity?Alma Do– Alma Do2014-03-04 13:27:26 +00:00Commented Mar 4, 2014 at 13:27
-
@AlmaDo I'd like to be able to run the server within another process. I'd like the other process to be written in PHP.cwallenpoole– cwallenpoole2014-03-04 15:41:34 +00:00Commented Mar 4, 2014 at 15:41
|
Show 5 more comments