loonatik
04-07-2003, 01:59 AM
I'm using the code below to automatically insert the text of the article on the same page as news.php3. The text is stored in separate files namely 'jan02' and 'jan23'. These files have no extentions and work fine when called.
<?
if($id != ""){
include "$id";
}
else{
echo "<a href='news.php3?id=jan02'>January 02</a>";
echo "<a href='news.php3?id=jan23'>January 23</a>";
}
?>
I was just wondering is this is the basic idea behind those news posting scripts? Do the scripts automatically create separate files too? If they do, then I would stick with my own code since I don't need the adv features (i.e. archiving, automation). But if they don't, and actually hv a more sufficient way of storing the text, then maybe I'll search for a script.
Thanks.
<?
if($id != ""){
include "$id";
}
else{
echo "<a href='news.php3?id=jan02'>January 02</a>";
echo "<a href='news.php3?id=jan23'>January 23</a>";
}
?>
I was just wondering is this is the basic idea behind those news posting scripts? Do the scripts automatically create separate files too? If they do, then I would stick with my own code since I don't need the adv features (i.e. archiving, automation). But if they don't, and actually hv a more sufficient way of storing the text, then maybe I'll search for a script.
Thanks.