sooty2006 Posted March 22, 2009 Share Posted March 22, 2009 i have a website which is large and handles alot of traffic.to save having every script, function etc on one page, i require the pages needed.so when a visitor clicks on 'home' it requires, require("dir/home.php");this all works in IE, but when you use Firefox it just shows a blank screen, it shows framework and requires DB Connection etc, but not the page i need it to. I have tried include and include_once but still wont work.why is this, and how could i solve the problem?many thanks. Link to comment Share on other sites More sharing options...
jeffman Posted March 22, 2009 Share Posted March 22, 2009 The include and require functions do not care what the browser is. So that is not the issue.Possibility 1. If the file path you are passing to include() is being generated by (or influenced by) the browser, then perhaps there is a difference in the way IE and FF are generating/sending data to PHP. I could easily see this happening with an AJAX call.Possibility 2. IE and FF tolerate malformed HTML in different ways. It could be that the HTML being generated by home.php is acceptable to IE but not to FF. Or it could be that your include() statement is writing the HTML from home.php in a slightly incorrect position. (Example: </tr>nothing can exist here<tr>.) The easiest way to find out is to View Source and see what the generated HTML looks like. Running the generated HTML through the W3C Validator might suggest an answer, too.Does Error Console shed any light on the problem? Link to comment Share on other sites More sharing options...
sooty2006 Posted March 22, 2009 Author Share Posted March 22, 2009 Does Error Console shed any light on the problem?no not at all.checked the page source before, it does actually show code/html just not printing it to the user's screen!how could that be? Link to comment Share on other sites More sharing options...
jeffman Posted March 22, 2009 Share Posted March 22, 2009 No idea. Maybe you could provide a link? Or simply post the generated HTML? Link to comment Share on other sites More sharing options...
sooty2006 Posted March 22, 2009 Author Share Posted March 22, 2009 i have tried to post generated text, but i dont know how to disable html on this topic!i just carnt figure out why it wont print it to users screen! Link to comment Share on other sites More sharing options...
jeffman Posted March 22, 2009 Share Posted March 22, 2009 i have tried to post generated text, but i dont know how to disable html on this topic!I don't get you. Sorry. Link to comment Share on other sites More sharing options...
jlhaslip Posted March 23, 2009 Share Posted March 23, 2009 place the html code inside code bbtags. [ code] ... html here[/ code] Remove the spaces in actual use. Link to comment Share on other sites More sharing options...
sooty2006 Posted March 24, 2009 Author Share Posted March 24, 2009 this is the page source, all printed elements from the home.php are in the to its not showing the tables in firefox only! <html><head><title>Home - Users</title><script type="text/javascript" language="javascript" src="js/global.js"></script><script type="text/javascript" language="javascript" src="js/local.js"></script><script type="text/javascript" language="javascript" src="js/x-file.js"></script><script type="javascript" language="javascript" src="popup.php"></script><link rel="stylesheet" type="text/css" href="css/style.css"><link rel="stylesheet" type="text/css" href="css/bb_style.css"><link rel="stylesheet" type="text/css" href="css/nav_style.css"><script type="text/JavaScript">var qm_si,qm_li,qm_lo,qm_tt,qm_th,qm_ts,qm_la,qm_ic,qm_ib,qm_ff;// blahh blahh no need to post this way to long</script><script type="text/javascript">function emotion(em) { document.text.message.value=document.text.message.value+em;}</script></head><body style="margin: 5px; background-color: #141414;"><script type="text/javascript">var currenttime = 'March 22, 2009 16:52:17'var serverdate=new Date(currenttime)function padlength(what){var output=(what.toString().length==1)? "0"+what : whatreturn output}function displaytime(){serverdate.setSeconds(serverdate.getSeconds()+1)var timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds())document.getElementById("servertime").innerHTML=timestring}window.onload=function(){setInterval("displaytime()", 1000)}</script><center><table cellpadding="0" cellspacing="0" width="100%" height="100%" align="center" style="border: 2px solid #999999;"><tr><td><table cellpadding="0" cellspacing="0" width="100%"><tr><td style="height:57px; background-image: url('images/lg.top.png');" valign="top" width="25%"> <a href="?page=profiles&id=1"><u>Mr Esnce</u></a><br> <span id="servertime"></span></td><td style="height:57px; background-image: url('images/lg.top.png');" align="center" valign="top" width="50%"><img src="images/header.png" alt="Header/Logo"></td><td align="right" style="height:57px; padding: 3px; background-image: url('images/lg.top.png');" valign="top" width="25%"><img src="images/lang/gb.png"> <img src="images/lang/nl.png"></td></tr></table></td></tr><tr><td><table width="100%" cellpadding="0" cellspacing="0" style="height: 20px; background-image: url('css/images/lg.mid.png');"><tr><td width="70%" valign="middle"><div id="qm0" class="qmmc"><a href="java script:PopUp('/admin.php')"><span id='adm'><b>Admin</b></span></a><div><a href="java script:PopUp('/admin.php')"><b>Control Panel</b></a></div><a href='?page=inbox'>Mailbox (0)</a><div><a href='?page=inbox'><b>Inbox (0)</b></a><a href='?page=outbox'>Outbox</a><a href='?page=saved_mail'>Saved Mail (0)</a></div><a href='?page=personal'>Personal</a><div><a href='?page=personal'><b>Personal</b></a><a href='?page=personal&id=3'>Account settings</a><div><a href='?page=personal&id=1'>Change Password</a><a href='?page=personal&id=2'>Change E-Mail</a><a href='?page=personal&id=3'>Account Settings</a><a href='?page=personal&id=8'>Languages</a></div><a href='?page=personal'>Other settings</a><div><a href='?page=personal&id=5'>Profile image</a><a href='?page=personal&id=6'>Profile quote</a><a href='?page=personal&id=9'>Give respect</a><a href='?page=personal&id=7'>Friends & Blocks</a></div><a href='?page=personal&item=003'>My Buildings</a><div><a href='?page=personal&item=003&id=1'>Bulletfactory's</a><a href='?page=personal&item=003&id=2'>Numbersgame's</a><a href='?page=personal&item=003&id=3'>Slot's</a><a href='?page=personal&item=003&id=4'>Roulette's</a><a href='?page=personal&item=003&id=5'>Racetrack's</a></div><a href='?page=payed'>Points</a></div><a href='?page=store'>Stores</a><div><a href='?page=auction'><b>Auction Room</b></a><a href='?page=bulletfactory'>Bulletfactory</a><a href='?page=racing'>Racetrack</a><a href='?page=roulette'>Roulette</a><a href='?page=numbersgame'>Numbersgame</a><a href='?page=slot'>Slots</a><a href='?page=hospital'>Hopsital</a><a href='?page=lottery'>Lottery</a><a href='?page=store'>Store</a><a href='?page=bank'><b>The Bank</b></a></div><a href='?page=helpdesk'>Help</a><div><a href='?page=games'>Games</a><a href='?page=fame'>Fame</a><a href='?page=helpdesk'><font color'orange'>Helpdesk</font></a><a href='?page=help'><b>Help</b></a><a href='?page=game_credits'>Game Credits</a><a href='?page=rules&id=mem'>Rules</a><div><a id='admin' href='?page=rules&id=adm'>Admin's</a><a id='moderator' href='?page=rules&id=mod'>Moderator's</a><a id='helpdesk' href='?page=rules&id=hel'>Helpdesk's</a><a id='newswriter' href='?page=rules&id=mem'>Newswriter's</a><a href='?page=rules&id=mem'><b>Player's</b></a></div><a href='?page=tos'>Terms of service</a><a OnClick="Logout();" style='cursor: pointer;'><b>Logout</b></a></div><span class="qmclear"> </span></div><script type="text/JavaScript">qm_create(0,false,0,500,false,false,false,false,false);</script></td><td width="30%" align="right" valign="middle"><font color='orange'>(1%)</font> <b>:Promo </b></td></tr></table></td></tr><tr><td valign="top" style="height: 100%;"><table height="100%" width="100%" cellpadding="0" cellspacing="0" align="center"><tr><td valign="top" height="100%" width="120px" style="padding: 5px; background-color: #191919; border: 1px solid #999999; border-left: 0px;"><span id="sub"><b>General</b></span><br><a id="nav" href="?page=home">Home</a><br><a id="nav" href="?page=site_news">Updates</a><br><a id="nav" href="?page=payed">Points</a><br><a id="nav" href="?page=online_players">Players online</a><br><a id="nav" href="?page=airport">Airport</a><br><a id="nav" href="?page=crew">Crews</a><br><a id="nav" href="?page=city">The City</a><br><a id="nav" href="?page=countrys">Countrys</a><br><a id="nav" href="?page=marriage">Marriage</a><br><a id="nav" href="?page=jail">Jail</a><br><a id="nav" href="?page=bank">Bank</a><br><a id="nav" href="?page=hitlist">Hitlist</a><br><a id="nav" href="?page=find_user">Search</a><br><a id="nav" href="?page=newspaper">Newspaper</a><br><a id="nav" href="?page=stats">Site stats</a><br><a id="nav" href="?page=main_forum">Forum</a><br><br><span id="sub"><b>Crimes</b></span><br><a id="nav" href="?page=crime">Crimes</a><br><a id="nav" href="?page=steal_a_car">Steal a car</a><br><a id="nav" href="?page=pickpocket">Pickpocket</a><br><a id="nav" href="?page=garage">Garage</a><br><a id="nav" href="?page=robberys">Robberys</a><br><a id="nav" href="?page=missions">Missions</a><br><a id="nav" href="?page=drugs">Drugs</a><br><a id="nav" href="?page=kill">Kill</a><br><br><span id="sub"><a id="nav" OnClick="Logout();" style='cursor: pointer;'><b>Logout</b></a></span><br></td><td valign="top" align="center" height="100%" style="border: 1px solid #999999; background-color: #282828; border-left: 0px; border-right: 0px;"><div style="width: 100%; height: 100%; overflow: auto"><br><br><span id="pop_print"><table width='95%' align='center'><tr><td width='32%' valign='top' align='center'><!-- DATA SHOWN STARTS HERE --><script>Table_Top('Staff','90%','');</script><table width='95%' align='center'><tr><td><b>Administrators:</b></td></tr><tr><td> <a href='?page=profiles&id=1'><span id='adm'><u>Mr Essence</u></span></a></td></tr><tr><td> <a href='?page=profiles&id=2'><span id='adm'><u>Milek</u></span></a></td></tr><tr><td> <a href='?page=profiles&id=6'><span id='adm'><u>Efanny</u></span></a></td></tr><tr><td> <a href='?page=profiles&id=7'><span id='adm'><u>Rihanne</u></span></a></td></tr><tr><td><b>Moderators:</b></td></tr><tr><td> <a href='?page=profiles&id=10'><span id='mod'><u>Gu10</u></span></a></td></tr><tr><td> <a href='?page=profiles&id=11'><span id='mod'><u>buu</u></span></a></td></tr><tr><td> <a href='?page=profiles&id=12'><span id='mod'><u>M P</u></span></a></td></tr><tr><td><b>Helpdesks:</b></td></tr><tr><td> <a href='?page=profiles&id=13'><span id='hel'><u>Luke</u></span></a></td></tr><tr><td><b>Newswriters:</b></td></tr><tr><td> <a href='?page=profiles&id=3'><span id='new'><u>James</u></span></a></td></tr></table><script>Table_Foot('<br>');</script></td><td width='68%' valign='top' align='center'><script>Table_Top('Polls  (poll title here!)','98%','');</script><table width='100%' align='center'><tr><td width='12%'>Choice 1:</td><td width='58%'>choice one right here</td><td width='30%'><span style='border: 1px solid #999999; width: 102px; align: left;'><img src='images/_bar.png' style='width: 11.8' height='9px'></span> 11.8%</td></tr><tr><td>Choice 2:</td><td>choice two what ever</td><td><span style='border: 1px solid #999999; width: 102px; align: left;'><img src='images/_bar.png' style='width: 24.7' height='9px'></span> 24.7%</td></tr><tr><td>Choice 3:</td><td>come on think ov a voting poll </td><td><span style='border: 1px solid #999999; width: 102px; align: left;'><img src='images/_bar.png' style='width: 63.4' height='9px'></span> 63.4%</td></tr><tr><td>Class 4:</td><td>Explanation four here!</td><td><span style='border: 1px solid #999999; width: 102px; align: left;'><img src='images/_bar.png' style='width: 0' height='9px'></span> 0%</td></tr><tr><td>Class 5:</td><td>Explanation five here!</td><td><span style='border: 1px solid #999999; width: 102px; align: left;'><img src='images/_bar.png' style='width: 0' height='9px'></span> 0%</td></tr><tr><td> </td></tr><tr><td align='center' colspan='3'><input type='submit' value='View All Polls' class='button' name='poll_view'></td></tr></table><script>Table_Foot('<br><br>');</script><script>Table_Top('Voting & Advertising','98%','');</script><table width='95%' align='center'><tr style="cursor: pointer;" OnClick="location.href='?page=home&var=www.denmans.co.uk';"><td style='height: 100px;' align='center' valign='middle'><img src="images/ads/1.png" width"480px" height="55px" alt="Denmans Electical Wholesalers Ltd."></td></tr></table><script>Table_Foot('<br>');</script></td></tr></table><br><br><!-- DATA SHOWN ENDS HERE --></span></div></td></tr></table></td></tr><tr><td valign="middle" align="center" style="background-color: #191919; height: 35px;"><b>Money:</b> $34,437,751   <b>Location:</b> England   <b>Rank:</b> Global Don<br><b>Weapon:</b> M61 Machine Gun <b>(0)</b>   <b>Plane:</b> Stealth Bomber   <b>Ship:</b> Sea Fighter FSF1</td></tr></table></center></body></html> Link to comment Share on other sites More sharing options...
jeffman Posted March 24, 2009 Share Posted March 24, 2009 When I load that HTML into Firefox, I think I see everything. I mean, I see all the text. (When you say the tables don't show up, do you mean the text inside the tables also doesn't show up?) But you didn't post the CSS, so I have no idea what effect (if any) it's having on your tables. So it could be the CSS is the problem. Something that IE doesn't mind, but Firefox ignores if it's not written strictly correct. Or maybe FF just interprets something differently. Can't say yet.A link would be a lot simpler. Link to comment Share on other sites More sharing options...
sooty2006 Posted March 24, 2009 Author Share Posted March 24, 2009 A link would be a lot simpler.you need to register, it also costs, so i will try to redo the css and take alook in to javascript, then ill let you know if i have solved it. if not i will post a link with a test account.thanks Link to comment Share on other sites More sharing options...
sooty2006 Posted March 24, 2009 Author Share Posted March 24, 2009 solved Link to comment Share on other sites More sharing options...
sooty2006 Posted March 24, 2009 Author Share Posted March 24, 2009 css states that td, is 21px high.this is the box that contains the required page!. <td valign="top" align="center" height="100%" style="border: 1px solid #999999; background-color: #282828; border-left: 0px; border-right: 0px;">text here</td> all i had to do was move the height attribute, to the style for the < td> tag <td valign="top" align="center" style="border: 1px solid #999999; background-color: #282828; border-left: 0px; border-right: 0px; height: 100%;">text here</td> like so so simple but hard to work out why!thanks for all your help! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.