Jump to content

Archived

This topic is now archived and is closed to further replies.

mass

include() problem..can't show the page...

Recommended Posts

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!

Share this post


Link to post
Share on other sites
For including PHP in HTML files just do like this:

[code]
HTML here
<?php
include("path/to/file.php");
?>
HTML continue here
[/code]

Share this post


Link to post
Share on other sites
Try require(), I believe this will give you an error or warning if it can't find the file.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.