Yes, there's a built-in web server in the upcoming release of PHP 5.4 which you can try out in their release candidates (I found about this just recently too!)
http://php.net/manual/en/features.commandline.webserver.php
What I need help figuring out…
I have a computer with apache2 and php7, I setup the php.ini to use xdebug and its ok, I can debug using an editor.
But I want to debug in another computer that has only php.
I started the server using: php -S localhost:8080
I tried to use the same…
I just created a new Symfony 3.4 application. Per Symfony's docs, I can server my application using PHP's built-in web-server by running
php bin/console server:start
However -- this appears to run the application in development mode. This means…
I am working on a test project involving the PHP's built-in web server and I am testing some ideas.
I want to implement my own caching mechanism for commonly used resources (png,jpg,json,txt, etc...) to reduce the load on the built-in server in…
I'm using PHP built in server like so:
$ composer serve
> php -S localhost:8000 -t public/
But it timed out..?
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "php -S localhost:8080 -t public/"…
I'm using bin/console server:run (or app/console for Sf2 directory structure) to develop applications using Symfony2. Unfortunately on multiple systems it dies eventually (usually because of a segfault).
I've tried multiple PHP versions and…
I usually use Apache as web server to my php applications. But I just discover that php 5.4 came with a built-in web server.
In the first app that I tried to load php -S, I noticed that the rewrite rules aren't enable or don't work properly.…
I'm currently working on a PHP REST API project. I'm new to VSCode, I'm currently trying the capabilities of the IDE.
In development situation, I use the built-in PHP server to run my API, using CLI :
php -S localhost:8000 -t public
I tried to…
I'm learning fatfree's route and found it behaves unexpected.
Here is my code in index.php:
$f3 = require_once(dirname(dirname(__FILE__)). '/lib/base.php');
$f3 = \Base::instance();
echo 'received uri:…
I'm yet a newbie to PHP development, so far I used NetBeans for the job. Unfortunately NetBeans is not the best IDE, and it is unreasonably slow on my Mac.
I'd like to use Eclipse PDT for PHP, as I know and like Eclipse a lot better (I'm coming from…
I have a php project built with Zend Framework 2. In want to start the built-in server to developing with the following command:
sudo php -S localhost:8080 -t public/ public/index.php
All the functionality of Zend Frameowrk 2 are working fine but I…
I am locally hosting PHP scripts in PhpStorm using the "PHP Built-in Web Server" configuration. One script needs much memory, so I added ini_set('memory_limit', 8589934592); # 8GiB at the beginning of it (Setting it works, I checked it with…
Trying to run phalcon 2.0.7 app using built-in http server in php 5.6 and included .htrouter to make URI rewrite working. Everything seems find until I use die() in controller. For the first time it works as expected but when refreshed it throws PHP…