Page 1 of 1

Include i have problem with it

Posted: Sat Jul 29, 2006 1:46 pm
by ms_dos10
Hi
Include i have problem with it . it never work with me idon't know why ? i wanna some one help me on it . i have folder inside that folder i have another one on it i have my file that one i wanna read it , on include statment
how can i do that

Code: Select all

<html>

<head>
  <title></title>
</head>

<body>



<table width=15%>
<tr>
<td bgcolor=iceyellow>
<marquee direction=up> hello <?php include('here how can i put my file '); ?>   </marquee>

</td>
</tr>
</table>




<?php

echo"hello world";

?>

</body>

</html

Posted: Sat Jul 29, 2006 2:01 pm
by volka
You have

__FolderA
|__ index.php
|__FolderB
| |__another.php

and index.php is the file you showed us the code of?
If so, you can include another.php with include 'FolderB/another.php';

Posted: Sat Jul 29, 2006 2:41 pm
by ms_dos10
how give me more explain , i'm new on php like how the look of include statament it'll be

Posted: Sat Jul 29, 2006 2:46 pm
by volka
which part of
include 'FolderB/another.php';
needs to be more elaborate

Posted: Sat Jul 29, 2006 3:08 pm
by ms_dos10
use how it'll be like this
Include('folderA/folderB/folderC/file.php');
like that u mean