So I'm attempting to use include
. Here's my index.php
<?php
include ("r.php");
?>
As you can see it simply includes r.php
. And here's my r.php
<?php
echo "This is the included code";
?>
This is where the files are both located
So when I run index.php
I get
PHP Warning: include(r.php): failed to open stream: No such file or directory in - on line 2 PHP Warning: include(): Failed opening 'r.php' for inclusion (include_path='.:') in - on line 2
I've also tried include "r.php";
, note the parentheses, but I'd still get the same error.
Any ideas?