Jump to content

Page completely ruined after upload


manix

Recommended Posts

Hey, not sure if this is where I'm supposed to post but I'm guessing ...

 

Well here's how my index page looks on my local host:

 

goodhk.jpg

 

And here's how it looks when I uploaded it to my hosting ftp server

 

badti.jpg

 

Basically it's not loading some images for an unknown reason, other than that it's all working great. And no, there're no missing files or messed paths they're all set right, that's why I don't understand why they're not being loaded. Any help would be appreciated!

Link to comment
Share on other sites

well here's the code to my home page

 

<html>
<head>
<title></title>
</head>
<body>
<style type="text/css">
html {  background: url(bg.jpg) no-repeat center center fixed;
        background-size: cover;}
</style>

<form name="form_menu">

<img src="buttons/home2.jpg"/>
<a href="Shared.php"><img src="buttons/Shared1.jpg" name="shared" onmousedown="form_menu.shared.src='buttons/shared2.jpg'"/> </a>
<a href="Share.php"><img src="buttons/Share1.jpg" name="share" onmousedown="form_menu.share.src='buttons/share2.jpg'"/></a>
<a href="Contact.php"><img src="buttons/Contact1.jpg" name="contact" onmousedown="form_menu.contact.src='buttons/contact2.jpg'"/></a>
<hr>
</form>


<div align="center"><img src="Logo.jpg" vspace="180" name="logo"/></div>


</body>
</html>

Link to comment
Share on other sites

From php.net

'DOCUMENT_ROOT'
The document root directory under which the current script is executing, as defined in the server's configuration file.

Insert this into one if your php documents to check your document root file. Your files will need to be linked to it.

echo $_SERVER['DOCUMENT_ROOT'];

Link to comment
Share on other sites

ofcourse I will, that's just a prototype to see how things will go and for now I need a solution for my problem ;s

 

I gave the solution and in fact the first person that replied already did!

 

it's not Logo.jpg but logo.jpg
Link to comment
Share on other sites

well sorry to say but having  to repeat myself 3 times doesn't happen very often here. so i'll just repeat myself.

 

ultra capslock on:

 

YOUR FILENAMES ARE INCORRECT!!

 

 

look in your folder where you store the images, what are the names??? compare those with the stuff in your code!

 

good luck! this is solved

 

P.s. in case the above makes no sense can you see the difference between the words:  buttons/Home2.jpg  and buttons/home2.jpg

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.