Home Backend Development PHP Tutorial 小弟我写了一个程序,但是访问一会,就会把apache卡死,只有重起才会好

小弟我写了一个程序,但是访问一会,就会把apache卡死,只有重起才会好

Jun 13, 2016 pm 01:21 PM
amp ok start

我写了一个程序,但是访问一会,就会把apache卡死,只有重起才会好。
我想问问,这个是什么原因引起的哟?
我怎么调试呢,找出问题呢?

------解决方案--------------------
至少需要这样:
设一全局变量 ok 令
ok = 1;
.....
if( s ok = 0;
$.getJSON(getDataUrl,{start:start,end:end,id:typeId},function(e){
scrollData = e;
...
scrollData='';
ok = 1;
}

其意义在于:当ajax数据没有返回时,不进行下一轮请求

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1662
14
PHP Tutorial
1262
29
C# Tutorial
1235
24
What should I do if docker start cannot start? What should I do if docker start cannot start? Oct 21, 2022 pm 03:43 PM

Solution to docker start failure: 1. Check the running status, and then release the occupied memory through the "echo 3 > /proc/sys/vm/drop_caches" command; 2. Use "$netstat -nltp|grep .. ." command to check whether the port has been occupied. If it is found to be occupied after going online, change it to an available port and restart.

What to do if node start reports an error What to do if node start reports an error Dec 29, 2022 pm 01:55 PM

Solution to node start error: 1. Execute "node xx.js" directly in the terminal; 2. Add start startup item "scripts": {"test": "echo \"Error: no test specified\" && exit 1 ","start":"node service.js"}"; 3. Re-execute "npm start".

What coin is AMP? What coin is AMP? Feb 24, 2024 pm 09:16 PM

What is AMP Coin? The AMP token was created by the Synereo team in 2015 as the main trading currency of the Synereo platform. AMP token aims to provide users with a better digital economic experience through multiple functions and uses. Purpose of AMP Token The AMP Token has multiple roles and functions in the Synereo platform. First, as part of the platform’s cryptocurrency reward system, users are able to earn AMP rewards by sharing and promoting content, a mechanism that encourages users to participate more actively in the platform’s activities. AMP tokens can also be used to promote and distribute content on the Synereo platform. Users can increase the visibility of their content on the platform by using AMP tokens to attract more viewers to view and share

What are the Bitcoin trading platforms? 2025 Top Ten Bitcoin Trading Platforms Ranking What are the Bitcoin trading platforms? 2025 Top Ten Bitcoin Trading Platforms Ranking Feb 12, 2025 am 07:24 AM

The top 10 Bitcoin trading platforms in 2025 are: Binance: Industry-leading trading volume, a wide range of crypto asset choices. OKX: Strong liquidity, low trading fees, advanced contract trading. Gate.io: Extensive crypto asset selection, low transaction fees, and support for international payments. Kraken: Highly secure, highly liquid, and provides fiat currency pairs. Gemini: Super secure, regulated in the United States, professional services for institutional investors. Bitstamp: an old trading platform, regulated, and highly liquid.

Top 10 cryptocurrency trading platforms Recommended by the top ten cryptocurrency trading platform app rankings Top 10 cryptocurrency trading platforms Recommended by the top ten cryptocurrency trading platform app rankings Mar 17, 2025 pm 06:00 PM

Recommended top ten cryptocurrency trading platforms: 1. OKX, 2. Binance, 3. Gate.io, 4. Huobi Global, 5. Kraken, 6. Coinbase, 7. KuCoin, 8. Bitfinex, 9. Crypto.com, 10. Gemini, these exchanges have their own characteristics, and users can choose the platform that suits them based on factors such as security, fees, currency selection, user interface and customer support.

Top 10 Currency Exchange Apps 2025 Currency Exchange Recommended Collection Top 10 Currency Exchange Apps 2025 Currency Exchange Recommended Collection Feb 27, 2025 pm 06:21 PM

Top 10 Cryptocurrency Exchange Applications (2025): Binance: The maximum liquidity and asset options are wide. OKX: The first choice for cryptocurrency derivatives trading. Gate.io: specializes in spot trading and has a wide range of asset classes. Bitget: A choice for innovation in social trading and automated strategy.

Top 10 Bitcoin Exchanges with the Most Trading Volume in 2025 Top 10 Bitcoin Exchanges with the Most Trading Volume in 2025 Mar 18, 2025 am 11:18 AM

Recommended safe and reliable bitcoin exchanges include Binance, OKX, Gate.io, Coinbase, Kraken and Huobi. 1. Binance supports more than 600 cryptocurrencies and provides multiple trading functions. 2. OKX is suitable for professional investors and provides a variety of trading methods. 3.Gate.io supports 1,400 cryptocurrencies and is highly secure. 4.Coinbase is suitable for beginners and has a user-friendly interface. 5.Kraken is known for its security and is suitable for institutional investors. 6.Huobi performed well in the Asian market.

Detailed guide to check transaction records after virtual currency is cancelled Detailed guide to check transaction records after virtual currency is cancelled Feb 21, 2025 pm 10:21 PM

If you have logged out of your virtual currency account but still need to query your transaction history, you can follow the following guide: First, check whether there is an option to restore your account. Usually, a certain time window is provided when you log out of an account, allowing the user to recover. If the recovery period is missed, you can contact the platform customer service for help. If the platform cannot restore the account, the transaction history cannot be checked.

See all articles