Jump to content

[SOLVED] File Paths


steviez

Recommended Posts

My root folder is:

 

/var/www/html/

 

Buy my script is running in:

 

/var/www/html/projects/filehost/

 

I need to include files from the includes folder located in my script path

 

 

I have tryed this: include(dirname(__FILE__) . '/includes/config.php'); but this gives me: /var/www/html/projects/filehost/admin/includes/config.php and i need: /var/www/html/projects/filehost/includes/config.php

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/83228-solved-file-paths/#findComment-423391
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.