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

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
koguee
Forum Newbie
Posts: 18
Joined: Thu Aug 14, 2008 5:13 am
Location: Philippines
Contact:

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

Post 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.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

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

Post 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.
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

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

Post 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
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

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

Post by JAB Creations »

panic!, that's pretty bad man. :|

Code: Select all

AddType application/xhtml+xml .xhtml
koguee
Forum Newbie
Posts: 18
Joined: Thu Aug 14, 2008 5:13 am
Location: Philippines
Contact:

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

Post by koguee »

thanks. i't try header thingy.
koguee
Forum Newbie
Posts: 18
Joined: Thu Aug 14, 2008 5:13 am
Location: Philippines
Contact:

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

Post by koguee »

header doesn't work. it cannot recognize the
symbol <? for the xml tag.
____
tried freehostia and goes pretty nice.
thanks.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

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

Post by JAB Creations »

Code: Select all

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