Jump to content


Where to start to build php extensions...

  • Please log in to reply
1 reply to this topic

#1 roschereric

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 19 January 2006 - 08:29 PM


I'm just downloading the entire site under this [a href=\"http://www.usphp.com/zend.html\" target=\"_blank\"]Zend [/a] url.

I want to know how the extensions plugs in the php core, what I have to use from the PHP core, need I to recompile something with the extension? or just add it on the php.ini? or the httpd.conf? what is the difference between modules and extensions? etc.

Basically I need some examples for simple extensions.

I like to build some like I've posting on this topic

[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=83647\" target=\"_blank\"]Global array like $_SESSION[/a]

I can use those functions for memory handling, but I want to do this more easy, adding an superglobal array
to simulate the ServletContext that provides Apache Tomcat when you are programming JavaServlets.

I want to make this:

* an array that all scripts on the application (directory and child directorys) can set/get vars (objects/values/arrays)

Is it so dificult??

And if it is, better.

Thanks for all who wants to help, and particulary who helps me...


#2 trq

  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 12 February 2006 - 03:43 PM

There are two ways to load an extenension into php. either at runtime (via php.ini) or at compile time. There should be examples of both on the zend site somewhere.

If you want more in depth examples, your probably best just to go through the code for the allready existing extensions.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users