博客园  :: 首页  :: 新随笔  :: 订阅 订阅  :: 管理

备忘-VSCODE、apache配置

Posted on 2019-07-16 11:03  PHP-张工  阅读(673)  评论(0编辑  收藏  举报

一个像素点的光标:https://files.cnblogs.com/files/zjfree/mouse.zip

VSCODE配置备忘:

{
    "editor.fontLigatures": true,
    "editor.fontFamily": "'Fira Code', Consolas, 'Courier New', monospace",
    "php.validate.executablePath": "D:\\xampp\\php\\php.exe",
    "window.zoomLevel": 0,
}

Fira Code字体下载:https://files.cnblogs.com/files/zjfree/FiraCode.zip

VSCODE扩展:

Bracket Pair Colorizer 彩色分隔
PHP Intelephense
PHP IntellisSense

apache配置:

<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>

.htaccess 重定向

Header add Access-Control-Allow-Origin "*"
RewriteEngine on

Rewriterule ^(\w+)$ /index.php?_=$1 [QSA,L]
Rewriterule ^(\w+)\.\.(\w+)$ /index.php?_=$1::$2 [QSA,L]

.htaccess 禁止访问

<Files ~ ".*">
order allow,deny 
deny from all
</Files>
MYSQL  find_in_set   
find_in_set(id, id_list)   在 id_list(使用逗号隔开的字符串)中查找id存在位置;