0

I'm trying to include other page from other folder. and i tried this and it won't show the "side.php"

<?php
include 'side.php';
?>

And the "side.php" has:

<a href="/index.html">home</a>
BenMorel
  • 34,448
  • 50
  • 182
  • 322
user3513005
  • 31
  • 1
  • 1
  • 3

1 Answers1

0

Well you have the answer to your question inside your question.

" Im trying to include other page from other folder"

It means that you have to go inside that folder in order to access the file

<?php
include 'folder_name/side.php'
?>

or just copy the side.php file where your working file is so that all files are in one place

Maybe I'm wrong because I don't know php so it might not work but you could check this out Include PHP file into HTML file

Community
  • 1
  • 1
Tudor
  • 1,510
  • 1
  • 18
  • 17