i2-Services, Inc. Forums

Full Version: Using a PHP Include
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I think what I want to do is use a PHP include to pull the calendar into my home page, Any idea what syntax to use? I've searched the net for hours and have been unsuccessful.

/cgi-bin/calendar/calendar.cgi

Thanks
Here's what I use. It's not a PHP include, but a server side include.

Code:
<!--#exec cgi="/cgi-bin/event/smallcalendar.cgi"-->

Rogee Wrote:
Here's what I use.  It's not a PHP include, but a server side include.

Code:
<!--#exec cgi="/cgi-bin/event/smallcalendar.cgi"-->


You can not use a SSI call within a .php page.  Try one of these:

Code:
<?php include("/cgi-bin/calendar/calendar.cgi"); ?>


or

Code:
<?php include("http://www.domain-name.com//cgi-bin/calendar/calendar.cgi"); ?>

Thanks a lot. I used the second syntax and it works great.

i2-Services, Inc. Wrote:

Rogee Wrote:
Here's what I use.  It's not a PHP include, but a server side include.

Code:
<!--#exec cgi="/cgi-bin/event/smallcalendar.cgi"-->


You can not use a SSI call within a .php page.  Try one of these:

Code:
<?php include("/cgi-bin/calendar/calendar.cgi"); ?>


or

Code:
<?php include("http://www.domain-name.com//cgi-bin/calendar/calendar.cgi"); ?>

Reference URL's