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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

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)

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.

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.

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

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.

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.

How to buy Bitcoin on Alipay? Alipay Buy BTC Complete Tutorial How to buy Bitcoin on Alipay? Alipay Buy BTC Complete Tutorial Mar 05, 2025 pm 06:03 PM

Alipay and Bitcoin Transactions: A safe and convenient purchasing guide Alipay is a widely used payment tool in China. Although it does not support direct purchase of cryptocurrencies such as Bitcoin, you can complete transactions indirectly through some channels. This article will guide you on how to use Alipay to purchase Bitcoin safely and conveniently, and explain the risks that need to be paid attention to. The most common way to purchase Bitcoin indirectly through cryptocurrency exchanges is to trade through cryptocurrency exchanges that support Alipay. This method usually requires you to buy USDT (stablecoin) first and then exchange USDT for Bitcoin. The following is an example of Ouyi OKX Exchange, explain the operation steps in detail: Register Ouyi OKX account: Visit Ouyi OKX official website (click to register), register an account using email address, and complete

Ranking of the best exchanges in the world Ranking of the best exchanges in the world Mar 13, 2025 pm 02:54 PM

This article aims to help users choose the right cryptocurrency exchange. Among many exchanges such as Binance, OKX, and Gate.io, choosing a reliable and efficient platform is crucial. The article will conduct in-depth analysis and comparison of the world's top cryptocurrency exchanges such as Binance, OKX, Coinbase, Kraken, KuCoin, Gate.io, Huobi Global, Bitfinex and Bitstamp based on eight aspects: security, liquidity, transaction fees, user experience, currency selection, trading functions, compliance and reputation, and ultimately help users to follow their own needs (for example: novice or experienced traders, trading currency types, and security needs.

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".

See all articles