Answers for "php add to include path"

PHP
9

php include file path

<body>
<?php 
    define('ROOT_PATH', dirname(__DIR__).'/');
    include ROOT_PATH.'header.php';
    include ROOT_PATH.'main.php';
    include ROOT_PATH.'footer.php';
?>
</body>
Posted by: Guest on September-05-2021
1

add php to path

Search for "environment variables" in the start menu
Open the best match
Click on environment variables
Click on Path
Click edit
Click on new
Add location of php
Posted by: Guest on July-28-2021

Browse Popular Code Answers by Language