Can a php extension be removed?
123 reg is hosting my website.i’m using the file manager to upload the website. it says the first page has to be index.htm or index.html. so i renamed the file to that. it is a php file and so when i upload the file, it’s called index.html.php. can i get rid of the extension name? all i need is index.html. what can i do to fix this? it also asks whether it should be uploaded as text or binary. *confusion* plz help!
index.php works fine so you don’t need to change anything. Just upload it as index.php
The browser will look for an htm or html file first but as long as your only index file is the .php it will then go to that.
i would suggest downloading ace3ftp from the link below. It’s free and makes uploading your sites a doddle. It decides how to upload automatically…


mmm…ok…
to answer your second question, it’s mostly images/flash etc that should be uploaded as binary. Anything that ends with .htm/.html/.php/.css should be uploaded as text.
First question, try this: edit the entire contents of your .php file with the following:
1) Paste this BEFORE all your php code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>PAGE TITLE HERE</title>
</head>
<body>
2) Paste this AFTER all your php code
</body>
</html>
3) Save file as .html or .htm
4) Lemme know how it goes!
References :
index.php works fine so you don’t need to change anything. Just upload it as index.php
The browser will look for an htm or html file first but as long as your only index file is the .php it will then go to that.
i would suggest downloading ace3ftp from the link below. It’s free and makes uploading your sites a doddle. It decides how to upload automatically…
References :
http://software.visicommedia.com/en/products/aceftpfreeware/