manix Posted June 24, 2011 Share Posted June 24, 2011 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: And here's how it looks when I uploaded it to my hosting ftp server 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! Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/ Share on other sites More sharing options...
gristoi Posted June 24, 2011 Share Posted June 24, 2011 are the paths to your images relative or absolute. with posting any code it is going to be very hard to help you Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234297 Share on other sites More sharing options...
manix Posted June 24, 2011 Author Share Posted June 24, 2011 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> Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234300 Share on other sites More sharing options...
gristoi Posted June 24, 2011 Share Posted June 24, 2011 And whats your folder structure. according to your code you should have uploaded a buttons folder and index file at the same root level. Is this right? Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234303 Share on other sites More sharing options...
manix Posted June 24, 2011 Author Share Posted June 24, 2011 yes. htdocs/index.php (which includes home.php) htdocs/buttons/buttonicons.jpg Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234304 Share on other sites More sharing options...
gristoi Posted June 24, 2011 Share Posted June 24, 2011 where is logo.jpg situated ? Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234307 Share on other sites More sharing options...
fugix Posted June 24, 2011 Share Posted June 24, 2011 You might want to use $_SERVER['DOCUMENT_ROOT'] to find your servers root directory path. Which will allow you to determine what path your files need to be linked to. Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234308 Share on other sites More sharing options...
manix Posted June 24, 2011 Author Share Posted June 24, 2011 i'm not quite sure I understand what you're telling me to do :/ Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234326 Share on other sites More sharing options...
fugix Posted June 24, 2011 Share Posted June 24, 2011 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']; Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234329 Share on other sites More sharing options...
manix Posted June 24, 2011 Author Share Posted June 24, 2011 ok so the dir is /home/vol1/freehosting.bg/freeh_8348833/htdocs so i have to insert that before all my files ? +subfolders Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234387 Share on other sites More sharing options...
cssfreakie Posted June 24, 2011 Share Posted June 24, 2011 besides your use of bad tags. The path to your image is wrong it's not Logo.jpg but logo.jpg. Having seen your code i recommend you read a little about the hover property and stop using bad tags. Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234392 Share on other sites More sharing options...
manix Posted June 24, 2011 Author Share Posted June 24, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234393 Share on other sites More sharing options...
cssfreakie Posted June 24, 2011 Share Posted June 24, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234395 Share on other sites More sharing options...
manix Posted June 24, 2011 Author Share Posted June 24, 2011 well I did what you suggested and it didn't work.. my images still fail to load, although some of them don't X_X Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234396 Share on other sites More sharing options...
.josh Posted June 24, 2011 Share Posted June 24, 2011 well I don't know what to tell you...the only reason you would get that broken image icon is because the browser is making a request to the server and the server can't find it. So your path and/or spelling of the image file is wrong, and that's all there is to it. Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234398 Share on other sites More sharing options...
cssfreakie Posted June 24, 2011 Share Posted June 24, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234401 Share on other sites More sharing options...
.josh Posted June 24, 2011 Share Posted June 24, 2011 Also you may need to clear your browser's cache and file history to see your changes. Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234406 Share on other sites More sharing options...
manix Posted June 24, 2011 Author Share Posted June 24, 2011 wow I feel so retarded at the moment... The case was really the problem... Thanks ALOT and sorry about my retardedness.. Quote Link to comment https://forums.phpfreaks.com/topic/240302-page-completely-ruined-after-upload/#findComment-1234412 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.