Skip to content
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

php -S compatibility #106

Open
1 task
webdevelopers-eu opened this issue Feb 7, 2024 · 1 comment
Open
1 task

php -S compatibility #106

webdevelopers-eu opened this issue Feb 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@webdevelopers-eu
Copy link

Describe the feature

I would like to be able to run WikiDocs ad-hoc without setting up Apache/NGINX just using PHP's inbuilt web server: php -s localhost:8080 -t WikiDocs/

I fixed it by placing the following code into config.inc.php

if (!isset($_GET['doc'])) {
	$_GET['doc']=ltrim($_SERVER['PATH_INFO'],"/");
}

Please consider it to make it part of WikiDocs. It may be very helpful to have some apps that are able to spin up PHP inbuilt server to provide users with WIKI.

Is your feature request related to a problem? (optional)

The WikiDocs seems to unnecessarily rely on rewriting using Apache/NGINX to set the $_GET['doc'] request variable.

Screenshots (optional)

No response

Extra fields

  • I'd like to work on this feature
@webdevelopers-eu webdevelopers-eu added the enhancement New feature or request label Feb 7, 2024
@acastrovargas
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants