Php agi can not work help?

who can give me a php agi simple code ?
i wrote php code step by step according to the tutorial document but they can not work ?is special config needed ?