我的PHP脚本错误刮的是什么?
脚本错误,如使用未初始化的变量等。
Scripting errors such as using uninitialized variables, etc.
因此,若无密码键入,传递到该函数的是未初始化的变量和脚本错误结果。
Hence, with no password entered, the function is passed an uninitialized variable and a script error results.
此外禁用脚本调试,脚本错误的通知,并防止网站改变您的主页。
Also disables script debugging, script error notification, and prevents sites from changing your home page.
如果您要对状态代码进行控制,就可以设置应用程序来处理脚本错误、非预期的响应以及边缘情况。
If you have a handle on status codes, you can set your application up to deal with a script's errors, unexpected responses, and edge cases.
提供一些提示,以避免在某些具体方面(如语法、脚本解释顺序、自动类型强制等等)出现公用脚本错误。
Provides hints and tips to avoid common script mistakes in specific areas, such as syntax, order of script interpretation, automatic type coercion, and so on.
如果我们仍然希望该功能,或者我们希望得到通知时,脚本错误已经发生,或者我们想知道所有关于脚本错误的细节?
What if we still want that functionality, or we would like to be notified when a script error has taken place, or we would like to know all the details about the script error?
Firebug不仅可以查看脚本错误和XMLHttpRequest信息,还可以度量各种资源(如脚本和图像文件)的加载时间。
You can use Firebug to view not only script errors and XMLHttpRequest information, but also to measure the load times of various resources such as script and image files.
这样可以确保您的用户能够看到脚本所产生的错误。
This ensures that your users see the errors generated by the script.
运行这段脚本你会获得如下错误。
但是,如果在执行脚本时显示某些意外的错误,应该怎么办呢?
But when you execute the script, some unexpected errors are displayed. Now what?
如果这个结果没有出现,脚本将显示错误并退出。
If this does not occur, your script displays an error and exits.
如果不存在,就退出命令或脚本并显示用设置的错误消息。
If doesn't exist, exit the command or script and display the error message set with.
您可以使用这个工具来生成可供您自动应用变更的sql脚本,这可极大地减少错误。
You can use the tool to generate SQL scripts that allow you to apply changes automatically, which can greatly reduce errors.
这样做可以重用经过测试的可靠的代码,避免重复编写脚本代码并减少错误。
Doing so reuses tested and proven code and will save you from repeating script code and making potential errors.
要确保脚本能够应对错误;如果方法调用失败,它会抛出异常。
Be sure your script is protected from an error; if the method call fails, it throws an exception.
显然,应在重新运行脚本之前修复所有错误。
Clearly, any error would be fixed before the script is run again.
因此,您需要更好的方法来跟踪和标识脚本中的错误,需要更好的方法来沟通问题,此外,还需要更好的方法来将结果告知适当的人员。
Therefore, you need better methods for trapping and identifying errors within the script, better methods for communicating problems, and optional successes to the appropriate person.
如果出现数据库连接故障,脚本将向电话报告错误。
In the case of failure to connect to the database, the script reports the error to the phone.
如果在部署修改管理脚本时出现了错误,也不必担心。
There is no need to worry if an error occurs while you are deploying a change management script.
在使用清单1中的方法时,如果复制过程发生任何错误,那么脚本将退出,以阻止脚本在出现错误后继续执行。
Using the approach in Listing 1, the script exits if there is any error in the copy process, thus not allowing the script to carry on processing if there is an error.
如果引导进程中的init脚本阶段出现错误,那么您应该首先检查这个文件。
This file is where you should first look for errors that occurred during the init scripts stage of booting.
配置脚本以找到错误,不适合的代码更改。
Configure scripts to find errors, not appropriate code changes.
但是,初次执行这个脚本时,显示以下错误。
However, when executing the script initially, the following error is displayed.
脚本找到不是错误的更改
如果mkdir失败,则该脚本终止并显示适当的错误消息。
If the mkdir fails, the script dies with an appropriate error message.
如果命令或脚本出现错误,您将看不到标准的错误(stderr),除非您通过竖线将它添加到stdout。
If there are errors in your script or command, you won't see a standard error (stderr) unless you pipe it to stdout.
当出现参数错误时,脚本库模块抛出scriptlibraryexception。
The scripting library modules raise a ScriptLibraryException when a parameter error occurs.
如果在运行TivoliDirectoryIntegrator脚本时发生错误,或者没有按照预期填充数据,那么应该检查以下文件。
The following steps detail the files that should be verified if an error occurs while running a Tivoli Directory Integrator script or if data is not populated as expected.
在V . 0.2.0版本以前,XJConf forPHP并不支持这些特殊的重载方法,并且尝试使用这些方法将使php脚本出现致命错误。
In versions of XJConf for PHP prior to V. 0.2.0, these special overloading methods are not supported and attempts to use them will generate a fatal error in your PHP script.
应用推荐