Is it possible that you simply need a PHP file to serve as a
barrier between your WebHelp project and the outside world? If so,
just create a stand-alone page that does this and allows access.
Then forget about adding PHP to your RoboHelp pages. I think you
will find that things will work much more smoothly that way.