Page 1 of 1

How to write a module for php

Posted: Wed Apr 19, 2006 11:15 am
by stephan.gerlach
Does anyone knows how to or has some information on how to write a module for php?

Thanks for the help

Posted: Wed Apr 19, 2006 11:25 am
by feyd
Research the Zend API.. it's not exactly straight forward at first. What are you wanting to create? There may be alternative solutions.

Posted: Wed Apr 19, 2006 11:27 am
by stephan.gerlach
Thanks for the help

Its for an assignment for university. The task is to write a module for php.

Posted: Wed Apr 19, 2006 11:32 am
by feyd
There are several articles online, but I haven't seen any that are thorough. It's best to study their code and the source of existing modules. You'll likely learn more from that than any article out there.

Posted: Wed Apr 19, 2006 11:55 am
by Ollie Saunders
stephan.gerlach wrote:Thanks for the help

Its for an assignment for university. The task is to write a module for php.
wow harsh

Posted: Wed Apr 19, 2006 12:31 pm
by John Cartwright
ole wrote:
stephan.gerlach wrote:Thanks for the help

Its for an assignment for university. The task is to write a module for php.
wow harsh
huh?

Posted: Wed Apr 19, 2006 1:25 pm
by timvw

Posted: Wed Apr 19, 2006 5:10 pm
by Ollie Saunders
huh?
writing a module (i'm assuming that term is interchangable with extension) is very a difficult assignment.

Posted: Wed Apr 19, 2006 6:16 pm
by Chris Corbyn
ole wrote:
huh?
writing a module (i'm assuming that term is interchangable with extension) is very a difficult assignment.
It really depends upon what it needs to do. If you have knowledge of C the Zend API is actually pretty easy to pick up. A lot is done for you... There's also a pretty comprehensive tutorial starting all the way back from "Hello World!" too.

Posted: Wed Apr 19, 2006 7:01 pm
by Ollie Saunders
There's also a pretty comprehensive tutorial starting all the way back from "Hello World!" too.
where? show me to this grail.

Posted: Wed Apr 19, 2006 7:19 pm
by Christopher
There is a section in the PHP manual on this and there are some tutorials around by core developers.