New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for dev server embedded in PHP >= 5.4 #1348
Comments
Done. Usage (in console):
Replace 8888 with any port you like. Note: change |
On php 5.3 shows a blank page. Perhaps the problem in this line: |
@devkont, yes, exactly, this is PHP 5.4 syntax. Should be: $tmp = explode('?', $_SERVER['REQUEST_URI']);
$REQUEST_FILENAME = mb_substr($tmp[0], 1); |
But |
But the error in the syntax of all will be determined (on PHP 5.3). |
@devkont thanks! Fix committed. |
Not working in PHP 5.2.17 as used closures (line 24). |
Replaces closure with lambda for use with PHP 5.2.*
PHP >= 5.4 comes with a built-in web server which is easy to use for development when you don't need a real webserver on your computer.
Pros:
php -S localhost:8888
in a project's directory and your project is up. Ctrl+C to shut it down.Cotonti already installs and runs with the embedded webserver, but SEF URLs don't work yet. This is to be solved.
The text was updated successfully, but these errors were encountered: