Include i have problem with it

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ms_dos10
Forum Commoner
Posts: 42
Joined: Tue Jul 25, 2006 8:10 am

Include i have problem with it

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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';
ms_dos10
Forum Commoner
Posts: 42
Joined: Tue Jul 25, 2006 8:10 am

Post by ms_dos10 »

how give me more explain , i'm new on php like how the look of include statament it'll be
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

which part of
include 'FolderB/another.php';
needs to be more elaborate
ms_dos10
Forum Commoner
Posts: 42
Joined: Tue Jul 25, 2006 8:10 am

Post by ms_dos10 »

use how it'll be like this
Include('folderA/folderB/folderC/file.php');
like that u mean
Post Reply