html - what's wrong with this include statement that i did in php? -


<?php      include("articles/article_6.html"); ?> 

i wanted article posted on website gives error:

parse error: syntax error, unexpected 'version' (t_string) in /opt/lampp/htdocs/white_coats/articles/article_6.html on line 1

article_6.html has no php tags. word file saved in .html displayed on website. it's article pictures.

then don't include it. read it's contents , print em. include statements code includes , not plain html or text content.

echo file_get_contents("articles/article_6.html"); 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -