LMLPHP后院

Linux下screen命令使用教程

会话转为后台运行可以使用快捷键 ctrl+a, d 。如下示例: root@may:~# screen -r 6293.pts-6.may ... root@may:/srv/www/webchat.lmlphp.com# screen -ls There are screens on: 15985.pts-2.may (07/15/2015 12:32:44 PM) (Attached) 6293.pts-...

解决PHP PDO limit占位符无效

PDO::PARAM_INT。 这个坑被前人踩了无数次啦,这个问题有人说算 Bug,最近我还是踩了一次。因为我在 PHP7 和 PHP5 之间经常来回使用,导致开发环境一切换就会出一些小问题。 使用 LMLPHP 框架在写法上需要注意一点就能避免这个问题,如下示例: $this->db->select($table_name, '*', '1=1 order by id desc limit ?, ?', [...

nginx client intended to send too large body

ING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The ECDSA host key for [lmlphp.com]:has changed, and the key for the corresponding IP address [192.46.218.18]: is unknown. This co...

MySQL数据库表空间大小查询SQL

ex_length/1024/1024),2), 'MB') as index_length FROM information_schema.tables WHERE table_schema = 'lmlphp' AND table_name = 'lmlphp_table'; 下面的更实用 SELECT table_name, CONCAT(ROUND(SUM(data_length/1024/1024)...

PHP 确实不太适合处理稍微深入的细活

,你去看看市面上那些 Python,Go 之类语言的教程网站就知道了,他们是用 PHP 做的;但是 PHP 语言本身包含的一些代码库质量比较差,过了这么多年,依然没有人能撬动它。如下报错,我表示无解:LMLPHP Fatal Error:imagecreatefromstring(): gd-png: fatal libpng error: bad adaptive filter value LMLPHP F...

一个值得纪念的时刻

突破一亿次请求。时间 2021-07-23 18:15:02 (+08:00)。不包含静态文件,图片等。id : 100000000 host : www.lmlphp.com uri : /user/16975/article/content/578354 addr : ***.***.37.4 method : GET x_forward_for : user_agent : Mozilla/5.0 **...

Spring Boot Jpa 使用原生 SQL 和动态分页

method public abstract org.springframework.data.domain.Page Jpa 的原生 SQL 对命名没有严格的要求,如下示例:package com.lmlphp.test; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data...

遇到新的报错

总是能遇到一些新的报错啊!LMLPHP Notice:[8]exif_read_data(FOOUh0CTk): Potentially invalid endianess, trying again with different endianness before imminent failure. in line 619 [ 2021-08-16T19:52:14+08:00 ] LMLPHP Notic...

LMLPHP Fatal Error:Array and string offset access syntax with curly braces is deprecated

PHP7.4 不允许使用花括号来访问字符串偏移。报错原因是: PHP7.4 不再能够使用花括号来访问数组或者字符串的偏移 解决办法:将 {} 改成 [] 新浪 SAE 报错的代码: if( in_array($parameter, array('pic', 'image')) && $value{0} == '@' ) { 这代码风格真的很像我刚开始的时候: 我最初习惯 if( in_array() ) { ...

孩子的教育,百闻不如一见

,人家可以直接尿在碗里的这种傻。观察能力也是极差的,很多事务你搞了一整天,它完全不知道。谷歌是个不能理解的搜索引擎,或者可以说是傻逼。id : 121344560 uri : https://www.lmlphp.com/8ZRfgVo9PVH8gW6EICPUpujSpd3n3qbcM8x3DGOgeENCjdLxEfyVVBl7/cogPT6E194nTOsthu1u5TV+hNLbA== addr : ...
2024-05-04 12:59:24 1714798764 0.006054