Jump to content

<? include "12345"; ?> use error


wipe

Recommended Posts

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
Link to comment
https://forums.phpfreaks.com/topic/21432-use-error/
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/21432-use-error/#findComment-95488
Share on other sites

[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">&nbsp;</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&ecirc;ncias              <br />
                <br />
                <br />
                <img src="images/seta_index.gif" width="10" height="11" /> Avalia&ccedil;&atilde;o de Potencial<br />
                <br />
                <br />               
                <img src="images/seta_index.gif" width="10" height="11" /> Recrutamento Rec&eacute;m-Licenciados<br />
                <br />
                <br />
                <img src="images/seta_index.gif" width="10" height="11" /> Reten&ccedil;&atilde;o de Quadros <br />
                <br />
                <br />
                <img src="images/seta_index.gif" width="10" height="11" /> Out-Sourcing da fun&ccedil;&atilde;o de Recrutamento</span><br />
                <br />
                <br /></td>
              <td width="28">&nbsp;</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 &eacute; especialmente recomendada para fun&ccedil;&otilde;es                          de gest&atilde;o e para fun&ccedil;&otilde;es comerciais                          ou t&eacute;cnicas com um elevado grau de especializa&ccedil;&atilde;o.                          A pesquisa directa de executivos - vulgo &quot;Executive                          Search&quot; -&eacute; um sevi&ccedil;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&atilde;o                          do problema e defini&ccedil;&atilde;o de objectivos</a></span></li>
            <li><span class="menu_lateral"><a href="http://www.msl.pt/executivesearch5.html" target="_self">Identifica&ccedil;&atilde;o                          e avalia&ccedil;&atilde;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&ccedil;&atilde;o                          final e obten&ccedil;&atilde;o de refer&ecirc;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">&nbsp;</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">&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td colspan="2"><?php require 'ultimos.php'; ?></td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td width="89">&nbsp;</td>
                  <td width="119">&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</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>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<br />
</body>
</html>[/code]
Link to comment
https://forums.phpfreaks.com/topic/21432-use-error/#findComment-95521
Share on other sites

I just made this for you to use functions to include php files have a look good luck.

[code]
a.php
<?php
echo " hi there i am first include";
?>

b.php
<?php
echo " hi there i am second include";
?>


//function.php
<?php

function the_first_one(){

include("a.php");

include("b.php");
}
?>

//call the function with two includes
<?php

include("function.php");

the_first_one();

?>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/21432-use-error/#findComment-95532
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.