简体   繁体   English

PHP库-它们是什么以及如何创建一个

[英]PHP Libraries - what are they and how to create one

1) Is a PHP library (as in the GD Library) a compiled DLL (or other appropriate name if that is not used outside of Windows) written in a language such as C, compiled, and then "loaded" and made available to PHP code? 1)是一个PHP库(如GD库中一样)是否是用C等语言编写,经过编译,然后“加载”并可供PHP使用的已编译DLL(或在Windows之外未使用的其他适当名称)的DLL。码?

2) If this is the case, where can I find documentation on libraries which, among other things, includes calling, argument passing, and value return standards and protocals, and other information which I can use to get started writing PHP "libraries"? 2)如果是这种情况,我在哪里可以找到关于库的文档,其中包括调用,参数传递,值返回标准和协议以及其他可以用来开始编写PHP“库”的信息? I am not looking for documentation on how to program in C or another language, I am looking only for specific, and detailed, information on creating "libraries" for PHP. 我不是在寻找有关如何使用C或另一种语言编程的文档,我只是在寻找有关为PHP创建“库”的特定而详细的信息。

Bob 鲍勃

  1. In the php world I believe it's called an extension and it's behave similar to a windows dll and maybe has something similar when you want to create one. 在php世界中,我相信它被称为扩展,它的行为类似于Windows dll,并且当您要创建一个时可能具有类似的东西。
  2. theserverpages.com/php/manual/en/zend.php. theserverpages.com/php/manual/en/zend.php。 I think its part of the php documentation, the url www.php net may work also. 我认为它是php文档的一部分,网址www.php net也可能有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM