56 questions
0
votes
0
answers
96
views
Eclipse PHP built in server not finding project files
I installed Eclipse with PDT. I installed PHP 8.3 with chocolatery. I setup a built in server inside eclipse to run PHP. I added my PHP project folder as a COnfigured resource in the server. I try to ...
1
vote
1
answer
129
views
Can the php -S command be used to setup remote access to application?
I have a school project where I need to host and run a php program. I have having difficulties getting it to run as expected in Apache, however, when I run it with php -S, it runs like a champ. I ...
0
votes
1
answer
865
views
How can I make the PHP Built-in Webserver access sub-directories?
I have been trying to get the php built-in webserver to read sub directories. My file structure is website --> html, css, php. I set the website folder as the root using php -S localhost:8000. The ...
0
votes
1
answer
275
views
Way to create an HTTP proxy to convert relative paths to absolute paths
So, let's say that I am trying to proxy somesite.com, and I want to change this:
<!doctype html>
<html>
<body>
<img src="computerIcon.png">
</body>
</...
0
votes
1
answer
74
views
Randomized $_SESSION token is changed before validation when PHP file is specified in built-in server
I am generating a unique token and saving it in a session variable on every request (in a typical CSRF protection fashion). Token is refreshed after checking it for validation with the POSTED token ...
3
votes
0
answers
1k
views
VSCode - Launch configurations - PHP built-in server : stop after debug
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 :
...
1
vote
0
answers
100
views
PHP built-in webserver ruins foreign characters
I recently started using PHP's built-in webserver a lot more.
Unfortunately serving pages through it seems to have an effect on pages that retrieve data from our oracle database containing ÆØÅ.
The ...
3
votes
2
answers
3k
views
Fatfree routing with PHP built-in web server
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 ...
6
votes
4
answers
6k
views
Using PHP's Built-In Web Server with Symfony's Production Mode
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 ...
0
votes
3
answers
684
views
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 ...
10
votes
1
answer
7k
views
Is it possible to use xdebug on php built-in web server?
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 ...
2
votes
1
answer
572
views
I cannot reach php built-in server running on a VM
I have a too basic php application that I wante to run through the built-in php server and that lives in my VM in my windows machine:
<?php
use \Psr\Http\Message\ServerRequestInterface as Request;
...
0
votes
1
answer
113
views
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:...
4
votes
2
answers
9k
views
Set up Eclipse PDT with PHP's built-in server
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 ...
3
votes
1
answer
2k
views
PHP built-in web server is not finding assets
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 ...
4
votes
3
answers
4k
views
When PHP built in server crashes, the port is still in use
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]
...
3
votes
1
answer
2k
views
Does the PHP Built-in Webserver have a memory limit?
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 ...
2
votes
3
answers
2k
views
Phalcon Micro app doesn't route correctly with query strings
I'm trying to develop a RESTful API with a Micro app in Phalcon. Now I'm working in the social login with the Facebook SDK for PHP, but I find that when Facebook redirects me to my callback (with a ...
5
votes
1
answer
2k
views
php built-in webserver caching issue
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...) ...
-1
votes
1
answer
1k
views
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 ...
3
votes
2
answers
2k
views
Running a background process with shell_exec from the PHP built-in webserver
The PHP built-in webserver does not seem to handle shell_exec()ing background processes properly; the request hangs until the background process is complete, even if it's explicitly placed in the ...
0
votes
0
answers
495
views
$_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 ...
3
votes
1
answer
1k
views
xdebug not working on netbeans with built-in server using laravel
I ran into an issue when trying to debug in NetBeans. I set breakpoints and click on a Debug Project button (Ctrl+F5), but no debug info is shown in the IDE.
Also, phpinfo(); doesn't provide me with ...
8
votes
3
answers
4k
views
PHP Built-In Server Can't cURL
I have a relatively simple script like the following:
<?php
$url = "localhost:2222/test.html";
echo "*** URL ***\n";
echo $url . "\n";
echo "***********\n";
echo "** whoami *\n";
echo exec('...
0
votes
3
answers
5k
views
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 ...