Hi everyone I am trying to make an includes file for my website www.askyourcook.com. I do not know a thing about doing this and am looking for help .I am a rookie but will to learn new things .Can someone walk me though this please Thank
Use php: <?php $myFile = "filelocation"; // $var = fopen($myFile, 'r'); $variabletocallinhtml = fread($var, filesize($myFile)); fclose($var); ?> then just call the variable $variabletocallinhtml in the area of the website.
1st way: <!--#include virtual="/somefolder/somefile.htm" --> 2nd way: <?php include_once("somefolder/somefile.inc"); ?>