I am tring to use this addon and I am having trouble getting it working. The problem has to be with the webpage I am trying to get the file to print to. Here is what my code looks like:<br /><br />[:red]<?php<br />echo "<html><br /><body>";<br />virtual ("./boards/addons/w3tnews.php");<br />echo "</body><br /></html>";<br />?>[:black]<br /><br />I also tried it this way[:green]<br /><br /><?php<br />echo "<html><br /><body>";<br />include "./boards/addons/w3tnews.php";<br />echo "</body><br /></html>";<br />?>[:black]<br /><br />I also tried something super simple[:orange]<br /><br /><html><br /><body><br /><? include "./boards/addons/w3tnews.php"; ?><br /></body><br /></html>[:black]<br /><br />None of these attempts has succeded. Can anyone help? :-)
Easiest thing to use (and what i have used) is:<br /><br /><html><br /><head><title>Page</title></head><br /><body><br /><?php include("boards/addons/w3tnews.php"); ?><br /></body><br /></html><br /><br />Just make sure the variables in w3tnews.php are set right []/testimages/icons/smile.gif[/]
The Death has it right. Simply use a standard html page with the exact syntax he has....and always give it the .php extention. Check the relative paths carefully. Usually that is the problem.
also try .shtml for your page I had the same trouble <br />& I put the includes in the same directory as the webpage it self <br />so give that a try if your still having trouble