Jump to content


Photo

<? include "12345"; ?> use error


  • Please log in to reply
5 replies to this topic

#1 wipe

wipe
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 20 September 2006 - 04:15 PM

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

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 20 September 2006 - 04:21 PM

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
include 'includes/header.php';

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.

#3 wipe

wipe
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 20 September 2006 - 05:07 PM

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

include 'includes/header.php';

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.


This is the code where the header in flash don't appear:

<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>


#4 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 20 September 2006 - 05:08 PM

What error do you get?

#5 wipe

wipe
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 20 September 2006 - 05:12 PM

What error do you get?


Don't return me no error. The flash header disapear. A few day ago with 2 includes the side menu disapear too.

#6 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 20 September 2006 - 05:15 PM

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

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();

?>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users