Page 1 of 1

i need an xhtml web host to upload my .xhtml pages

Posted: Sat Jan 10, 2009 3:43 am
by koguee
anyone who knows a website that
hosts .xhtml pages. I just need one
so I can upload my .xhtml pages so that
I can present my MathML assignment.

BTW. I just need a free host.
Thanks.

Re: i need an xhtml web host to upload my .xhtml pages

Posted: Sat Jan 10, 2009 11:00 pm
by JAB Creations
You don't need any special permission on any normal host to use whatever file extensions you'd like. If you have a host that allows only certain file extensions time to dump then and move on!

I'm not sure off hand if you use the same content-type as XHTML in general though if you are already executing PHP on the server you can just have PHP set the content-type headers as so...

Code: Select all

<?php
header('Content-Type: application/xhtml+xml');
?>
Remember you can not set headers once any content has been sent so you'll want to setup your header file as the first to be included in your serverside templates.

Re: i need an xhtml web host to upload my .xhtml pages

Posted: Sun Jan 11, 2009 4:37 pm
by panic!
koguee wrote:anyone who knows a website that
hosts .xhtml pages. I just need one
so I can upload my .xhtml pages so that
I can present my MathML assignment.

BTW. I just need a free host.
Thanks.
I think freehostia will allow this. You need to use addtype in your .htaccess file.

create a file called .htaccess and put this in it:

AddType text/html .xhtml

Re: i need an xhtml web host to upload my .xhtml pages

Posted: Sun Jan 11, 2009 6:03 pm
by JAB Creations
panic!, that's pretty bad man. :|

Code: Select all

AddType application/xhtml+xml .xhtml

Re: i need an xhtml web host to upload my .xhtml pages

Posted: Mon Jan 12, 2009 3:49 am
by koguee
thanks. i't try header thingy.

Re: i need an xhtml web host to upload my .xhtml pages

Posted: Mon Jan 12, 2009 4:33 am
by koguee
header doesn't work. it cannot recognize the
symbol <? for the xml tag.
____
tried freehostia and goes pretty nice.
thanks.

Re: i need an xhtml web host to upload my .xhtml pages

Posted: Mon Jan 12, 2009 4:57 am
by JAB Creations

Code: Select all

<?php
header('Content-Type: application/xhtml+xml');
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
?>