lavalite

文档地址:https://lavalite.org/docs/master/installation
github地址:https://github.com/LavaLite/cms

基本要求:
– PHP >= 7.1
– OpenSSL PHP Extension
– PDO PHP Extension
– Mbstring PHP Extension
– Tokenizer PHP Extension
– Fileinfo PHP Extension
– GD Library
– Imagick PHP Extension

安装:
composer create-project LavaLite/cms –prefer-dist website
运行命令:
php artisan lavalite:install

php artisan key:generate // run this command if key not generated while installing.

后台地址:http://path-to-route-folder/public/admin
用户界面:
http://path-to-route-folder/public/user
User: user@lavalite.org
Password: user@lavalite

web页面:
http://path-to-route-folder/public/client
User: client@lavalite.org
Password: client@lavalite

php使用生成器读取超大文件

<?php function getLines($file) { $f = fopen($file, 'r'); try { while ($line = fgets($f)) { yield $line; ...

阅读全文

php获取字符串里面的图片,xpath方式

代码 <?php $html = <<<str <html> <head> <title>123</title> </head> <body> <img src=&quo...

阅读全文

Thinkphp5 in查询结果按照in里面的顺序排

或许有人会注意过,但我以前真不知道 SQL: select * from table where id IN (3,6,9,1,2,5,8,7); 这样的情况取出来后,其实,id还是按1,2,3,4,5,6,7,8,9,排序...

阅读全文

欢迎留言