grucker Posted February 2, 2014 Report Share Posted February 2, 2014 I have the following code which works include ("../../../../../accounts/accounts/LINEAR LTD/FIRE EXTINGUISHERS/listofpdfs.php"); I would appreciate any advice on including the company name, e.g. LINEAR LTD from an external file named name.php Quote Link to comment Share on other sites More sharing options...
grucker Posted February 3, 2014 Author Report Share Posted February 3, 2014 I have the following code which works include ("../../../../../accounts/accounts/LINEAR LTD/FIRE EXTINGUISHERS/listofpdfs.php"); I would appreciate any advice on including the company name, e.g. LINEAR LTD from an external file named name.php I found 2 working answers and this is the one I used. $name = trim(file_get_contents('../../name.php')); include ("../../../../../accounts/accounts/{$name}/PERIODIC/listofpdfs.php"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.