Skip to content

Instantly share code, notes, and snippets.

@datayja
Created February 27, 2011 15:19
Show Gist options
  • Save datayja/846254 to your computer and use it in GitHub Desktop.
Save datayja/846254 to your computer and use it in GitHub Desktop.
<?php
include 'test/test1.php';
echo 'Entry file executed! ';
?>
<?php
include 'test2.php'; // => %working dir of entry.php%/test/test2.php
include './test/test2.php';
?>
<?php
echo 'Test included! ';
?>
@datayja
Copy link
Author

datayja commented Feb 27, 2011

Files test1.php and test2.php are in directory named 'test', which is in the same parent directory as entry.php.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment