Web Design Forums

HTML and CSS Help

Having problems with these web design scripting? Ask here.

IE tries opens my html code, instead of the website



Site of the Month Nominations
ENTER YOUR SITE NOW!

Reply
 
LinkBack Thread Tools
Old June 9 '09, 05:59 PM (#1)
shadey4 is offline
New Member!
 
shadey4's Avatar
 
Join Date: June 2009
Location: Victorville, CA
Posts: 7
shadey4 is an unknown quantity at this point
Send a message via AIM to shadey4 Send a message via MSN to shadey4 Send a message via Yahoo to shadey4
IE tries opens my html code, instead of the website

My web pages are http://www.shadey4.com/b3lph3g0r and http://www.shadey4.com/alex. The alex page works fine. The b3lph3g0r page works in Firefox and worked earlier today in IE. When you go to that page it tries to open the html file in notepad instead of IE. I thought I might have made a coding mistake so I tried to use the alex page to re-create the b3lph3g0r page, but no luck, still doing the same thing. The page still works in firefox.

I'm sure I'm doing something stupid. I've done web pages on and off for years as a hobby.

Thank you,

Conrad
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 9 '09, 07:21 PM (#2)
mlseim is offline
WDF Staff
 
mlseim's Avatar
 
Join Date: April 2004
Location: Cottage Grove, Minnesota
Posts: 3,401
mlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud of
Do you have a directory called: b3lph3g0r ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 9 '09, 09:14 PM (#3)
shadey4 is offline
New Member!
 
shadey4's Avatar
 
Join Date: June 2009
Location: Victorville, CA
Posts: 7
shadey4 is an unknown quantity at this point
Send a message via AIM to shadey4 Send a message via MSN to shadey4 Send a message via Yahoo to shadey4
Quote:
Originally Posted by mlseim
Do you have a directory called: b3lph3g0r ?
I only have one directory. This file is named b3lph3g0r.html. I have many pages with different subjects, should I be using directories?

Thank you,

Conrad
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 9 '09, 09:18 PM (#4)
shadey4 is offline
New Member!
 
shadey4's Avatar
 
Join Date: June 2009
Location: Victorville, CA
Posts: 7
shadey4 is an unknown quantity at this point
Send a message via AIM to shadey4 Send a message via MSN to shadey4 Send a message via Yahoo to shadey4
Quote:
Originally Posted by shadey4
I only have one directory. This file is named b3lph3g0r.html. I have many pages with different subjects, should I be using directories?

Thank you,

Conrad
I'm sorry I replied hastily. I do not have a directory called b3lph3g0r. I only have my main directory.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 9 '09, 09:34 PM (#5)
Wired is offline
WDF Alien Overlord
 
Wired's Avatar
 
Join Date: April 2003
Posts: 6,421
Wired is just really niceWired is just really niceWired is just really niceWired is just really nice
Send a message via AIM to Wired
Websites need file extensions on the file itself. I'm guessing firefox is reading the code of the page to see that it's an HTML file, whereas IE is only looking at the file extension.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 9 '09, 11:24 PM (#6)
shadey4 is offline
New Member!
 
shadey4's Avatar
 
Join Date: June 2009
Location: Victorville, CA
Posts: 7
shadey4 is an unknown quantity at this point
Send a message via AIM to shadey4 Send a message via MSN to shadey4 Send a message via Yahoo to shadey4
Quote:
Originally Posted by Wired
Websites need file extensions on the file itself. I'm guessing firefox is reading the code of the page to see that it's an HTML file, whereas IE is only looking at the file extension.
You hit the nail right on the head. Too bad for me, now I have to go back and change 40 + pages.

I am on Linux at home where I work on my pages and I didn't test my pages on IE until I went to work. I downloaded ies4, so I can test my pages on older versions of IE.

Thank you for your assistance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 10 '09, 03:46 AM (#7)
Danny[MLWA] is offline
WDF Regular
 
Danny[MLWA]'s Avatar
 
Join Date: June 2009
Location: Goldsboro, North Carolina, USA
Posts: 109
Danny[MLWA] is on a distinguished road
The problem you're having is the server is not sending the mime type as HTML instead it is sending it as plain text.

Before any webpage is sent to the web-browser the server sends a packet of information preceeding the page that tells the browser how to handle it.. some instances are TEXT, HTML, IMAGE, and FILE. If for instance your MIME types are hosed up, you could also be actually getting a download prompt in your browser when you try and view an image. You'll just have to search through your hosting provider's settings and make sure those are all set correctly and that the webserver is handling those file-types like it should.

I'm an avid Linux supporter in the server platforms and I'll say that having a linux server with apache cuts out these types of problems nearly 100%. Linux actually reads the file types from the file itself... Windows uses the extension to determine what kind of file it is, what to open it with through the registrey which is proven faster, however it can become very innacurate. Linux actually pre-opens the file first, reads the file headers for the file type and then makes the appropiate determination of what kind of file it is and what it is best opened with. Because the Apache Webserver is designed for Linux/Unix it does the same thing if not installed on Windows or OS2 Warp.

I'm not sure what you're rig looks like on you're web-hosting end but if you could gain access to some kind of control panel and add .html .htm as MIME types "HTML" that should get things fixed for you.

Also if you're trying to run something.php without php being installed it would do the same thing, so it would be up to the person(s) hosting your site to ensure that software is installed.

Last edited by Danny[MLWA]; June 10 '09 at 03:51 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 10 '09, 01:17 PM (#8)
shadey4 is offline
New Member!
 
shadey4's Avatar
 
Join Date: June 2009
Location: Victorville, CA
Posts: 7
shadey4 is an unknown quantity at this point
Send a message via AIM to shadey4 Send a message via MSN to shadey4 Send a message via Yahoo to shadey4
Quote:
Originally Posted by Danny[MLWA]
The problem you're having is the server is not sending the mime type as HTML instead it is sending it as plain text.

Before any webpage is sent to the web-browser the server sends a packet of information preceeding the page that tells the browser how to handle it.. some instances are TEXT, HTML, IMAGE, and FILE. If for instance your MIME types are hosed up, you could also be actually getting a download prompt in your browser when you try and view an image. You'll just have to search through your hosting provider's settings and make sure those are all set correctly and that the webserver is handling those file-types like it should.
I am at work and cannot look into it at the moment. I am on GoDaddy hosting and I am pretty sure I have Linux hosting. Tonight or tomorrow I will go onto the Goaddy control panel and look into it. Funny you should mention php, the night before (Monday) I was trying to install Joomla via Virtual Box / Jumpbox, but I did not finish it. When I got to the part to put in the ip address, it timed out. I think I was supposed to install it onto GoDaddy first, which I didn't do. Another one of my To Do's. I don't know if that had any affect on my problem.

Thank you for your assistance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 10 '09, 01:43 PM (#9)
Danny[MLWA] is offline
WDF Regular
 
Danny[MLWA]'s Avatar
 
Join Date: June 2009
Location: Goldsboro, North Carolina, USA
Posts: 109
Danny[MLWA] is on a distinguished road
You are sure that php is installed and working for your account on Godaddy?

Try uploading a php file with this in it:
Code:
<?php phpinfo(); // I think that is it... ?>
If that displays a lot of config values, php is working fine, if not... thats a new ball-game.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 10 '09, 01:54 PM (#10)
blackrhino is offline
WDF Member
 
blackrhino's Avatar
 
Join Date: February 2009
Posts: 36
blackrhino is an unknown quantity at this point
I always do a web layout and then upload the first page before I continue to work on the rest of the layout. That normally saves a lot of time, especially if their are errors and the rest of the website has the same layout.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 10 '09, 04:16 PM (#11)
shadey4 is offline
New Member!
 
shadey4's Avatar
 
Join Date: June 2009
Location: Victorville, CA
Posts: 7
shadey4 is an unknown quantity at this point
Send a message via AIM to shadey4 Send a message via MSN to shadey4 Send a message via Yahoo to shadey4
I put the code in and it gave me this huge list of settings. Excuse my ignorance, but I don't want to post the information for everyone to see. Do you want me to send it to you in an email?

Thanks again,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 10 '09, 08:45 PM (#12)
aeroweb99 is offline
<div id="learn"></div>
 
aeroweb99's Avatar
 
Join Date: February 2008
Location: Port Huron, Michigan
Posts: 986
aeroweb99 is just really niceaeroweb99 is just really niceaeroweb99 is just really niceaeroweb99 is just really niceaeroweb99 is just really nice
If it displayed a bunch of info, then it's fine. The only thing with godaddy is I believe they are still running php4, which may present some problems with the newer scripts that are designed.

Adding a file extension to 40 pages ain't that bad!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 10 '09, 09:13 PM (#13)
Wired is offline
WDF Alien Overlord
 
Wired's Avatar
 
Join Date: April 2003
Posts: 6,421
Wired is just really niceWired is just really niceWired is just really niceWired is just really nice
Send a message via AIM to Wired
Ultimately you need file extensions on your files. It's very easy to do, and will solve a lot of issues.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 10 '09, 09:51 PM (#14)
Danny[MLWA] is offline
WDF Regular
 
Danny[MLWA]'s Avatar
 
Join Date: June 2009
Location: Goldsboro, North Carolina, USA
Posts: 109
Danny[MLWA] is on a distinguished road
Yeah just to be safe, rename your files to something.php, if you want the .php to be hidden you can use mod_rewrite to do that for you assuming Godaddy has mod_rewrite enabled for Apache... I don't see why they wouldn't.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 11 '09, 12:05 AM (#15)
shadey4 is offline
New Member!
 
shadey4's Avatar
 
Join Date: June 2009
Location: Victorville, CA
Posts: 7
shadey4 is an unknown quantity at this point
Send a message via AIM to shadey4 Send a message via MSN to shadey4 Send a message via Yahoo to shadey4
I will go back and rename all of my files. Thanks to all of you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 11 '09, 08:14 PM (#16)
straight_up is offline
$man->withAMission()? //true
 
straight_up's Avatar
 
Join Date: December 2003
Location: Pennsylvania/Arizona
Posts: 602
straight_up has a spectacular aura aboutstraight_up has a spectacular aura about
Send a message via AIM to straight_up Send a message via Yahoo to straight_up
Apparently this issue is resolved, but if anyone has a similar case, IE displaying code or something other than a rendered web page while other browsers do just fine can be a case of sending the "true" XHTML MIME type instead of the HTML MIME type. Application/XML+XHTML breaks IE (at least some versions).

Also: If you want to retain the file-extensionless look of your website's pages, you can do this with a Mod_Rewrite rule.

Last edited by Wired; June 12 '09 at 04:17 AM. Reason: merged posts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » HTML and CSS Help

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Top 21 PHP Programming mistakes thexchord PHP 19 June 18 '10 02:20 PM
Co-founder for website needed (website coding skills required) pro.gui For Hire / Wanted 3 July 30 '07 06:28 AM
Code tags reminder filburt1 Announcements 4 November 3 '05 06:29 PM
website code cleanup. rneedham For Hire / Wanted 0 June 13 '05 04:34 PM
JavaScript Dropdown Menu Tutorial [Li] Brad Coding Articles & Tutorials 12 August 17 '04 03:16 PM

 
User Infomation
Your Avatar

Site Of The Month

Ticket Cake
Ticket Cake

Ticket Cake is a drupal based event ticketing platform. It features that ability to browse events and share them.

Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 02:38 AM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163