Questions tagged [php-builtin-server]

Built-in web server provided by the CLI SAPI since PHP/5.4.0

Reference: Built-in web server

54 questions
0
votes
3 answers

Pass entire URL to $_GET variable in PHP built-in server

I'm running a PHP built-in server with php -S 127.0.0.1:80 index.php I want to pass the entire URI string to a field called "url" in the $_GET array. When I enter http://localhost/thisIsAURLString, I want var_dump($_GET); to return array(1) {…
Magnus
  • 589
  • 8
  • 26
0
votes
1 answer

Where to see PHP build-in web server log or something?

I took someone's PHP project with a bunch of PHP files and ran it with the following command C:\tools\php71\php.exe -S localhost:8080 -t PATHTOSOMELOCATION Now, when I am opening http://localhost:8080 I am getting error 500. Where to see what is…
Dims
  • 47,675
  • 117
  • 331
  • 600
0
votes
0 answers

PHP buit in server error

For local development I'm using the php built in server. Everythig works finde so far, but if in a url is a point or a file suffix the built in server returns a 404 even before it hitting my application Im using the phalcon framework This is my…
ghovat
  • 1
  • 2
0
votes
1 answer

Is it better to use PHP built-in server or apache2 for Symfony2 dev environment

What is the better approach for keep a long-term stable dev environment ? Should I prefer use server:runor my apache2 server on app_dev.php for develop ? Because I work on client side , I know how much use a non-fixed base url can be ambiguous and…
chalasr
  • 12,971
  • 4
  • 40
  • 82
0
votes
0 answers

$_SERVER['SCRIPT_NAME'] is /index.html when requesting any path with PHP built-in server and Symfony 2

I have this weird behaviour where if the path does not contain a period (/whatever-something/a-page for example), the $_SERVER variable SCRIPT_NAME is replaced with index.html or index.php if they exist in the root folder. SCRIPT_NAME is the correct…
Fabien Warniez
  • 2,731
  • 1
  • 21
  • 30
0
votes
3 answers

How to run a Symfony app without using the built-in server?

In the documentation is clearly explained how to run the built-in server to run a Symfony App. Ok, all works well and i'm very happy, but: How can i run a Symfony App without using the server but simply something like…
Aerendir
  • 6,152
  • 9
  • 55
  • 108
0
votes
2 answers

Downsides of working with php's built-in server.

I would like to use the php built-in server just for dev environment, as opposed to starting WAMP everything, which consumes more resources, and since my site does not depend on any of the apache modules, I was able to do some work just fine, also…
iOi
  • 403
  • 3
  • 8
  • 26
-1
votes
1 answer

Problems with url in symfony

I'm not sure where it comes this bug but now if I try to load my project in the browser with this url "http://localhost:8000" appears just a blank page. I tried to put a die("message") in the first line of app.php and also in the app_dev.php but…
-1
votes
1 answer

Windows PHP 5.6 built in server SQLite3

I have PHP 5.6 installed on windows 7 and I used the built in server to run websites locally for testing. I want to connect to a Sqlite3 file and I've uncommented the appropriate lines in the php.ini file in my C:\Program Files\php folder. I still…
mo_maat
  • 2,110
  • 12
  • 44
  • 72
1 2 3
4