How to write a module for php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
stephan.gerlach
Forum Newbie
Posts: 2
Joined: Wed Apr 19, 2006 11:13 am

How to write a module for php

Post by stephan.gerlach »

Does anyone knows how to or has some information on how to write a module for php?

Thanks for the help
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
stephan.gerlach
Forum Newbie
Posts: 2
Joined: Wed Apr 19, 2006 11:13 am

Post by stephan.gerlach »

Thanks for the help

Its for an assignment for university. The task is to write a module for php.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

huh?
writing a module (i'm assuming that term is interchangable with extension) is very a difficult assignment.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

There is a section in the PHP manual on this and there are some tutorials around by core developers.
(#10850)
Post Reply