


This problem is not easy to handle, and it has confused many webmasters for a long time.
Mainly occurs on Windows hosting servers.
In php(as the current mainstream development language)official, http://bugs.php(as the current mainstream development language).net/
It is also possible to find two to three thousand pages of reports. Their officials are also at a loss. After 11 minor versions, they still have not completely solved it
http://bugs.php (as the current mainstream development language) .net/search.php(as the current mainstream development language)?cmd=display&search_for=php(as the current mainstream development language)+has+encountered+ an+access(favorite for small websites)&x=8&y=9
Currently, I will provide you with my maintenance experience in the past few years and some of my private solutions
First possibility:
Remove the eaccelerator extension in php(as the current mainstream development language)
This can solve your problem, but it may increase the burden on the system
Because eaccelerator is mainly to save money System resource stuff
The specific method is to find php(as the current mainstream development language).ini
If I help you configure it, it is usually in c:/php(as the current mainstream development language) Mainstream development language) /php (as the current mainstream development language) .ini or c:/winnt/php (as the current mainstream development language) .ini Or c:/windows/php(as the current mainstream development language).ini
Remove
zend_extension_ts="C:php(as the current mainstream development language)extensionseaccelerator_win_xxx.dll"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="c: emp"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
ea was mainly developed in a Unix environment, but the author ignored that windows actually does not have the memory sharing mechanism of the u host like the u host.
This bug has been submitted to them, hoping for 0.9 .5 can solve
Of course, if the problem with your machine is not serious, it is recommended to keep it. ea is a very excellent piece of php(as the current mainstream development language)Caching + acceleration software
Use it with zo , will reduce the system burden by about 50%-80%, and increase the load capacity, speed and efficiency by about 200%
The second possibility
session_save_path needs to set an actual physical path, and the directory needs all permissions of everyone, similar to 0777 of U host
The third possibility
c:/winnt/temp or c:/windows/temp
also requires all permissions of everyone, similar to 0777 of U host
The fourth possibility
Your memory is seriously insufficient. Check it. If there is a problem, please add more memory. It is best to add two memory at a time.
For example, add 1G of memory. It is best to add 2 Exactly the same 512M. Otherwise, the dual channel is not enabled and the effect is mediocre
The fifth possibility
The combination of ZendOptimizer and php(as the current mainstream development language)is not very good
Try another version
It is relatively stable at the moment The combination is
php(as the current mainstream development language)4.3.11+zo 2.5.10a
or php(as the current mainstream development language)4.4 .1+zo 3.0 beta2
The sixth possibility
This mostly belongs to users who use win2003
They have set restrictions in the application pool
For example, how long it takes to recycle, how much maximum memory is used, etc.
These settings will inevitably cause this classic php(As the current mainstream development language)Error
Wooden has been tested for hundreds of times, and we can guarantee that problems will appear here.

php把负数转为正整数的方法:1、使用abs()函数将负数转为正数,使用intval()函数对正数取整,转为正整数,语法“intval(abs($number))”;2、利用“~”位运算符将负数取反加一,语法“~$number + 1”。

实现方法:1、使用“sleep(延迟秒数)”语句,可延迟执行函数若干秒;2、使用“time_nanosleep(延迟秒数,延迟纳秒数)”语句,可延迟执行函数若干秒和纳秒;3、使用“time_sleep_until(time()+7)”语句。

php除以100保留两位小数的方法:1、利用“/”运算符进行除法运算,语法“数值 / 100”;2、使用“number_format(除法结果, 2)”或“sprintf("%.2f",除法结果)”语句进行四舍五入的处理值,并保留两位小数。

判断方法:1、使用“strtotime("年-月-日")”语句将给定的年月日转换为时间戳格式;2、用“date("z",时间戳)+1”语句计算指定时间戳是一年的第几天。date()返回的天数是从0开始计算的,因此真实天数需要在此基础上加1。

php字符串有下标。在PHP中,下标不仅可以应用于数组和对象,还可应用于字符串,利用字符串的下标和中括号“[]”可以访问指定索引位置的字符,并对该字符进行读写,语法“字符串名[下标值]”;字符串的下标值(索引值)只能是整数类型,起始值为0。

方法:1、用“str_replace(" ","其他字符",$str)”语句,可将nbsp符替换为其他字符;2、用“preg_replace("/(\s|\ \;||\xc2\xa0)/","其他字符",$str)”语句。

php判断有没有小数点的方法:1、使用“strpos(数字字符串,'.')”语法,如果返回小数点在字符串中第一次出现的位置,则有小数点;2、使用“strrpos(数字字符串,'.')”语句,如果返回小数点在字符串中最后一次出现的位置,则有。

在php中,可以使用substr()函数来读取字符串后几个字符,只需要将该函数的第二个参数设置为负值,第三个参数省略即可;语法为“substr(字符串,-n)”,表示读取从字符串结尾处向前数第n个字符开始,直到字符串结尾的全部字符。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version
