cyber_ghost Posted August 4, 2007 Share Posted August 4, 2007 im one of the noobs of php programming.... so... please help me a lot... guys.... before include() function work fine....... calling calendars..... and other related page..... but now after i edited.. the page... without even retouching the home page... the function include... losses its function.......... im now currrently working about the real estate commisision system..... and we are currently hosted to yahoo.com...... please help me guys..... Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/ Share on other sites More sharing options...
dbillings Posted August 4, 2007 Share Posted August 4, 2007 maybe you moved the file make sure the path is correct. For instance.... formerly include("script.php); after move include("file/script.php"); Good luck Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315333 Share on other sites More sharing options...
cyber_ghost Posted August 4, 2007 Author Share Posted August 4, 2007 yeah... im very sure about the file path.. that ive been placing to it.... the program really have code like this.... include "calendar_system.php"; note: they have in same directory... Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315340 Share on other sites More sharing options...
pyrodude Posted August 4, 2007 Share Posted August 4, 2007 Not sure if it'll make a difference, but try include('calendar_system.php'); Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315354 Share on other sites More sharing options...
cooldude832 Posted August 4, 2007 Share Posted August 4, 2007 try using require() it will error out if the file can't be opened also check your premisions on subfoldres. Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315357 Share on other sites More sharing options...
cyber_ghost Posted August 4, 2007 Author Share Posted August 4, 2007 yes guys.. i already tried other formmating style in include an even like this: include "file_name.php"; include 'file_name.php'; include ("file_name.php"); include('file_name.php'); // the running condition of this system..... runs good and smooth.. but..... all this dumb outputs just started... and i even not retouch of this code..... im the 4th programmer of this system... Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315362 Share on other sites More sharing options...
pyrodude Posted August 4, 2007 Share Posted August 4, 2007 maybe you could post the code and we could take a look at it Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315365 Share on other sites More sharing options...
cyber_ghost Posted August 4, 2007 Author Share Posted August 4, 2007 <? session_start(); include("header.php"); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="mycss.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="dropdowntab.js"> </script> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> <body bgcolor="#EEEEEE"> <table width="980" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td bgcolor="#CCCCCC"><table width="100%" border="0" cellspacing="1" cellpadding="10"> <tr> <td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" class="text11"> </table> <table width="950" border="0" align="center" cellpadding="5" cellspacing="0" class="text11"> <tr> <td width="500" valign="top"><? include "home_bulletin.php";?><br> <? include "calendar_home.php";?> </td> <td width="400" valign="top" height="200"><? include ("home_todays_sked.php"); ?><br> <? include "home_todo.php"; ?> </td> </tr> </table> <? if ($viewmode=="") { ?> <? if ($viewletter=="") $viewletter="a"; include("lib/contacts_table1.php"); ?> <br> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="500" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="200" valign="top"><div style="position: relative; overflow: auto; left: 0px; top: 0px; height: 100%; width: 100%; background-color: #FFFFFF; border: 0px solid #000000; "> </div><!-- <iframe width="100%" height="200" src="home_todays_sked.php" frameborder="0" scrolling="yes"></iframe> --></td> <br> </tr> <tr> <td height="10" valign="top"><img src="images/spacer.gif" width="100%" height="10"></td> </tr> </table> </td> <td width="10" valign="top"><img src="images/spacer.gif" width="10" height="50"></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td></td> </tr> <tr> <td height="10"><img src="images/spacer.gif" width="100%" height="10"></td> </tr> </table></td> </tr> <tr> <td height="10" colspan="3" valign="top"><img src="images/spacer.gif" width="100%" height="10"></td> </tr> </table> <? } ?> </td> </tr> </table></td> </tr> </table></td> </tr> </table> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315369 Share on other sites More sharing options...
simcoweb Posted August 4, 2007 Share Posted August 4, 2007 Might be a silly question, but is your page named with a .php extension? Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315391 Share on other sites More sharing options...
Crew-Portal Posted August 4, 2007 Share Posted August 4, 2007 please use <?php if (file_exists(lib/contacts_table1.php)){ include (lib/contacts_table1.php); echo 'The File Exists In Directory lib'; } elseif (dir_exists(./lib)){ echo 'The Directory Lib Exists But The File contacts_table1.php Does Not'; } else 'The Directory Lib And The File contacts_table1.php Do Not Exist On This Root'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315395 Share on other sites More sharing options...
cyber_ghost Posted August 4, 2007 Author Share Posted August 4, 2007 yeah....... i work into .php filename extensions......... i appreciate the really the capabilities of include function but.... i dont really know... why this happen.... ... Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315421 Share on other sites More sharing options...
plutomed Posted August 4, 2007 Share Posted August 4, 2007 make sure you have a space after the ; old: <? include "calendar_home.php";?> new: <? include "calendar_home.php"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315444 Share on other sites More sharing options...
Danltn Posted August 4, 2007 Share Posted August 4, 2007 <?php include("FILE.php"); ?> Notice the <?php <- Php Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315447 Share on other sites More sharing options...
mrjcfreak Posted August 4, 2007 Share Posted August 4, 2007 As said before; use this format: please use <?php if (file_exists(lib/contacts_table1.php)){ include (lib/contacts_table1.php); echo 'The File Exists In Directory lib'; } elseif (dir_exists(./lib)){ echo 'The Directory Lib Exists But The File contacts_table1.php Does Not'; } else 'The Directory Lib And The File contacts_table1.php Do Not Exist On This Root'; ?> and put error_reporting(E_ALL); at the top of the script, and then post here anything you get out. Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315450 Share on other sites More sharing options...
cyber_ghost Posted August 5, 2007 Author Share Posted August 5, 2007 thank you guys... Quote Link to comment https://forums.phpfreaks.com/topic/63264-solved-include-in-php/#findComment-315854 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.