I need to retrieve a single value from a php file inside an html doc but the problem is the php file is called later on, past the point where I want to include that value.
eg:
<?xml version='1.0' encoding='utf-8'?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'> <head> <title><? php echo $pro_title ?></title> <!-- Can't retrieve value --> <meta name='Description' content='<? php echo $pro_title ?>' /> <!-- Can't retrieve value --> <meta name='Keywords' content='<? php echo $pro_title ?>' /> <!-- Can't retrieve value --> </head> <body> <!-- Header --> <?php include ("header.html") ?> <!-- Content Area Start --> <?php include ('product.php') ?> <!-- Okay --> <!-- Content Area End --> <!-- Footer --> <?php include ("footer.html") ?> </body> </html>
Is there a way to reference that single php value without including the whole file, as well as keeping the content where its included?
Filed under: php

0 comments:
Post a Comment