Jump to content
xisto Community
-Sky-

Parse Error In Staff.html

Recommended Posts

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 by -Sky- (see edit history)

Share this post


Link to post
Share on other sites

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

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. :excl:

Thanks for that Quatrux, though I already had it in my .htaccess file. :(
Edited by -Sky- (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.