Php sous linux

Fermé
booloo Messages postés 76 Date d'inscription jeudi 21 mai 2009 Statut Membre Dernière intervention 26 mai 2020 - 23 mai 2009 à 00:47
Zempachi Messages postés 7472 Date d'inscription vendredi 14 octobre 2005 Statut Contributeur Dernière intervention 5 juin 2020 - 23 mai 2009 à 10:53
Bonjour,
j'ai bien installé mon serveur sous la mandriva mais je ne sais pas dans quel repertoire je dois stocker mes fichiers php, j'ai essayer dans WWW/ ça ne marche et meme dans htdocs, s'il vous plait veuiller m'aider.
A voir également:

3 réponses

jeanbi Messages postés 15118 Date d'inscription samedi 9 décembre 2006 Statut Contributeur Dernière intervention 6 février 2023 2 177
23 mai 2009 à 08:42
bonjour,
tu le mets ou tu veux et tu fait un lien vers dans le repertoire var/www/html
ou te le copie dans ce repertoire
a+
0
booloo Messages postés 76 Date d'inscription jeudi 21 mai 2009 Statut Membre Dernière intervention 26 mai 2020
23 mai 2009 à 10:26
Salut jeanbi!
j'ai fait la meme chose j'ai copié un fichier php dans ce repertoire mais ça ne marche pas, tiens voici le fichier que j'ai copié dans /var/www/html:
<?php
function do_html_header($title){
?>
<html>
<head>
<title><?php echo "warro";?></title>
<style>
body { font-family:Arial, Helvetica, sans-serif; font-size:13px}
li, td {font-family:Arial, Helvetica, sans-serif; font-size:13px}
hr { color:#3333cc; width=300; text-align=left}
a {color: #00000}
</style>
</head>
<body>
<h1>PHPbookmark</h1>
<hr/>
<?php
if($title){
do_html_heading($title);
?>
}
}
le fichier se nomme: palot.php, en tapant http://localhost/palot.php on m'affiche un navigateur blanc c'est-a-dire rien ne s'affiche.
s'il te plait aide moi.
Merci
0
Zempachi Messages postés 7472 Date d'inscription vendredi 14 octobre 2005 Statut Contributeur Dernière intervention 5 juin 2020 906
23 mai 2009 à 10:53
beh regarde attentivement ton code : normal qu'il n'affiche rien puisque tout est dans la déclaration de la fonction do_html_heading!
0