[pmwiki-users] Basic idiot problem

Henrik henrik.bechmann at sympatico.ca
Sun Feb 25 19:52:12 CST 2007


I have a little skin.php file (WebCalendar.PublishResults.php) as follows:

<?php
global $FmtPV;
$calendar=$_GET['calendar'];
if (!$calendar) return;
ob_start();
include("http://dufferinpark.ca/webcalendar/publish.php?user=_NUC_$calendar");
$filecontents = ob_get_contents();
ob_end_clean();
$file = 
fopen("/var/vhosts2/henrik/public_html/dufferinpark/calendar/data/$calendar.ics",'w');
fputs($file, $filecontents);
fclose($file);
$FmtPV['$Test']= '"Successfully published calendar ics file"';
?>

And I can't for the life of me get the page variable {$Test} to appear 
in the wiki page.

What am I doing wrong?

Thanks,

- Henrik

-- 

Henrik Bechmann
www.bechmann.ca
Webmaster, www.dufferinpark.ca




More information about the pmwiki-users mailing list