I am trying to substitute a calendar plugin for an old archive page of events. In archive.php
I have the following code:
<?php get_header();
$cat = get_query_var('cat');
$yourcat = get_category ($cat);
global $gateway_parent_id;
if ( $yourcat->slug == 'events' ){
include 'page-forum.php';
}else{
?>
when I change line 8 to
include 'http://www.mysite.com/events/';
I get the following errors:
Warning: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /data/23/2/34/80/21912080/user/2412808/htdocs/wp-content/themes/ga/archive.php on line 8
Warning: include(http://www.mysite.com/events/) [function.include]: failed to open stream: no suitable wrapper could be found in /data/23/2/34/80/21912080/user/2412808/htdocs/wp-content/themes/ga/archive.php on line 8
Warning: include() [function.include]: Failed opening 'http://www.mysite.com/events/' for inclusion (include_path='.:/usr/services/vux/lib/php') in /data/23/2/34/80/21912080/user/2412080/htdocs/wp-content/themes/ga/archive.php on line 8
What am I doing wrong?