INERT INTO
SQL:
1234INSERT INTO `userTable` (`user_id`, `user_name`) VALUES(1, 'dsf'),(2, 'fgy'),(3, 'faad');
PHP:
123456789101112$a = 1;while (5 == $a){ if (1 == $a) $sql = "INSERT INTO tbl_name (col1,col2) VALUES ($a,$b)"; else $sql .= ",($a,$b)"; $a++; $b++;}mysql_query($sql);
UPDATE
123456789101112UPDATE categories SET display_order = CASE id WHEN 1 THEN 3 WHEN 2 THEN 4 WHEN 3 ...
参照微软官方教程成功安装好bash之后,每次在开始菜单都没发现有 Bash on Ubuntu on Windows的快捷方式&应用图标,也就是这个:
问了官方没回复,找到中文的相关问题解决方案一篇,不过尝试了并没有解决;之前不止一次一台电脑尝试重新安装Windows 10,也一直么看到过开始菜单上的这个图标。
问题原因暂且放一边,找到了国外的解决方案,简单的说,这篇文章提供了两种解决方案:
1.提供Bash on Ubuntu on Windows的文件下载,其实这个图标也就是个快捷方式,指向bash.exe这个执行文件,下载下来后随便放
2.从零开始一步一步的手动创建这个文件。
老外文章写的很详细,具体操作可参考。
问题找到了,见下图:
微软在生成这个快捷方式的时候,坑爹的用了全角的点,也就是句号分隔扩展名!!!
将php.ini 中的
1expose_php = On
改为
1expose_php = Off
关于expose_php这个选项:
123456; Decides whether PHP may expose the fact that it is installed on the server; (e.g. by adding its signature to the Web server header). It is no security; threat in any way, but it makes it possible to determine whether you use PHP; on your server or not.; http://php.net/expose-php
还是迁移本博客出现的问题,配置好之后访问总是403,翻了一眼错误日志,发现提示错误:
1AH01630: client denied by server configuration:
查了一下,原来是apache 2.2和2.4的配置文件发生了变化,简单摘录如下:
1234567891011121314151617181920212223Deny All 2.2 configuration: Order deny,allow Deny from all 2.4 configuration: Require all deniedAllow All 2.2 configuration: Order allow,deny Allow from all 2.4 configuration: Require all grantedAllow Host 2.2 configuration: Order Deny,Allow Deny from all ...