einstein2_THAILAND Posted December 11, 2006 Share Posted December 11, 2006 Hi all, I have a problem with "include" function like this - latest include don't show - No error,warning or else - when I test on "http://localhost" it's work but on real server it doen't workWhat can I do to solve this problem?Thanks all. Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/ Share on other sites More sharing options...
JasonLewis Posted December 11, 2006 Share Posted December 11, 2006 not fully understanding your question. please post some code and explain in a bit more detail. thanks :) Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/#findComment-138934 Share on other sites More sharing options...
einstein2_THAILAND Posted December 11, 2006 Author Share Posted December 11, 2006 <?php include('head.php');?> <div id="content"><?php include('mainmenu.php');?><div align='right' id='loading' style='visibility:hidden'>กำลังเรียกดูข้อมูลครับ รอหน่อยนะครับ.........</div> <div id="column1"><?php include('menu1.php');?> <?php include('menu2.php');?> <?php include('menu3.php');?> </div> <div id="column2"><?php include('content.php');?> </div> </div><?php include('footer.php');?> the lastest include (<?php include('footer.php');?> ) didn't show any warning ir error but it's do not show any contents. Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/#findComment-138952 Share on other sites More sharing options...
HuggieBear Posted December 11, 2006 Share Posted December 11, 2006 Have you uploaded footer.php to the server?If the others are all working OK, this could be an issue. Also check the case.Please put your code in [b][nobbc][code][/code][/nobbc][/b] tags when posting.RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/#findComment-138959 Share on other sites More sharing options...
einstein2_THAILAND Posted December 11, 2006 Author Share Posted December 11, 2006 Yes! I already upload footer.php to the server.This is footer.php[code] <div id="footer"> © 2006 ไชยยุทธ เพชรไพทูรย์ | <a href="mailto:einstien2@hotmail.com">einstein2@hotmail.com</a><br> <a href="http://www.freedomain.co.nr/" target="_blank"> <img src="image/conr.gif" width="88" height="31" border="0" alt="Free Domains at .co.nr" /></a> </div> </div></body></html>[/code]The div tag match with the head.php Help me please..... Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/#findComment-138969 Share on other sites More sharing options...
HuggieBear Posted December 11, 2006 Share Posted December 11, 2006 Is it live somewhere that we can take a look at it?RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/#findComment-138971 Share on other sites More sharing options...
einstein2_THAILAND Posted December 11, 2006 Author Share Posted December 11, 2006 http://einstein2.co.nrlook at the bottom of the pageand this picture ,I test on localhost.[img]http://einstein2.saiyaithai.org/einstein2.jpg[/img] Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/#findComment-138984 Share on other sites More sharing options...
HuggieBear Posted December 11, 2006 Share Posted December 11, 2006 I think this is related to the fact that the code's not actually on http://einstein2.co.nr it's on http://einstein2.saiyaithai.org/einstein2/footer.phpYou possibly have path issues. Maybe you could post all the code for these few pages?RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/#findComment-138990 Share on other sites More sharing options...
mansuang Posted December 11, 2006 Share Posted December 11, 2006 I think your problem come from "content.php" file.Take a look at output html[code]******</div> <div class="dashborder"> <h4>hello again</h4> <!-- **** เผื่อมีอะไรดี ๆ ก็จะได้แนะนำตรงนี้**** --> huhu haha hihi</div> </div> <div id="column2"> ไม่สามารถเชื่อมต่อได้[/code]It means there is something wrong with "content.php" (maybe about the connection to MySQL, i guess)The solution is try to comment out [code=php:0]<?php include('content.php');?>[/code] then check output again. Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/#findComment-139018 Share on other sites More sharing options...
einstein2_THAILAND Posted December 11, 2006 Author Share Posted December 11, 2006 Great! Problem from content.php that is no connection on mysql_connect cause a problembut when it connectivity this problem never occur.Thanks a lot "mansuang"and many thank to all people. Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/#findComment-139068 Share on other sites More sharing options...
mansuang Posted December 11, 2006 Share Posted December 11, 2006 No problem ;D Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/#findComment-139088 Share on other sites More sharing options...
einstein2_THAILAND Posted December 11, 2006 Author Share Posted December 11, 2006 แต่เอ๊ะ คุณ "mansuang" คนไทยเหรอครับ มิน่าชื่อถึงแปลก ๆ ขอ msn หน่อยได้มั้ยครับ ผมคิดว่าข้อความนี้คุณคงอ่านรู้เรื่อง Quote Link to comment https://forums.phpfreaks.com/topic/30213-problem-with-include/#findComment-139091 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.