You are here:  » Add directory

Add directory

Submitted by stuartqwh on Tue, 2022-03-22 09:21 in


I'd like to add a directory (and maybe sub directories) that would contain edited example.php files.
Can you please tell me how this could be accomplished?

Thank you for your time.

Price Tapestry 20/10A

Responsive HTML Plus (Foundation 5.0)

Submitted by support on Tue, 2022-03-22 10:23

Hi Stuart,

Easiest thing to do is just to put a chdir() statement at the very top of the script (before the first include) to change directory internally up one or more directories and then everything works as normal.

So for example in /foo/example.php look for the following code at line 2:


...and REPLACE with:


...or for 2 sub-directories deep, REPLACE with:



Submitted by stuartqwh on Tue, 2022-03-22 12:18

Excellent. Thank you David.