note 125230 added to yaf.tutorials
| From: | YangQingRong at wudimei dot com | Date: | Thu, 30 Jul 2020 12:07:32 +0000 |
| Subject: | note 125230 added to yaf.tutorials | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-214912@lists.php.net to get a copy of this message | ||
nginxéåä¸ç¥ä¸ºä»ä¹æ»å¾ªç¯
rewrite ^/(.*) /index.php/$1 last;
/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/Index
åæ¥ææ¹ææ¥è¯¢å符串就解å³äºã
location / {
index index.php index.html index.htm;
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php?_path_info=/$1 last;
}
}
å¨index.phpä¸ï¼æquery string "_path_info"
æ¾å°$_SERVERåéä¸ã
<?php
ini_set("display_errors",true);
error_reporting(E_ALL|E_ERROR);
//print_r($_SERVER);
$_SERVER['PATH_INFO']=@$_GET['_path_info'];
//å è¿ä¸è¡ï¼yafåªè®¤PATH_INFO
define("APPLICATION_PATH",dirname(__DIR__));
$app = new Yaf\Application(APPLICATION_PATH.'/conf/application.ini');
$app->bootstrap()->run();
?>
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.166.36 (proxied: 117.136.34.98)
----
Manual Page -- http://php.net/manual/en/yaf.tutorials.php
Edit -- https://master.php.net/note/edit/125230
Del: integrated -- https://master.php.net/note/delete/125230/integrated
Del: useless -- https://master.php.net/note/delete/125230/useless
Del: bad code -- https://master.php.net/note/delete/125230/bad+code
Del: spam -- https://master.php.net/note/delete/125230/spam
Del: non-english -- https://master.php.net/note/delete/125230/non-english
Del: in docs -- https://master.php.net/note/delete/125230/in+docs
Del: other reasons-- https://master.php.net/note/delete/125230
Reject -- https://master.php.net/note/reject/125230
Search -- https://master.php.net/manage/user-notes.php