bonjour à tous,
j'ai mise en forme un fichier html et j'aimerais le transformer en fichier .php afin d'utiliser certaines fonctions de PHP.
mais j'ai une erreur sur la première ligne <?xml version="1.0"?>
il l'a prend comme du code PHP à cause des <? ?>
je suis débutant et ne trouve pas la solution - Avez vous une idée ?
merci

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-language" content="cs" />
    <meta name="robots" content="all,follow" />
 
    <meta name="author" content="All: ... [Nazev webu - www.url.cz]; e-mail: info@url.cz" />
    <meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-mail: vit.dlouhy@nuvio.cz" />
 
    <title>CrystalX</title>
    <meta name="description" content="..." />
    <meta name="keywords" content="..." />
 
    <link rel="index" href="./" title="Home" />
    <link rel="stylesheet" media="screen,projection" type="text/css" href="./css/main.css" />
    <link rel="stylesheet" media="print" type="text/css" href="./css/print.css" />
    <link rel="stylesheet" media="aural" type="text/css" href="./css/aural.css" />
</head>
 
<body id="www-url-cz">
 
<!-- Main -->
<div id="main" class="box">
 
    <!-- Header -->
 
 
  <div id="header"> 
    <!-- Logotyp -->
    <h1 id="logo"><a href="./" title="CrystalX [Go to homepage]"><strong>SOGICOM</strong><span></span></a></h1>
    <hr class="noscreen" />
    <!-- Quick links -->
    <div class="noscreen noprint"> 
      <p><em>Quick links: <a href="#content">content</a>, <a href="#tabs">navigation</a>, 
        <a href="#search">search</a>.</em></p>
      <hr />
    </div>
    <!-- Search -->
    <div id="search" class="noprint"> 
      <form action="" method="get">
        <fieldset>
        <legend>Search</legend>
        <label><span class="noscreen">Find:</span> <span id="search-input-out"> 
        <input type="text" name="" id="search-input" size="30" />
        </span></label>
        <input type="image" src="design/search_submit.gif" id="search-submit" value="OK" />
        </fieldset>
      </form>
    </div>
    <!-- /search -->
  </div>
  <!-- /header -->
 
     <!-- Main menu (tabs) -->
     <div id="tabs" class="noprint">
 
            <h3 class="noscreen">Navigation</h3>
            <ul class="box">
 
 
      <li id="active"><a href="./index.html">Accueil<span class="tab-l"></span><span class="tab-r"></span></a></li>