Answers for "include a page in another in php file"

PHP
1

include a page from another directory php

<?php
include($_SERVER['DOCUMENT_ROOT'].'/any/other/directorys.php');
?>
  
 // [document_root] is your root direcroty, example: public_html/any/other/directorys.php
Posted by: Guest on September-02-2021
1

link to another page php

echo ' <a href="index1.php">page1</a>';
echo '<a href="page2.php">page2</a>';
Posted by: Guest on March-10-2020

Code answers related to "include a page in another in php file"

Browse Popular Code Answers by Language