Jump to content

Where to start to build php extensions...


roschereric

Recommended Posts

Hello.

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...

Eric



Link to comment
Share on other sites

  • 4 weeks later...
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.