I want to code some functions in linux. And this functions must be used in php. How can I code it in c in linux platform. And how can I use these functions in php.
You can call external programs fron PHP using the exec() function.
Read the manual.