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 #173122 is a reply to message #173118] Tue, 22 March 2011 12:04 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 3/22/2011 7:04 AM, Lee 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.
>
> TIA
> Lee

No, the include_path is different from the extension_directory.
Include_path is for PHP source files. Extensions must be specifically
loaded in your php.ini file, and they generally go in a xxx/ext/ directory.

This is detailed in the "Building Your Extension" section (although it
is only a couple of lines on a long page).


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Tue Nov 26 08:58:35 GMT 2024

Total time taken to generate the page: 0.04058 seconds