mass Posted August 27, 2006 Share Posted August 27, 2006 hi...i'm trying to include php file in my Theme.php ( i have Php-nuke)this is the code:[code]."</td></tr> <TR><td> <table bgcolor='#000000' align='center' width='768' border='0' cellspacing='0' cellpadding='0'> <tr> <td align='center'><TABLE WIDTH=766 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD> <img src='themes/DeepBlue/images/shoutbox.gif' width='503' height='189' border='0'/> </TD> </TABLE></td></tr></table> </TR><tr><td width='100%'><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#000000'>\n";[/code]i want you to look at the separate area...i want to put the this file "yshout/index.php"i tried to do this...but with out succses...[code] <TD> <?php include('yshout/index.php'); ?> </TD>[/code]or this..[code] <TD>\n"; include('yshout/index.php'); echo "</TD>[/code]but nothing working...can anyone help me plz?i'm still a begginer with php...tnx! Quote Link to comment Share on other sites More sharing options...
hax Posted August 27, 2006 Share Posted August 27, 2006 For including PHP in HTML files just do like this:[code]HTML here<?phpinclude("path/to/file.php");?>HTML continue here[/code] Quote Link to comment Share on other sites More sharing options...
Corona4456 Posted August 27, 2006 Share Posted August 27, 2006 Try require(), I believe this will give you an error or warning if it can't find the file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.