Listing 1. config.php-php configuration file for Ext.Direct classes and methods.
清单1 . config . php—ext .direct类和方法的php配置文件。
Warning messages will be shown if the PHP configuration does not meet these requirements.
如果PHP的配置不符合这些要求,将显示警告信息。
This option specifies where you want PHP to look for php.ini, the PHP configuration file.
该选项指定您希望php在哪里查找php配置文件php . ini。
As you can see, Titanium displays a page that shows you every PHP configuration setting it has.
如您所见,Titanium显示一个页面,展示了它具有的每个PHP配置设置。
Now, we need to do the same thing for PHP. First, back up the original PHP configuration file.
现在,我们会对PHP做相同的事情。
The PHP configuration must match exactly, as specified in the php.ini file, the Apache directives in .htaccess files, or httpd.conf.
PHP配置必须精确匹配,这一点在 php.ini文件中、在.htaccess文件的Apache指令中或在httpd.conf 中已经指定。
These optimize your PHP configuration and code to prevent unneeded file status checks on every request, which can slow down response times.
这些函数优化您的PHP配置和代码,以防止对每个请求进行不必要的文件状态检查,从而减少响应时间。
You may need to install additional packages to prepare for these builds, depending on the contents of your Linux distribution and your PHP configuration.
您可能需要安装附加软件包才能准备好进行这些构建,这取决于Linux发行版和PHP配置的内容。
We looked at techniques not only at the PHP level, by leveraging an opcode cache and optimizing the PHP configuration, but also looked at optimizing your database design for proper indexing.
我们不仅通过利用一个操作码缓存和优化PHP配置探究了php级别的技术,而且探究了如何优化您的数据库设计来实现合理的索引编制。
The recommended configuration provides a relatively safe set of defaults for your PHP environment.
推荐配置为您的PHP环境提供了一套相对安全的默认参数。
Then I write a small PHP script to read the configuration item, shown in Listing 1.
然后,我编写了一个小php脚本来读取这个配置项,如清单1所示。
A common alternative to storing configuration items in an INI file is to use a simple PHP script to hold the data.
通常对于在INI文件中存储配置条目的一个替代办法是使用一个简单的php脚本来保持数据。
But an important difference may be in your PHP installation or configuration.
但是重要的差别可能在于php安装或配置。
They should be added to as required — the example configuration omits PHP functionality, for example.
应该根据需要将它们添加到适当的配置中,比如这里忽略的PHP功能配置。
Your configuration for PHP is now complete, now let's execute a simple script from the command line to test our set up.
现在已经完成了PHP的配置,让我们从命令行执行一个简单的脚本,以测试安装。
Now we need to specify the configuration options for the PHP source.
现在,我们需要指定php源码的配置选项。
Now, suppose you need to read these configuration values into your PHP application.
假设需要将这些配置值读入PHP应用程序。
PHP comes with support for configuration files built in.
PHP 内建了对配置文件的支持。
See the PHP manual for how to change configuration settings for other interfaces to PHP.
请参阅PHP手册,了解如何更改PHP的接口配置。
If you see the PHP code itself then your PHP and Apache installation or configuration is flawed.
如果您看到的是PHP代码本身,则说明您的php和apache的安装或配置有缺陷。
It USES the SimpleXML module to read and parse the XML configuration file into a PHP object, and then creates an associative array mapping each defined chain to its name for easy lookup.
它使用SimpleXML模块读取XML配置文件,并将其解析为php对象,然后,创建一个关联数组,将每个定义的链映射到其名称,以便于查找。
XJConf provides PHP application developers with an API that reads XML-formatted configuration files and converts the data within them to native PHP data types or custom objects.
XJConf为PHP应用程序开发人员提供了一个API,可以读取xml格式配置文件并转化成原生php数据类型或自定义对象。
A definition file, which maps elements from the configuration file into native PHP structures.
将配置文件中的元素映射到原生php结构的定义文件。
As explained in earlier examples, the key to the script lies in the definition file, defs.xml, which tells XJConf how to map elements from the configuration file into a PHP array.
如前面的例子所说明的那样,脚本的关键在于定义文件defs . xml,它告诉XJConf如何将配置文件中的元素映射到php数组。
Here is a simple cron configuration to run a PHP script once a day at 11 p.m.
下面是一个简单的cron配置,它在每天晚上11点运行一个php脚本。
Listing 9 has the PHP code that parses and displays the configuration data.
清单9中的PHP代码解析和显示上述配置数据。
Simple data types are just the tip of the iceberg—XJConf also lets you define collections of related configuration variables, and converts these into native PHP arrays.
简单的数据类型仅仅是冰山一角 —XJConf还能够定义相关配置变量的集合,并将其转化成原生PHP 数组。
The name attribute specifies an element name from the configuration file, while the type attribute specifies the corresponding PHP data type.
name属性指定配置文件中的元素名,type 属性则指定对应的PHP数据类型。
The configuration of PHP assertions allows you to specify a function to be called whenever assert is invoked. Of course, I used a lambda.
PHPassertions的配置,使得您可以在不管是否已调用assert的情况下,指定要调用的函数。
The configuration of PHP assertions allows you to specify a function to be called whenever assert is invoked. Of course, I used a lambda.
PHPassertions的配置,使得您可以在不管是否已调用assert的情况下,指定要调用的函数。
应用推荐