** when I include it inside a plage called calendar.php htp://208.187.190.34/~octinc/calendar.php it gives a print out of the code in the calendar.cgi page **
Than it is not being executed like it has to be, the files text is just being included.
Try using file() with the full URI (including the htpp://...) like you would for any other web page whose source you wanted to capture with PHP. If you're on an Apache server, depending on how PHP is configured, you may also be able to use virtual() (check with your host's support) and just a path.
** require_once(... it choaks and displays nothing!! **
You can only require PHP code into a PHP script. That is not the right function to use for anything else.
Dan O.
[This message has been edited by DanO (edited June 23, 2005).]