cpp and php