Jump to content

New to php


thekoopa

Recommended Posts

I am following this basic tutorial on building a simple page with php but I keep getting an error.

 

Parse error: syntax error, unexpected '<' in /home/thekoop/public_html/testtest/main.php on line 2

 

I followed the tutorial exactly as it says. Here's to code for it.

<?php 
<html> 
<head> 
<title>Simple PHP page</title> 
</head> 
<body> 
<?php 
include ($_SERVER['DOCUMENT_ROOT'].'/inc/header.php'); 
include ($_SERVER['DOCUMENT_ROOT'].'/inc/navigation.php'); 
include ($_SERVER['DOCUMENT_ROOT'].'/inc/footer.php'); 
?> 
</body> 
</html>

 

I know this is probably something really dumb but this is my first time using php.

Link to comment
https://forums.phpfreaks.com/topic/73219-new-to-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.