PDA

View Full Version : Resolved My index file can't be read...


Millenia
08-31-2008, 04:06 PM
The name of my index file is "index.php". Although after uploading it, it can't be shown. My browser is showing theres a page there, but it's empty. Look:

The problem is with this 1 file, the others work fine. Heres my HTML code if you want it.
Not even the validator can find the code.

Although it works locally!

<?xml version="1.0" encoding="utf-8"?>
<!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" xml:lang="en" lang="en">
<head>

<title>Netshed.info</title>
<meta http-equiv="content-type" content="text/html; charset=us-ascii" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<style type="text/css">
/*<![CDATA[*/
div.c1 {margin-left: 2em; text-align: center}
/*]]>*/
</style>
</head>

<body>
<div id="container">
<div id="navigation">
<a href="#">Home</a> <a href="#">Browse Content</a> <a href="#">Forums</a> <a href=
"#">Submit Article</a> <a href="#">Log in</a> <a href="#">Register</a> <a href=
"#">Contact Us</a>
</div>

<h1><a href="./"><img src="images/header.png"/></a></h1>

<div id="columns">
<div class="col1">
<h2><span>Log in</span></h2>

<div class="c1">
<form action="login.php?try=true" method="post">
Username: <input type="text" name="username" /><br />
<br />
Password: <input type="password" name="password" /><br />
<br />
<button type="submit" value="Submit">Submit</button>
</form><br />
<a href="register.php">Click here to register</a>
</div><br />

<h2><span>Content</span></h2>

<ul>
<li><a href="#">Browse all content alphabetically</a></li>

<li class="h"><a href="#">View the 5 latest articles</a></li>

<li><a href="#">Submit content</a></li>

<li class="h"><a href="#">Spread the word</a></li>
</ul>

<p class="clear"></p>
</div>

<div class="col2">
<h2><span>Welcome to Netshed</span></h2>

<div class="content">
<p>Announced by Admin</p>
</div>

<div class="content">
<p>Welcome to Netshed, we aim to become a popular community portal for computing related
topics. As well as allowing you to discuss these things, we have a selection of articles
that are written by staff as well as members.</p>

<p>To get started please register. After registering you will have access to the
community, although as a guest you can browse our articles.</p>

<p>If you are interested in becoming one of our affiliates, we have a number of options.
<a href="#">Click here for more info.</a></p>
</div>

<h2><span>Forums</span></h2>

<div class="content">
<p>Announced by Admin</p>
</div>

<div class="content">
<p>The Netshed forums are now up. To get started you must register. Before posting please
check out the rules by clicking <a href="#">here</a></p>
</div>

<div class="content">
<p>To visit the forums click <a href="#">here</a></p>
</div>

<p class="clear"></p>
</div>

<div class="col1">
<h2><span>Forums</span></h2>

<ul>
<li><a href="#">Forums</a></li>

<li class="h"><a href="#">Register</a></li>

<li><a href="#">Log in</a></li>

<li class="h"><a href="#">Forum rules</a></li>
</ul>

<h2><span>Affiliates</span></h2>

<ul>
<li class="h"><a href="#">Get your link here free! *</a></li>
</ul>

<h2><span>Site Info</span></h2>

<ul>
<li><a href="#">Site info</a></li>

<li class="h"><a href="#">Terms of use</a></li>
</ul>

<p class="clear"></p>
</div>
</div>

<p id="footer">&copy; Netshed 2008 All Rights Reserved</p>
</div>
</body>
</html>
I'm so annoyed because it took all day...

It was a problem with my doctype, I'm sorry for posting so soon after the problem.

abduraooft
08-31-2008, 04:10 PM
I couldn't see any reason, as it's a static page. make sure that there is no error encountered to your server(you may need to contact the hosting support team, if any)
On my second trial, I got the page... have you managed it?

Millenia
08-31-2008, 04:11 PM
I couldn't see any reason, as it's a static page. make sure that there is no error encountered to your server(you may need to contact the hosting support team, if any)

Sorry about this, I fixed it by changing the doctype.

_Aerospace_Eng_
08-31-2008, 10:44 PM
What was your original doctype? Also did you know that this line
<?xml version="1.0" encoding="utf-8"?>
is causing IE6 to go into quirks mode? I suggest you remove it.

Millenia
08-31-2008, 10:54 PM
What was your original doctype? Also did you know that this line
<?xml version="1.0" encoding="utf-8"?>is causing IE6 to go into quirks mode? I suggest you remove it.

I have removed it :)
Because I do want to maintain cross browser compatibility. But first I have to cross the "Make my PHP validate" river.