wipe Posted September 20, 2006 Share Posted September 20, 2006 Hi guys,im trying to use 2 includes in the same page. When i try to use them works fine but de flash header dispear.... i really dont understand.I try to change to require but return the same problem.A few days ago o had te same problem in other page but i stop doing her. Now i really need to understand why 2 includes make disapear my header.Regards,Wipe Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 20, 2006 Share Posted September 20, 2006 When you include these files is the header in the same folder as the file that is including the header?For example you code is this:file_that_includes_header.php[code=php:0]include 'includes/header.php';[/code]Your header graphic will need to be in the same folder as file_that_includes_header.php and not in the includes folder. As the file that is being included/required is not run in the location in which it is being included from. Instead is run from the file that is including/requiring the file. Quote Link to comment Share on other sites More sharing options...
wipe Posted September 20, 2006 Author Share Posted September 20, 2006 [quote author=wildteen88 link=topic=108813.msg438125#msg438125 date=1158769303]When you include these files is the header in the same folder as the file that is including the header?For example you code is this:file_that_includes_header.php[code=php:0]include 'includes/header.php';[/code]Your header graphic will need to be in the same folder as file_that_includes_header.php and not in the includes folder. As the file that is being included/required is not run in the location in which it is being included from. Instead is run from the file that is including/requiring the file.[/quote]This is the code where the header in flash don't appear:[code]<body><table width="766" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="top"><script type="text/javascript">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','766','height','310','src','images/header','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','images/header' ); //end AC code </script> <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="766" height="310"> <param name="movie" value="images/header.swf" /> <param name="quality" value="high" /> <embed src="images/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="766" height="310"></embed> </object> </noscript> <table id="Table_01" width="766" height="564" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="270" background="images/msl_01.jpg"><table width="270" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="14"> </td> <td width="228"><br /> <span class="menu_lateral"><br /> <img src="images/seta_index.gif" width="10" height="11" /> Executive Search<br /> <br /> <br /> <img src="images/seta_index.gif" width="10" height="11" /> Recrutamento por Anuncio<br /> <br /> <br /> <img src="images/seta_index.gif" width="10" height="11" /> Modelo de Competências <br /> <br /> <br /> <img src="images/seta_index.gif" width="10" height="11" /> Avaliação de Potencial<br /> <br /> <br /> <img src="images/seta_index.gif" width="10" height="11" /> Recrutamento Recém-Licenciados<br /> <br /> <br /> <img src="images/seta_index.gif" width="10" height="11" /> Retenção de Quadros <br /> <br /> <br /> <img src="images/seta_index.gif" width="10" height="11" /> Out-Sourcing da função de Recrutamento</span><br /> <br /> <br /></td> <td width="28"> </td> </tr> </table></td> <td width="496" rowspan="2" valign="top"><div align="center"><br /> <span class="style2"> <br /> <br /> <?php echo $_GET['categoria'];?> </span><br /> <br /> <br /> </div> <div align="left"> <p><span class="menu_lateral"><br /> Esta metodologia é especialmente recomendada para funções de gestão e para funções comerciais ou técnicas com um elevado grau de especialização. A pesquisa directa de executivos - vulgo "Executive Search" -é um seviço de busca intensiva e continuada, que exige recursos dedicados, com um grande investimento de tempo.</span></p> </div> <ol> <li><span class="menu_lateral"><a href="http://www.msl.pt/executivesearch3.html" target="_self">Compreensão do problema e definição de objectivos</a></span></li> <li><span class="menu_lateral"><a href="http://www.msl.pt/executivesearch5.html" target="_self">Identificação e avaliação de candidatos</a></span></li> <li><span class="menu_lateral"><a href="http://www.msl.pt/executivesearch7.html" target="_self">Entrevistas com cliente</a></span></li> <li><span class="menu_lateral"><a href="http://www.msl.pt/executivesearch8.html" target="_self">Selecção final e obtenção de referências</a></span></li> <li><span class="menu_lateral"><a href="http://www.msl.pt/executivesearch9.html" target="_self">Follow-up</a></span></li> </ol> <p align="center"><a href="http://www.msl.pt/grafico1.html" target="_self"><img src="http://www.msl.pt/Recursos/visionar_grafico.gif" alt="Flow-Chart da metodologia 'Executive Search'" border="0" height="60" width="180" /></a><br /> <br /> <?php require 'index1.php'; ?> </p></td> </tr> <tr> <td height="200" valign="top"><table width="270" height="200" border="0" cellpadding="0" cellspacing="0" background="images/msl_03.jpg"> <tr> <td align="left" valign="top"><table width="270" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="45" height="25"> </td> <td colspan="2" valign="bottom" class="menu_lateral"><img src="images/seta_footer.gif" width="7" height="10" /> Ultimos Anuncios </td> <td width="17"> </td> </tr> <tr> <td> </td> <td colspan="2"><?php require 'ultimos.php'; ?></td> <td> </td> </tr> <tr> <td> </td> <td width="89"> </td> <td width="119"> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td colspan="2"><img src="images/msl_04.jpg" width="766" height="41" alt="" /></td> </tr> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr></table><br /></body></html>[/code] Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted September 20, 2006 Share Posted September 20, 2006 What error do you get? Quote Link to comment Share on other sites More sharing options...
wipe Posted September 20, 2006 Author Share Posted September 20, 2006 [quote author=Daniel0 link=topic=108813.msg438161#msg438161 date=1158772133]What error do you get?[/quote]Don't return me no error. The flash header disapear. A few day ago with 2 includes the side menu disapear too. Quote Link to comment Share on other sites More sharing options...
redarrow Posted September 20, 2006 Share Posted September 20, 2006 I just made this for you to use functions to include php files have a look good luck.[code]a.php<?phpecho " hi there i am first include";?>b.php<?phpecho " hi there i am second include";?>//function.php<?phpfunction the_first_one(){include("a.php");include("b.php");}?>//call the function with two includes<?phpinclude("function.php");the_first_one();?>[/code] Quote Link to comment 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.