grantus
Active member
I'm trying to include a file I have from another folder but I keep getting "permission denied". I tried both 777 and 755 for my "includes" folder but still I get the same error.
This is what I have:
I also tried putting the test.php file inside my addon folder and put this:
And it didn't work.
When I put this (calling the test file from the addons/Test folder):
It worked. What could be causing this?
This is what I have:
Code:
<?php
namespace Test;
class Listener
{
public static function getHtml()
{
include('/path/to/includes/test.php');
return $output;
}
}
I also tried putting the test.php file inside my addon folder and put this:
Code:
include('/path/to/src/addons/Test/test.php')
And it didn't work.
When I put this (calling the test file from the addons/Test folder):
Code:
include('test.php')
It worked. What could be causing this?