Php sous linux

booloo Messages postés 76 Date d'inscription   Statut Membre Dernière intervention   -  
Zempachi Messages postés 7472 Date d'inscription   Statut Contributeur Dernière intervention   -
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 15119 Date d'inscription   Statut Contributeur Dernière intervention   2 184
 
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   Statut Membre Dernière intervention  
 
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   Statut Contributeur Dernière intervention   906
 
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