FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Module Writing Help
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP Module Writing Help [message #173121 is a reply to message #173118] Tue, 22 March 2011 12:03 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 22/03/2011 12:04, Lee escribió/wrote:
> I am new to PHP modules, and trying to follow the tutorial at:
>
> http://devzone.zend.com/article/1021#Heading5
>
> All configures and makes well, but I am getting the following message:
>
> Lee:hello $ cd modules/
> Lee:modules $ php -r 'echo hello_world();'
> PHP Fatal error: Call to undefined function hello_world() in Command
> line code on line 1
>
>
> My include path in php.ini is the default, so includes the current
> directory, which includes the hello.so from the tutorial.
>
> And help would be appreciated.

Your extension is obviously not loaded. Your vague description suggests
that you've put the hello.so file in the same directory as your PHP code
and you're expecting that PHP will automatically load it. Read the
article again: you need to copy the file into your extensions directory
and add extension=hello.so to php.ini.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with appendChild and ellipsis...
Next Topic: PHP Developers needed
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 20:32:33 GMT 2024

Total time taken to generate the page: 0.03574 seconds