This should work
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
include "$root/inc/include1.php";
Edit: added imporvement by aussieviking
More Related Contents:
- Parse error: parse error, expecting `'{” in [closed]
- How to run deprecated php codes on the latest XAMPP [duplicate]
- Get the full URL in PHP
- Escaping quotation marks in PHP
- How to remove multiple UTF-8 BOM sequences
- Is closing the mysql connection important?
- php – insert a variable in an echo string
- Replace the Variable Price range by the chosen variation price in WooCommerce 3
- How does the keyword “use” work in PHP and can I import classes with it?
- How to check if the request is an AJAX request with PHP
- Check if $_POST exists
- Get difference between associative rows of two 2-dimensional arrays
- Shortcomings of mysql_real_escape_string?
- file_get_contents => PHP Fatal error: Allowed memory exhausted
- What’s an actual use of variable variables?
- Is it wise to use PHP for a daemon?
- Directory index forbidden by Options directive
- Why doesn’t this code simply print letters A to Z?
- Can I encrypt PHP source or compile it so others can’t see it? and how? [duplicate]
- Using regex to filter attributes in xpath with php
- phpmailer: Reply using only “Reply To” address
- Why doesn’t PHP print TRUE/FALSE? [duplicate]
- Move an array element to a new index in PHP
- Reference Guide: What does this symbol mean in PHP? (PHP Syntax)
- How to update timezonedb in PHP (updating timezones info)?
- Format date from database?
- Validate Email in php [duplicate]
- How to force page not to be cached in PHP?
- phpmailer send gmail smtp timeout [duplicate]
- ftp_put is corrupting my movies after transfer, is it wrong?