English 中文(简体)
错误发生时的PH车坠毁服务器
原标题:CakePHP crashes server when errors occur

我有CakePHP(1.3.2),使用统一Server(主要是WAMPP服务器),出于某种原因,CakePHP在出现某些错误时使整个服务器坠毁,迫使我重新启用。 这令人感到非常不安,因为很少在浪费时间的整个一分钟内产生小的打字结果。

我只字不提原因,但似乎,如果某一页部分投放,而且出现错误,该页面就坠毁了服务器。 震外的文字只处理错误的罚款;在页前坠毁的面包纸。

任何人都这样做了?

问题回答

我以前曾遇到过这个问题,在我看来,如果该变量不是由控制者确定的,那么我常常会试图获取一个变量。

你们需要注意的是,在你试图进入控制区之前,总是从你的控制者那里收取这种费用。

另一种解决办法是,只要你在你看来能够进入一个变量时,即进行“对外”检查。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签