porko2004 Posted August 25, 2011 Share Posted August 25, 2011 im making a website it works fine on firefox but on ie doesnt work correctly. page looks weird i see the error is <? include("index/index_files/front/php/include.php"); ?> anyone can help me its in a <html> tab. Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/ Share on other sites More sharing options...
the182guy Posted August 25, 2011 Share Posted August 25, 2011 That doesn't look like an error to me. Have you got an error message in your error log file? browser inconsistencies are normally due to HTML and CSS issues rather than PHP. Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261833 Share on other sites More sharing options...
porko2004 Posted August 25, 2011 Author Share Posted August 25, 2011 this is the full script anyone know wats wrong. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <html> <? include("index/index_files/front/php/include.php"); ?> <head> <meta http-equiv="Content-Language" content="en-us"> <TITLE><?php echo $Website_Title;?></TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=shift_jis"> <meta name="keywords" content="<?php echo $Website_Keywords;?>"> <meta name="description" content="<?php echo $Website_Description;?>"> <meta http-equiv="adimage" content="201"> <link href="index/index_files/front/css/2008css.css" rel="stylesheet" type="text/css"> <link rel="SHORTCUT ICON" href="<?php echo $Front_Website_Favicon_Location;?>" /> <style type="text/css"> <!-- body { background-color: #310400; } --> </style> </head> <body> <div class="fullbg"> <div class="warpper"> <div class="top"></div> <div class="main"> <!--left--> <div class="left"></div> <!--left end--> <!--center--> <div class="center"> <div class="logo"></div> <div class="m1"></div> <div class="login"><a href="<?php echo $Front_SignUp_URL;?>"></a></div> <div class="enter"><a href="<?php echo $Front_Enter_URL;?>"></a></div> </div> <!--center end--> <!--right--> <div class="right"></div> <!--right end--> <!--nav--> <div class="nav"> <ul> <li class="n1"><a href="<?php echo $Front_Download_URL;?>" ></a> </li> <li class="n2"><a href="<?php echo $Front_Sales_URL;?>" ></a> </li> <li class="n3"><a href="<?php echo $Front_Support_URL;?>" ></a> </li> </ul> </div> <!--nav end--> </div> <!--footer--> <div class="footer"> <br><br> <font size = "2"><?php echo $Website_Copyright;?></font> </div> </div> </div> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261834 Share on other sites More sharing options...
Pikachu2000 Posted August 25, 2011 Share Posted August 25, 2011 If you're actually seeing the above lines in the browser, it's probably because you're using short open tags, and they are disabled on the server. You should use full <?php open tag syntax, as short tags are disabled by default. Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261836 Share on other sites More sharing options...
porko2004 Posted August 25, 2011 Author Share Posted August 25, 2011 if i remove <? include("index/index_files/front/php/include.php"); ?> website is fine this isnt a actual error just website on ie doesnt appear correctly Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261837 Share on other sites More sharing options...
Pikachu2000 Posted August 25, 2011 Share Posted August 25, 2011 Also, if the file has an extension other than .php, the server may not be set up to parse it. Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261838 Share on other sites More sharing options...
porko2004 Posted August 25, 2011 Author Share Posted August 25, 2011 http://211.30.186.225/ try this on ie and firefox u will know wat i mean Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261839 Share on other sites More sharing options...
the182guy Posted August 25, 2011 Share Posted August 25, 2011 if i remove <? include("index/index_files/front/php/include.php"); ?> website is fine this isnt a actual error just website on ie doesnt appear correctly You haven't actually said how it is appearing and how you expected it to. Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261840 Share on other sites More sharing options...
porko2004 Posted August 25, 2011 Author Share Posted August 25, 2011 if i remove <? include("index/index_files/front/php/include.php"); ?> website is fine this isnt a actual error just website on ie doesnt appear correctly You haven't actually said how it is appearing and how you expected it to. its to appear the same as on firefox but it isnt Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261841 Share on other sites More sharing options...
porko2004 Posted August 25, 2011 Author Share Posted August 25, 2011 by the way the file is a .php file Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261842 Share on other sites More sharing options...
Pikachu2000 Posted August 25, 2011 Share Posted August 25, 2011 Maybe you should clarify the problem. Exactly what is happening versus what should/should not be happening? Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261844 Share on other sites More sharing options...
porko2004 Posted August 25, 2011 Author Share Posted August 25, 2011 Ok sorry. The file i created is a .php file which includes html code as u can see above. When i add <?php include("index/index_files/front/php/include.php"); ?> within <html> into the website script it works fine on firefox which it gets the db tables and on IE does too but on IE the website isnt displayed correctly. if ppl view my site http://211.30.186.225/ in both browzers u will know at i mean. in firefox it appears full screen and in IE its small and on the side. Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261845 Share on other sites More sharing options...
Pikachu2000 Posted August 25, 2011 Share Posted August 25, 2011 Unable to connect Firefox can't establish a connection to the server at 211.30.186.225. In any case, this sounds like a CSS/HTML problem, not a PHP problem. Quote Link to comment https://forums.phpfreaks.com/topic/245680-little-problem/#findComment-1261846 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.