So I have a websites developed in 'modules'. I created some functions so it is easy to maintain the website. My question: how I make the path to include the function?
When I do this: <?php include("header.php"); ?> everything is fine.
But when try <?php include("http://exampleofwebsite.com/some_folder/header.php"); ?> it doesn't work. For now I had to duplicate some functions and put them into specific folders however it will be nice to have a functions which I can reach anytime I need via path without duplicating them.
I tested some solutions on my localhost however could not make anything to work.
Appreciate any help. Thank you.
When I do this: <?php include("header.php"); ?> everything is fine.
But when try <?php include("http://exampleofwebsite.com/some_folder/header.php"); ?> it doesn't work. For now I had to duplicate some functions and put them into specific folders however it will be nice to have a functions which I can reach anytime I need via path without duplicating them.
I tested some solutions on my localhost however could not make anything to work.
Appreciate any help. Thank you.