Probleme include
ChangLi
Messages postés
12
Statut
Membre
-
ChangLi Messages postés 12 Statut Membre -
ChangLi Messages postés 12 Statut Membre -
Bonjour,
J'ai un grand probleme sur le php.
Mon probleme c'est que j'ai 2 fichier foot.php que j'aimerai bien introduit dans mon index.php .
Et le probleme c'est que les images que j'ai inserer sur foot.php n'affiche pas quand je connecte le serveur (wampserver).
voici mes codes:
foot.php
et index.php
Et le resultat que je veux et comme ceci
foot.php avec css seulement
Mais pas comme celle ci
foot.php introduit dans index.php avec ces css
Lee
J'ai un grand probleme sur le php.
Mon probleme c'est que j'ai 2 fichier foot.php que j'aimerai bien introduit dans mon index.php .
Et le probleme c'est que les images que j'ai inserer sur foot.php n'affiche pas quand je connecte le serveur (wampserver).
voici mes codes:
foot.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="foot.css">
</head>
<body>
<div id="gauche">
<p>Lien rapide</p>
<a href="#">>> Acceuil</a>
<a href="#">>> Forum</a>
<a href="#">>> Actualité</a>
</div>
<div id="centrale">
<p>Images</p>
</div>
<div id="droite">
<p>Contact</p>
<a href="https://www.facebook.com/pages/Iary-Univers/258627954329229"><img src="im/facebook_icon.png" alt="lien facebook"/></a>
<a href="#"><img src="im/twitter_icon.png" alt="lien twitter"/></a>
<a href="#"><img src="im/linkedin_icon.png" alt="lien Linkedin"/></a>
<a href="#"><img src="im/gplus_icon.png" alt="lien google +"/></a>
<a href="mailto:iary.univers@gmail.com"><img src="im/email_icon.png" alt="e-mail"/></a>
</div>
</body>
</html>
et index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd]">
<html xmlns="[http://www.w3.org/1999/xhtml]">
<head>
<meta charset="utf-8"/>
<title>Iary UNIVERS</title>
<link rel="stylesheet" type="text/css" href="css/stylehome.css">
</head>
<body>
<header>
<h1>XXX</h1>
<div class="bar_nav">
<?php include_once ("elem/bar_nav.php"); ?>
<style><?php include_once ("elem/nav.css");
?></style>
</div>
</header>
<section>
<a href="#"><div class=musique>
<h2>Musique</h2>
</div></a>
<a href="#"><div class=fashion>
<h2>Collection</h2>
</div></a>
<a href="#"><div class=other>
<h2>Communication</h2>
</div></a></section>
</section>
<footer>
<div class="foot">
<?php require_once ("elem/foot.php"); ?>
<style><?php include ("elem/foot.css");
?></style>
</div>
</footer>
<div id="copyright">
<p align="center"><em>© Mikaia VALISON / 2014/ Ing GM</em></p>
</div>
</body>
</html>
Et le resultat que je veux et comme ceci
foot.php avec css seulement

Mais pas comme celle ci
foot.php introduit dans index.php avec ces css

Lee
A voir également:
- Probleme include
- PHP et les directives include() et require() - Forum PHP
- PHP: fonction include et liens relatifs ✓ - Forum PHP
- Include un dossier DropBox dans une page web - Forum Webmastering
- Installer integrity check has failed common causes include incomplete download and damaged media ✓ - Forum Logiciels
- I'm sorry to have to inform you that your message could not be delivered to one or more recipients. it's attached below. for further assistance, please send mail to postmaster. if you do so, please include this problem report. you can delete your own text from the attached returned message. - Forum Réseaux sociaux