Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

man php does not mention router script usage. #10964

Closed
@ash-m

Description

@ash-m

Description

The current documentation forman php (relevant parts):

php(1)                                       Scripting Language                                      php(1)NAME       php - PHP Command Line Interface 'CLI'       php-cgi - PHP Common Gateway Interface 'CGI' commandSYNOPSIS       [-- snip --]       php [options] -S addr:port [-t docroot]DESCRIPTION       [-- snip --]       PHP also contains an built-in web server for application development purpose. By using the -S option       where addr:port point to a local address and port PHP will listen to HTTP requests on  that  address       and port and serve files from the current working directory or the docroot passed by the -t option.       [-- snip --]OPTIONS       [-- snip --]       --server addr:port       -S addr:port   Start built-in web server on the given local address and port       --docroot docroot       -t docroot     Specify the document root to be used by the built-in web server

The documentation says:

If a PHP file is given on the command line when the web server is started it is treated as a "router" script. The script is run at the start of each HTTP request. If this script returnsfalse, then the requested resource is returned as-is. Otherwise the script's output is returned to the browser.

There is no mention of therouter script in theman, nor does this really specify how it interacts with-t.

PHP Version

PHP 8.1.17

Operating System

Ubuntu 22.04.2 LTS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp