Includes
I am trying to get an include working
I have page 2 test2.php and
page1 test.pho
in page 2 I have code
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<p>This is test 2 </p>
<?php include(test.php); ?>
</body>
</html>
When I press Live I see errors
This is test 2
Notice: Use of undefined constant test - assumed 'test' in C:\xampp\htdocs\fb-design-responsive\test2.php on line 9
Notice: Use of undefined constant php - assumed 'php' in C:\xampp\htdocs\fb-design-responsive\test2.php on line 9
Warning: include(testphp): failed to open stream: No such file or directory in C:\xampp\htdocs\fb-design-responsive\test2.php on line 9
Warning: include(): Failed opening 'testphp' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\fb-design-responsive\test2.php on line 9
Can anyone see where I am going wrong please?
Many thanks
John