PHP footer

  • willstein
  • Loser
  • Loser
  • No Avatar
  • Inscription: Oct 29, 2003
  • Messages: 117
  • Loc: Maryland
  • Status: Offline

Message Novembre 10th, 2003, 3:06 pm

Je voudrais un véritable pied de page simple sur ma page Web.

Je suppose que PHP serait le plus facile?

Comment puis-je créer un code PHP qui rattachent: footer.php?

Merci.
  • Anonymous
  • Bot
  • No Avatar
  • Inscription: 25 Feb 2008
  • Messages: ?
  • Loc: Ozzuland
  • Status: Online

Message Novembre 10th, 2003, 3:06 pm

  • b_heyer
  • Web Master
  • Web Master
  • Avatar de l’utilisateur
  • Inscription: Juin 15, 2003
  • Messages: 4583
  • Loc: Maryland
  • Status: Offline

Message Novembre 10th, 2003, 3:22 pm

Code: [ Select ]

<? include('footer.php'); ?>
  1. <? include('footer.php'); ?>
Pixel Acres V2
  • willstein
  • Loser
  • Loser
  • No Avatar
  • Inscription: Oct 29, 2003
  • Messages: 117
  • Loc: Maryland
  • Status: Offline

Message Novembre 10th, 2003, 8:30 pm

Est-ce que le PHP besoin d'être dans le code autre que HTML?

HTML voulu dans Pied de page:
Code: [ Select ]
<table width="100%" border="0">
 <tr>
  <td><div align="center">
    <div align="center"><a href="link.htm"><strong><font color="#000000">Exchange
     links with Mansei! Design.</font></strong></a></div>
    <div align="center"><span class="default"><a href="http://www.ozzu.com" target="_blank">www.ozzu.com</a>
     // <a href="http://www.smallsports.com" target="_blank">www.smallsports.com</a>
     // </span><a href="http://topsitenet.com/cgi-bin/in.cgi?listid=1668&siteid=23" target="_blank">www.topsitenet.com</a>
     // <a href="http://www.relmaxtop.com">www.relmaxtop.com</a></div>
   </div></td>
 </tr>
</table>
  1. <table width="100%" border="0">
  2.  <tr>
  3.   <td><div align="center">
  4.     <div align="center"><a href="link.htm"><strong><font color="#000000">Exchange
  5.      links with Mansei! Design.</font></strong></a></div>
  6.     <div align="center"><span class="default"><a href="http://www.ozzu.com" target="_blank">www.ozzu.com</a>
  7.      // <a href="http://www.smallsports.com" target="_blank">www.smallsports.com</a>
  8.      // </span><a href="http://topsitenet.com/cgi-bin/in.cgi?listid=1668&siteid=23" target="_blank">www.topsitenet.com</a>
  9.      // <a href="http://www.relmaxtop.com">www.relmaxtop.com</a></div>
  10.    </div></td>
  11.  </tr>
  12. </table>


Quand je place ce code
Code: [ Select ]
<? include('footer.php'); ?>

dans un fichier HTML, rien ne vient.

Merci.
  • b_heyer
  • Web Master
  • Web Master
  • Avatar de l’utilisateur
  • Inscription: Juin 15, 2003
  • Messages: 4583
  • Loc: Maryland
  • Status: Offline

Message Novembre 10th, 2003, 8:37 pm

ce fichier est enregistré en tant que footer.php?

Essayez:
Code: [ Select ]
<? require('footer.php'); ?>
Pixel Acres V2
  • willstein
  • Loser
  • Loser
  • No Avatar
  • Inscription: Oct 29, 2003
  • Messages: 117
  • Loc: Maryland
  • Status: Offline

Message Novembre 10th, 2003, 8:47 pm

Nope, rien ne s'affiche sur cela non plus.

Code: [ Select ]
<? require('footer.php'); ?>


(b merci, tu es vraiment une bonne aide)


( http://www.lavashark.com/footer.php )
  • b_heyer
  • Web Master
  • Web Master
  • Avatar de l’utilisateur
  • Inscription: Juin 15, 2003
  • Messages: 4583
  • Loc: Maryland
  • Status: Offline

Message Novembre 10th, 2003, 9:02 pm

est la page que vous êtes sauvés, y compris en tant que fichier. php?

Cela fonctionne très bien pour moi:

http://bheyer.acgcny.com/footertest.php
Code: [ Select ]
<h1>Test</h1>


http://bheyer.acgcny.com/footertestpage.php
Code: [ Select ]
<? include('footertest.php'); ?>
[/ code]
Pixel Acres V2
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • Avatar de l’utilisateur
  • Inscription: Mai 28, 2003
  • Messages: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Message Novembre 10th, 2003, 11:26 pm

willsten,

Non à la bonne crasse ou antyhing, mais si vous voulez travailler, vous avez besoin de prendre quelques instants pour apprendre comment fonctionne php. b_heyer a eu peu de son temps à aider, mais je pense vous avez encore un apprentissage à faire.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • willstein
  • Loser
  • Loser
  • No Avatar
  • Inscription: Oct 29, 2003
  • Messages: 117
  • Loc: Maryland
  • Status: Offline

Message Novembre 10th, 2003, 11:46 pm

i agree.

et comme elle mai son qui vient im posant des questions comme elles viennent au hasard, dans le fait de prendre de bonnes de temps à essayer de trier le problème moi-même. habituellement je ne peux pas, se reporter à b, et de là, apprendre ce que l'erreur a été.

merci encore pour votre aide, php fonctionne maintenant.

Afficher de l'information

  • Total des messages de ce sujet: 8 messages
  • Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 112 invités
  • Vous ne pouvez pas poster de nouveaux sujets
  • Vous ne pouvez pas répondre aux sujets
  • Vous ne pouvez pas éditer vos messages
  • Vous ne pouvez pas supprimer vos messages
  • Vous ne pouvez pas joindre des fichiers
 
 

© 2011 Unmelted, LLC. Ozzu® est une marque déposée de Unmelted, LLC