In such cases, look into whether PHP itself supports the feature and use that function or extension instead.
在这种情况下,请查看PHP是否支持此功能并且使用函数或扩展替代它。
Use of PHP's safe mode is one technique for meeting this goal, but it can also unduly limit users, and some PHP applications simply don't function with this facility enabled.
使用PHP的安全模式是实现这一目标的一种技术,但是它也过度地限制了用户,而且启用了这个设施之后,一些PHP应用程序就不能发挥作用。
This article assumes that you have some experience using PHP already and can use a function to pass a variable and return a result.
本文假设您已经具有一些使用PHP的经验,并能够使用函数来传递变量并返回结果。
XML_RSS is simply a function, which given the location of an RSS feed, will load the XML of the feed into an array, ready for your use in your PHP application.
XML_RSS仅仅是一个函数,它在已知rss提要的位置时,将此提要的xml加载到一个阵列,从而为其在您的PHP应用程序中的使用做好准备。
To show SQL statements in PHP, use the echo function for each statement.
要在PHP中显示sql语句,需要对每条语句使用echo函数。
You should be able to take the simple roll function created in Part 1 of this " 30 game scripts you can write in PHP" series and use it to calculate the damage for a base set of weapons.
您应当能够得到在 “可以用PHP编写的30 个游戏脚本”系列的 第 1部分 中创建的简单roll函数,并且使用它计算一套基本武器的破坏力。
Rather than wait for the scheduled cron job to take place, you then use the exec PHP function to start the script and convert the file.
这时,可以不必等待计划的cron作业的发生,而是使用execphp函数来启动这个脚本并转换该文件。
In this article, PHP will be the server-side language and MySQL will be the database, although you don't need to use any specific server-side language or database to create this function.
在本文中,服务器端语言是PHP,数据库是MySQL,您不需要使用任何特定的服务器端语言或者数据库来创建此函数。
You use the PHP function file_get_contents , which performs a get request using the URL specified.
使用php函数file_get _ contents,该函数使用指定的url来执行get请求。
The above example is a good use case for closures: It USES one of the 18 standard PHP array functions that take a function as a parameter (such as array_walk, usort, and array_app).
以上示例是closures很好的使用例子:它采用18个标准php阵列函数之一,它将函数作为参数(比如array_walk、usort、和array_app)。
With PHP, use the db2_connect function to connect to db2 with the parameters shown in Listing 1.
使用PHP,可以使用带有清单1中所示的参数的db 2 _ connect函数连接至db2。
But, if you also wanted to use the standard PHP strlen function (say, within your own strlen implementation), you'd need to precede the function invocation with a backslash, as Listing 10 shows.
但是,如果也希望使用标准的PHPstrlen函数(比如在自己的strlen实现内部),就需要在函数调用前面加上反斜杠,见清单10。
To successfully use the DB2 function that we have compiled in our version of PHP, we have to set up the DB2 environment variables for Apache.
要成功地使用我们的PHP版本中已编译的DB 2函数,就必须为Apache设置DB 2环境变量。
We can use create_function , which has been a part of PHP since V4, to create the function at runtime.
我们可以使用create_function(从V4开始就是PHP的一部分)在运行时创建函数。
Before doing any database operation, you must establish a connection to a database server. In PHP, you use the following function to connect to a database.
在执行任何数据库操作之前,必须建立到数据库服务器的连接。
Use this to dynamically register modifier plugin. Pass in the template modifier name, followed by the PHP function that it implements it.
动态注册一个修饰器插件,需要制定模板修饰器的名称,和实现具体功能的函数。
Use this to dynamically register a compiler function plugin. Pass in the compiler function name, followed by the PHP function that implements it.
动态注册一个编译函数插件,前两个参数是编译函数的名称、执行函数的名称。
Use this to dynamically register a compiler function plugin. Pass in the compiler function name, followed by the PHP function that implements it.
动态注册一个编译函数插件,前两个参数是编译函数的名称、执行函数的名称。
应用推荐