1

So while trying to include a file in php, using include(/Users/leonaves/Sites/mysite/admin/inc/pages/dashboard.php) (I'm running locally), PHP tells me:

Failed to open stream: No such file or directory in /Users/leonaves/Sites/mysite/admin/inc/page_request.php on line 86.

I have tried including from a relative path, from an absolute path, declaring the root in a variable etc. etc. I have no idea how to make this file include the other. PHP refuses to find it AT THE EXACT LOCATION IT IS. Any help would be amazing, thank you.

rink.attendant.6
  • 44,500
  • 61
  • 101
  • 156
Leon Aves
  • 739
  • 1
  • 7
  • 24

1 Answers1

0

PHP executes only scripts found in directories specified in open_basedir. Your path is probably not allowed.

Marc Plano-Lesay
  • 6,808
  • 10
  • 44
  • 75