I have the following directory structure where the Document Root is pointed to /var/www/html/public:
- /application
- /application/controllers
- /public (Document Root)
I am trying to use the following code to check if a file exists inside a file in the /public directory (working on local setup, but not on live server)
<?php
if (file_exists('../application/controllers/TestController.php'))
{
/* do something */
}
Could there be something in the Apache config file the I need to add? I am not sure where to go from here.