Skip to content

Comment on XHP: A New Way to Write PHP (from Facebook)parent

Comments

Got it compiled properly now, had to get one of the versions without the lexer/parser files included.

However I'm still getting 'xhp_a' class not found errors with the basic tests from the wiki, the same as the other comments in the sibling thread.

It seems to happen on several platforms so its probably a configuration error somewhere.

Any help would be appreciated.

EDIT: Figured it out. You need to include 'init.php' from 'php-lib' in your php scripts. I copied the directory from the xhp source to my site directory and included them from there.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.