nuitn0ire | J'ai vu ceci pour integrer du php dans les pages : http://www.estvideo.com/dew/index/ [...] lumes#c357
J'ai fait cette méthode à la lettre pour inclure du php , j'ai pas pu me tromper , j'ai même vérifié mes droits . Non , le truc refuse catégoriquement de s'afficher . C'est simple , quand je mets en place la méthode cité plus haut , sa anule purement et simplement le code html de la mise en page .
de plus quand je vais sur HEADER.shtml => page blanche .
bon , je vais carrément vous donner ce que j'ai :
fichier httpd.conf :
Code :
- <IfModule mod_autoindex.c>
- #
- # FancyIndexing: whether you want fancy directory indexing or standard
- #
- IndexOptions FancyIndexing NameWidth=* FoldersFirst SuppressHTMLPreamble IconsAreLinks
- # IndexOptions FancyIndexing VersionSort FoldersFirst HTMLTable NameWidth=* DescriptionWidth=* SuppressHTMLPreamble SuppressRules IconsAreLinks
- #
- # AddIcon* directives tell the server which icon to show for different
- # files or filename extensions. These are only displayed for
- # FancyIndexed directories.
- #
- AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
- AddIconByType (TXT,/icons/text.gif) text/*
- AddIconByType (IMG,/icons/image2.gif) image/*
- AddIconByType (SND,/icons/sound2.gif) audio/*
- AddIconByType (VID,/icons/movie.gif) video/*
-
- AddIcon /icons/binary.gif .bin .exe
- AddIcon /icons/binhex.gif .hqx
- AddIcon /icons/tar.gif .tar
- AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
- AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
- AddIcon /icons/a.gif .ps .ai .eps
- AddIcon /icons/layout.gif .html .shtml .htm .pdf
- AddIcon /icons/text.gif .txt
- AddIcon /icons/c.gif .c
- AddIcon /icons/p.gif .pl .py
- AddIcon /icons/f.gif .for
- AddIcon /icons/dvi.gif .dvi
- AddIcon /icons/uuencoded.gif .uu
- AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
- AddIcon /icons/tex.gif .tex
- AddIcon /icons/bomb.gif core
- AddIcon /icons/deb.gif .deb
-
- AddIcon /icons/back.gif ..
- AddIcon /icons/hand.right.gif README
- AddIcon /icons/folder.gif ^^DIRECTORY^^
- AddIcon /icons/blank.gif ^^BLANKICON^^
-
- #
- # DefaultIcon: which icon to show for files which do not have an icon
- # explicitly set.
- #
- DefaultIcon /icons/unknown.gif
-
- #
- # AddDescription: allows you to place a short description after a file in
- # server-generated indexes. These are only displayed for FancyIndexed
- # directories.
- # Format: AddDescription "description" filename
- #
-
- #
- # ReadmeName: the name of the README file the server will look for by
- # default, and append to directory listings.
- #
- # HeaderName: the name of a file which should be prepended to
- # directory indexes.
- #
- # The module recognize only 2 kind of mime-types, text/html and
- # text/*, but the only method it has to identify them is via
- # the filename extension. The default is to include and display
- # html files.
- #
- ReadmeName /README
- HeaderName /HEADER.shtml
-
- # Otherwise you can comment the 2 lines above and uncomment
- # the 2 below in order to display plain text files.
- #
- # ReadmeName README.txt
- # HeaderName HEADER.txt
-
- #
- # IndexIgnore: a set of filenames which directory indexing should ignore
- # and not include in the listing. Shell-style wildcarding is permitted.
- #
- IndexIgnore .??* *~ *# HEADER.html HEADER.txt RCS CVS *,v *,t
-
- # Uncomment the following IndexIgnore line to add README.* to the file
- # list that will not be displayed by mod_autoindex.
- # It is not enabled by default on Debian system to permit users to properly
- # browse Debian documentation (/doc/)
- #
- IndexIgnore README.*
-
- </IfModule>
|
mon fichier HEADER.shtml
Code :
- <!--#include virtual="HEADER.php"-->
|
mon fichier HEADER.php
Code :
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>Coldroom</title>
- <style type="text/css">
- <!--
- body,td,th {
- font-family: Arial, Helvetica, sans-serif;
- color: #666666;
- }
- body {
- background-color: #000000;
- }
- a:link {
- color: #666666;
- text-decoration: none;
- }
- a:visited {
- text-decoration: none;
- color: #666666;
- }
- a:hover {
- text-decoration: underline;
- color: #990000;
- }
- a:active {
- text-decoration: none;
- color: #990000;
- }
- -->
- </style></head>
- <body>
- <table width="674" height="122" border="0">
- <tr>
- <td width="116" height="118"><img src="../logo.jpg" width="102" height="109"></td>
- <td width="548" align="left" valign="top"><br>
- <? $ip_client = (getenv("HTTP_X_FORWARD
- ED_FOR" ) ? getenv("HTTP_X_FORWARDED_FOR" ) : getenv("REMOTE_ADDR" )); echo "$ip_client"; ?> </td>
- </tr>
- </table></html>
|
mon fichier README.html => n'en ai pas mis |