-Sky- 0 Report post Posted July 4, 2009 (edited) Hey.I am trying to include a piece of PHP coding into my Staff.html page for Central-Gaming. However It gives me a Parse error. Here is what I put in: <php include('staff.php'); Heres the whole code:Removed due to finding a different solution and alternative. Could anyone please help? Thanks. Edited July 4, 2009 by -Sky- (see edit history) Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted July 4, 2009 Terminate the include snippet <?php include('staff.php'); ?> Share this post Link to post Share on other sites
Quatrux 4 Report post Posted July 4, 2009 Just to add my 2 cents..If you get a parse error using PHP on a .html file, when it seems that PHP works, usually you need to use .php files for php to execute, but changing some values with .htaccess or in httpd.conf does the job to work for php on .html files on a server by using:AddType application/x-httpd-php .html .php .whateverand lets say .whatever will execute PHP script. Share this post Link to post Share on other sites
-Sky- 0 Report post Posted July 4, 2009 (edited) Terminate the include snippet <?php include('staff.php'); ?> Nope. Removing the "include" snippet from the code does not include the data from staff.php anymore. :angel: EDIT: I've just coded some tables in xHTML instead. Thanks. Check it out? Link: http://forums.xisto.com/no_longer_exists/ Just to add my 2 cents.. If you get a parse error using PHP on a .html file, when it seems that PHP works, usually you need to use .php files for php to execute, but changing some values with .htaccess or in httpd.conf does the job to work for php on .html files on a server by using: AddType application/x-httpd-php .html .php .whatever and lets say .whatever will execute PHP script. Thanks for that Quatrux, though I already had it in my .htaccess file. Edited July 4, 2009 by -Sky- (see edit history) Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted July 4, 2009 Sky, What I meant was to "end the php snippet" with the red code above. Share this post Link to post Share on other sites
-Sky- 0 Report post Posted July 4, 2009 Ahh yes. Anyways, I've coded a few tables etc for it now. It looks pretty good, both with Firefox and Internet Explorer 8.Link: http://forums.xisto.com/no_longer_exists/ Share this post Link to post Share on other sites