T
TheJkWhoSaysNi
Guest
is it possible? whenever i try that, it includes it where the variable is defined
can anyone help?
$somecontent = '
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91">
<channel>
<title>UD News</title>
<link>[url]http://www.ud.barrysworld.net.com[/url]</link>
<description>UD News and site news</description>
<language>en-us</language>
<copyright>Copyright Xero, 1998-2002</copyright>
<managingEditor>Xero</managingEditor>
<webMaster>thejkwhosaysni@evilemail.com</webMaster>' . include("http://www.ud.barrysworld.net/board/index.php?action=newstrillian;board=4;template=rssnews_template") . '</channel> </rss>';
if (is_writable($filename)) {
if (!$fp = fopen($filename, 'a')) {
print "Cannot open file ($filename)";
exit;
}
.
if (!fwrite($fp, $somecontent)) {
print "Cannot write to file ($filename)";
exit;
}
if (!fwrite($fp, $somecontent)) {
print "Cannot write to file ($filename)";
exit;
}
print "Success, wrote ($somecontent) to file ($filename)";
fclose($fp);
} else {
print "The file $filename is not writable";
}