...well to access/execute your PHP stuff from C you either can call it via HTTP or execute it directly on the local machine.
Making the PHP page spit out XML and using some XML lib to pull the output into some DOM tree wold be fashionable.
But if you only need to extract some simple stuff guess that's too much overhead