I'm doing an include within an include as a starting point. I know its wrong - after all it gives an error, I pasted it to show what I am trying
The reason is....the second include [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]<? include("/home/lifeins/public_html/root.php"); ?>[/quote] is for code that shows the url of the site (http://www.domain.com
). By itself it shows the url of the domain correctly because 'root.php' has the correct php string for the url.
Now, what I want to do is [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]<?php include ("http://www.domain.co...r/linktator.php
)" ?>[/quote] however, since I already
have code that automatically references the url (in root.php) I would like to somehow reference root.php which is located in the 'public_html' folder.
So what would be the correct way to reference the 'root.php' file without having to type in the actual url?
(The reason is because there are many domains I need to do this for).