no save
Assistance
Achat
News

Forum | webmastering
comment inserer une image dans un fichier PHP
Mingain, le mar. 28 juin 2005 à 11:13:15
Le code peut aussi rester dans les balises php (par exemple pur ne l'executer dans une instruction conditionelle).
On va donc faire une sortie avec echo("");
Il ne faudra pas oublier ne changer les " dans le code HTML par des \"


<html>
<body>
<?php
$titre_page='Acceuil';
include('http://localhost/entete3.php');

echo("
<td rowspan=\"2\" bgcolor=\"#FFFFFF\">
<img src=\"C:/Documents and Settings/raphaelb/Desktop/TEST.jpg\" width=\"100\" height=\"47\"/>
</td>");


include('http://localhost/pied_page3.php');
?>
</body>
</html>


Par ailleur, vu le chemin de l'image (C:/Documents and Settings/raphaelb/Desktop/TEST.jpg), je pense que le serveur va avoir du mal à afficher une image sur ton bureau windows aux autres utilisateur !
Précédentteebo
juin 05
ethan55
juin 05
Suivant
REPONSES
coucou_c_julien
juin 05
teebo
juin 05
ethan55
juin 05
kilian
juin 05
teebo
juin 05
ethan55
juin 05
teebo
juin 05
Mingain
juin 05
ethan55
juin 05
coucou_c_julien
juin 05
Version Web
Réalisé par RedShift
no save