![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
m0_60620974
这个作者很懒,什么都没留下…
展开
-
apache 开启 rewrite模块 ,及使用.htaccess
1:使用a2enmod rewrite 开启 rewrite模块执行ls /etc/apachea/mod-enabel/可以看到这个目录已经有rewrite.conf文件这里实际加载的是 /usr/lib/apache2/modules下的mod_rewrite.so文件2:编写apache配置文件apache2在我机器上默认的目录是/etc/apache/apache2.conf在配置文件中加入以下代码<Directory /var/ww>Opt原创 2021-08-02 02:19:06 · 1108 阅读 · 0 评论 -
PHP动态添加类属性,mysql表转php json。
<?phpclass User{function __construct(){$user='test';$host=''localhost;$pass=''1234;$db='test';$conn=mysqli_conn($host,$user,$pass,$db);$query=mysqli_query($conn,'show columns from user');while($row=mysqli_feath_array($query,MYSQLI_ASSO原创 2021-08-01 00:44:27 · 155 阅读 · 0 评论