Php sous linux

booloo Messages postés 100 Statut Membre -  
Zempachi Messages postés 7572 Statut Contributeur -
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.
Configuration: Linux Mandriva
Firefox 2.0.0.6

3 réponses

  1. jeanbi Messages postés 15399 Date d'inscription   Statut Contributeur Dernière intervention   2 383
     
    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
  2. booloo Messages postés 100 Statut Membre
     
    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
  3. Zempachi Messages postés 7572 Statut Contributeur 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