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
stephan.gerlach
Forum Newbie
Posts: 2 Joined: Wed Apr 19, 2006 11:13 am
Post
by stephan.gerlach » Wed Apr 19, 2006 11:15 am
Does anyone knows how to or has some information on how to write a module for php?
Thanks for the help
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Apr 19, 2006 11:25 am
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 » Wed Apr 19, 2006 11:27 am
Thanks for the help
Its for an assignment for university. The task is to write a module for php.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Apr 19, 2006 11:32 am
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.
Ollie Saunders
DevNet Master
Posts: 3179 Joined: Tue May 24, 2005 6:01 pm
Location: UK
Post
by Ollie Saunders » Wed Apr 19, 2006 11:55 am
stephan.gerlach wrote: Thanks for the help
Its for an assignment for university. The task is to write a module for php.
wow harsh
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Wed Apr 19, 2006 12:31 pm
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 » Wed Apr 19, 2006 1:25 pm
Ollie Saunders
DevNet Master
Posts: 3179 Joined: Tue May 24, 2005 6:01 pm
Location: UK
Post
by Ollie Saunders » Wed Apr 19, 2006 5:10 pm
huh?
writing a module (i'm assuming that term is interchangable with extension) is very a difficult assignment.
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Wed Apr 19, 2006 6:16 pm
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.
Ollie Saunders
DevNet Master
Posts: 3179 Joined: Tue May 24, 2005 6:01 pm
Location: UK
Post
by Ollie Saunders » Wed Apr 19, 2006 7:01 pm
There's also a pretty comprehensive tutorial starting all the way back from "Hello World!" too.
where? show me to this grail.
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Wed Apr 19, 2006 7:19 pm
There is a section in the PHP manual on this and there are some tutorials around by core developers.
(#10850)