If I may just briefly introduce myself, I am David and live in Bolton in the UK. I am learning PHP "on the fly" and hope you accept dumb questions from a complete novice here
I wonder if someone may be able to help me with a problem I have, I'll do my best to explain.
On a script I have the main files are php but use includes to html template pages.
I wish to display the site path to a directory when I browse to the php file.
The actual line of text I wish to display on screen is:
If I use only the php file I can type:include_once("/home/sites/user/public_html/member/3rdpartysession.php");
Code: Select all
include_once("<?php echo $path; ?>member/3rdpartysession.php");missing out the actual <?php echo $path; ?> part because it's in the html page I guess.include_once("member/3rdpartysession.php");
Is there a token I can use in the html page code to replace the php echo $path; ?> part? If so, do I need to add anything in the php file to make it work?
Many thanks in advance for your replies.
Regards
David