• Integrating Phar archive code in your application.

    应用程序中集成Phar归档代码

    youdao

  • Let's see how easy it is to integrate a Phar into your application.

    我们看在应用程序中集成Phar有多么容易

    youdao

  • ZIP - and TAR-based archives require the Phar extension to be loaded.

    基于ZIPTAR归档需要加载Phar扩展

    youdao

  • By default, the Phar created will use the native Phar-based archive format.

    默认情况下,创建Phar使用原生的基于Phar归档格式。

    youdao

  • We have now created a Phar archive, which can be used by any PHP application.

    我们现在已经创建了一个Phar归档可以用于任何PHP应用程序。

    youdao

  • This is especially true if you have used the native Phar-based archive format.

    如果使用原生基于Phar归档格式一点尤其明显。

    youdao

  • The object reference will allow you to control all aspects of the Phar archive.

    对象引用允许控制Phar归档所有方面

    youdao

  • Listing 8 adds all of the PHP files in the stated directory to the Phar archive.

    清单8指定目录中的PHP文件添加Phar归档

    youdao

  • This setting is not required to open or reference files within a Phar archive within PHP.

    PHPPhar归档打开引用文件需要使用设置

    youdao

  • How to add this stub to your Phar archive depends upon what archive format you are using.

    如何这个文件存根Phar添加到Phar归档取决于所使用的归档的格式。

    youdao

  • The first parameter to the constructor is the path to where the Phar file should be saved.

    构造函数第一参数表示保存Phar文件位置

    youdao

  • The third parameter is the alias for how this Phar archive is referred to in the streams context.

    第三参数上下文中引用Phar归档别名

    youdao

  • Let's look at the steps needed to create a Phar archive that can be used to drive an application.

    我们创建用于驱动应用程序的Phar文件需要哪些步骤

    youdao

  • Next, you'll need to define the file stub, which is the first code called when the Phar file is loaded.

    接下来需要定义文件存根(stub),加载Phar文件首先调用代码

    youdao

  • In addition, in order to create and modify phar files, the php.ini setting phar.readonly must be set to 0.

    此外创建修改phar文件php . ini设置phar . readonly必须设置为0。

    youdao

  • You should stick to the Phar-based archive format with no compression of the files in the archive for maximum portability.

    应当始终使用基于Phar归档格式,并且不对归档中的文件进行压缩,从而获得最大的灵活性。

    youdao

  • The second include USES the stream wrapper to open the Phar archive and only includes the specified file inside the archive.

    第二include使用包装器打开Phar归档并且归档中包括指定文件

    youdao

  • In this case, you don't even need the Phar extension installed, since PHP can natively load the file and extract its contents.

    这种情况下甚至需要安装Phar扩展因为php天生就可以加载文件提取文件内容。

    youdao

  • Note that you don't need to include the Phar archive itself before including a file inside the archive, as shown in Listing 10.

    注意归档包含文件之前需要包含Phar归档本身如清单10

    youdao

  • The first step is to create the Phar file, so we'll do this by creating the Phar object we'll be working with for this example in Listing 1.

    一步创建Phar文件因此我们创建清单1所Phar对象

    youdao

  • You can also use the ZIP or TAR format for the Phar file by converting it to that format, shown in Listing 2, by changing the format to ZIP.

    可以按照清单2格式转换为ZIP 格式,从而 Phar文件使用 ZIPTAR 格式。

    youdao

  • It has been entirely designed to run from the Phar archive file, yet still provides the ability to store its configuration file outside the Phar archive.

    一直以来被设计Phar归档文件运行但是仍然能够Phar归档之外存储配置文件。

    youdao

  • The easiest way to integrate code in a Phar archive is simply by including the Phar archive, then including the file within the Phar file you wish to use.

    Phar归档集成代码简单方法就是包含 Phar 归档,然后Phar文件中包含需要使用的文件。

    youdao

  • Two styles of iterators are supported: iterators that map the filename within the Phar to the name of a file on disk and iterators that return SplFileInfo objects.

    支持两种风格迭代器:Phar中的文件名映射磁盘文件名称,另一种是返回SplFileInfo对象

    youdao

  • Result The cilium columnar epithelia or cylindric cell have be found in sputum of the tracheal, no cell mentioned above was checked in sputum collected from phar

    结果气管内液可纤毛上皮细胞圆柱形柱状细胞,但咽部痰液查不到上述细胞。

    youdao

  • The Phar object uses the ArrayAccess SPL object to allow accessing the contents of the archive as an array, so it opens up many ways of adding files to the archive.

    Phar对象使用ArrayAccessSPL 对象,允许数组形式访问归档内容因此提供许多方法来向归档添加文件

    youdao

  • The advantage to this approach is that it makes it easy to deploy the application and with no performance penalty, thanks to several of the enhancements made to Phar in PHP V5.3.

    这种方法优点就是简化应用程序部署并且不会降低性能主要得益于PHP V5.3 中新增若干Phar 增强。

    youdao

  • The Phar archive can loaded easily from a PHP file using the require or include function, or can be executed directly from the browser or command line by specifying the Phar archive by name.

    Phar归档可以通过requireinclude函数轻松地PHP文件加载或者通过使用名称指定Phar归档,直接浏览器命令执行

    youdao

  • The Phar archive can loaded easily from a PHP file using the require or include function, or can be executed directly from the browser or command line by specifying the Phar archive by name.

    Phar归档可以通过requireinclude函数轻松地PHP文件加载或者通过使用名称指定Phar归档,直接浏览器命令执行

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定