could you help me?
| From: | Tran Huu Tri | Date: | Tue, 14 Sep 2004 02:43:28 +0000 |
| Subject: | could you help me? | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-1336@lists.php.net to get a copy of this message | ||
Hi pecl-dev,
I'm reading about PHP extention, but I don't know how to
call C function from PHP.
I mean, If I have the hello.h file with code following:
//hello.h
#define a 1;
void sayhello();
int getNumber(int);
//end hello.h
And the file hello.c with code following:
//hello.c
void sayhello()
{
printf("Hello world");
}
int getNumber(int i)
{
int res=i+a;
return res;
}
//end hello.c
Could you help me to call the functions in hello.h file
from PHP program?
Can I do it?
Thank you for your help.
yours sincerely!
Tri, Tran Huu
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com