using PHP functions in C