Hello everyone,
Here's the problem. I have this code that I'm trying to open a php page into a table on a seperate page. The bizarre thing is that it used to work. I could see the html contents and everything was displaying perfectly. Now for some reason the output is the php source code for the intros.php file.
<?
$fp = fopen($site_path . "articles/intros.php"),"r+");
if ($fp)
{ fpassthru ($fp); }
else
{ print"The file does not exist"; }
?>
Here is the result:
show_section_only=0; // ARTICLES ////////////////////////////////// $num_recent = 5; $recent_ids = $ya->get_recent($num_recent); $num_recent = count($recent_ids); for($r=0; $r<$num_recent; $r++) { $a_id = $recent_ids[$r]['id']; $intro = $ya->get_article($a_id); echo "$font1$intro->title $font4 by $intro->author". "
$intro->date". "$font2
"; if($intro->image) { echo ""; } echo "$intro->content ". "[More]"; if($r!=($num_recent-1)) { echo "
"; } } ?>
Ok, needless to say this is no good. I can parse the intros.php file on its own and it works great. I can fpassthru and fopen other *html files using the same code as above without error. I have display error turned on but nothing appears. Just the source code. Any ideas?
Thanks,
One struggling newbie.