Jump to content


Photo

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


  • Please log in to reply
2 replies to this topic

#1 mass

mass
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 27 August 2006 - 12:35 AM

hi...i'm trying to include php file in my Theme.php ( i have Php-nuke)
this is the 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";

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...
		<TD>
		<?php include('yshout/index.php'); ?>
		</TD>
or this..
		<TD>\n";
		include('yshout/index.php');
		echo "</TD>

but nothing working...can anyone help me plz?
i'm still a begginer with php...
tnx!

#2 hax

hax
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 27 August 2006 - 01:51 AM

For including PHP in HTML files just do like this:

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


#3 Corona4456

Corona4456
  • Members
  • PipPipPip
  • Advanced Member
  • 244 posts
  • LocationEl Paso, TX

Posted 27 August 2006 - 01:51 AM

Try require(), I believe this will give you an error or warning if it can't find the file.
What is the CoronaMatrix?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users