• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP entete函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中entete函数的典型用法代码示例。如果您正苦于以下问题:PHP entete函数的具体用法?PHP entete怎么用?PHP entete使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了entete函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: selection_message

function selection_message($sock, $criteres)
{
    $res = '';
    $n = get_mail_count($sock);
    if ($n) {
        $n = $n[0];
    }
    for (; $n; $n--) {
        $entetes = recuperation_entetes($sock, $n);
        $ok = true;
        foreach ($criteres as $cle => $val) {
            if (!isset($entetes[$cle]) || $entetes[$cle] != $val) {
                $ok = false;
                break;
            }
        }
        if ($ok) {
            $message = recuperation_message($sock, $num);
            $res .= tableau_mail($num, $entetes, $message);
        }
    }
    $strCriteres = '';
    foreach ($criteres as $k => $v) {
        $strCriteres .= htmlspecialchars($k) . ': ' . htmlspecialchars($v) . ' ';
    }
    return entete("Mails " . trim($strCriteres)) . "<body>{$res}</body></html>";
}
开发者ID:phepthanthong,项目名称:ACS,代码行数:27,代码来源:selection_message.php


示例2: page_message

function page_message($chaine)
{
    entete();
    echo '
   <h2>' . $chaine . '</h2>';
    pied_depage();
}
开发者ID:npds,项目名称:npds_dune,代码行数:7,代码来源:graphIZm.php


示例3: array_to_select

function array_to_select($nom, $groupes)
{
    $r = '';
    if (is_array($groupes)) {
        foreach ($groupes as $k => $v) {
            $r .= "<option value='{$k}'>Groupe {$k}, nombre d'inscrits: " . count($v) . "</option>\n";
        }
        $r = "<form action='gestionNotesEtudiants.php' method='post'><fieldset>" . "<label for='num_groupe'>Choisissez un groupe</label>\n" . "<select id='num_groupe' name='num_groupe'>{$r}</select>" . "<input type='hidden' name='nom' value='{$nom}' />" . "<input type='submit' />" . "</fieldset></form>\n";
    }
    if (!$r) {
        $titre = "Erreur :";
        $r = "Pas de groupe";
    } else {
        $titre = '';
    }
    return entete($titre . "Choix du groupe pour {$nom}") . "<body>{$r}</body></html>\n";
}
开发者ID:phepthanthong,项目名称:ACS,代码行数:17,代码来源:select_groupe.php


示例4: error_reporting

<?php

error_reporting(E_ALL);
require_once '../2/entete.php';
echo entete("Tableaux");
echo "<body>\n";
$fruits = array("banane", "pomme", "litchie");
$fruits2 = array("banane" => 150, "pomme" => 300, "litchie" => 30);
echo '<h1>Avec une boucle for()</h1>';
echo "<ul>\n";
for ($i = 0; $i < 3; $i++) {
    echo "<li>" . $fruits[$i] . "</li>\n";
}
echo "</ul>\n";
echo '<h1>Avec une boucle while()</h1>';
$i = 0;
echo "<ul>\n";
while ($i < 3) {
    echo "<li>" . $fruits[$i] . "</li>\n";
    $i++;
}
echo "</ul>\n";
//Pour l'affichage avec la boucle foreach on peut réutiliser
//la fonction array_to_list vu en TD 2
include '../../TD/2/array_to.php';
echo '<h1>Avec une boucle foreach()</h1>';
echo array_to_list($fruits);
/*Pour l'affichage avec la boucle foreach on peut réutiliser
la fonction arrayEnTableHTML vu en TD 3 qui se trouve dans 
le fichier ShowForm.php*/
include '../../TD/3/ShowForm.php';
开发者ID:hajerr95,项目名称:PACS-LI355,代码行数:31,代码来源:rappelTableauxAssociatifs.php


示例5: entete

<?php

$entete = entete("Mon site / Étape 1");
$menu = menu("etape1");
$contenu = "<h2>Contenu de l'étape 1</h2>";
$contenu .= "Liste des utilisateurs";
$contenu .= "<ul>";
while ($ligne = $reponse->fetch()) {
    $contenu .= "<li>" . $ligne['identifiant'] . "</li>";
}
$contenu .= "</ul>";
$pied = pied();
include 'gabarit.php';
开发者ID:pauldethoisyisep,项目名称:Siteweb-Even-Out,代码行数:13,代码来源:etape1.php


示例6: array

<?php

require_once "naviguer.php";
require_once "../TME2/entete.php";
$cat = array('Londres' => 100, 'Madrid' => 200, 'Berlin' => 300);
$saisie = isset($_POST['page']) ? $_POST['page'] : 1;
$v = isset($_COOKIE['visite']) ? $_COOKIE['visite'] : 1;
setcookie('visite', $v + 1);
$title = "Page {$saisie}";
echo entete($title), "<body><h1>{$title}</h1>";
if (!is_numeric($saisie)) {
    echo "<div>Bon voyage pour " . $cat[$saisie] * ($v > 1 ? $v - 1 : 1) . "</div>\n";
} else {
    $c = "";
    echo naviguer($cat, $saisie, $v, $c);
}
echo "</body></html>";
开发者ID:phepthanthong,项目名称:ACS,代码行数:17,代码来源:cookvisites.php


示例7: define

<?php

include 'entete.php';
include 'array_to.php';
define('NUM_SECSOC', '/[12][0-9]{13}/');
define('HORAIRE', '/[0-2][0-9]:[0-5][0-9]/');
define('MAIL', '/[a-z\'-]+@etu\\.upmc\\.fr/i');
define('NOTE', '/([0-9]|1[0-9]|20)(\\/20)?/');
define('TEST_SECUSOC', "12345678901234 02345678901234 123456789012345");
define('TEST_HORAIRES', "12:34, 05:18 et 23:14 et ensuite une heure erronée 77:17");
define('TEST_MAILETU', "l'[email protected] [email protected] faux@etu_umpc_fr");
define('TEST_NOTE', "20, 18/20 et 7/20 7.5");
function listesOccurrences($regex, $chaineEntree)
{
    if (!preg_match_all($regex, $chaineEntree, $resultTable)) {
        return "<div>la chaine entree ne correspond pas au motif !!</div>";
    } else {
        return tableau_en_table($resultTable[0], "{$regex} {$chaineEntree}");
    }
}
echo entete("Expressions rationnelles statiques");
echo listesOccurrences(NUM_SECSOC, TEST_SECUSOC);
echo listesOccurrences(HORAIRE, TEST_HORAIRES);
echo listesOccurrences(MAIL, TEST_MAILETU);
echo listesOccurrences(NOTE, TEST_NOTE);
开发者ID:phepthanthong,项目名称:ACS,代码行数:25,代码来源:listeOccurrences.php


示例8: viewFormation

function viewFormation()
{
    entete();
    menu_accueil();
    echo '
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-568a8d0a5dc6d020" async="async"></script>
<div class="v-center">
		<div class="vc-content row">
			<div class="col-sm-12">
				<h2 class="mg-md text-center  tc-white">
					FORMATIONS
				</h2>
				<h4 class="mg-md text-center tc-white">
					Théorique ULM et Pratique Drone
				</h4>
			</div>
		</div><a id="scroll-hero" class="btn-dwn" href="#"><span class="fa fa-chevron-down"></span></a>
	</div>
</div>
<!-- Hero Bloc END -->

<!-- Footer - bloc-2 -->
<div class="bloc l-bloc bgc-white" id="bloc-2">
	<div class="container bloc-lg">
		<div class="row">
			<div class="col-sm-3">
				<img src="src/img/drone_scenario.jpg" class="img-responsive animated fadeInDown" />
				<h3 class="mg-md tc-brandeis-blue">
					Métiers
				</h3>
				<p>
					Dans cette catégorie vous pouvez découvrir toutes les étapes pour devenir pilote profesionnel drone<br /><br /><a class="ltc-brandeis-blue" href="index.html">Plus d\'informations</a>
				</p>
			</div>
			<div class="col-sm-3">
				<img src="src/img/drone_metiers.jpg" class="img-responsive metiers-img animated fadeInDown" />
				<h3 class="mg-md tc-brandeis-blue">
					Formations
				</h3>
				<p>
					Dans cette catégorie vous pouvez découvrir les différents scénarios de la pratique drone<br /><br /><a href="index.html">Plus d\'informations</a><br /><br />
				</p>
			</div>
			<div class="col-sm-3">
				<img src="src/img/formations_ULM.jpg" class="img-responsive formations-img animated fadeInDown" />
				<h3 class="mg-md tc-brandeis-blue">
					Formations
				</h3>
				<p>
					Dans cette catégorie vous pouvez découvrir les différentes étapes pour obtenir le théorique ULM.<br/><br/><a href="index.html">Plus d\'informations</a>
				</p>
			</div>
			<div class="col-sm-3">
				<img src="src/img/cadrage.jpg" class="img-responsive modules-img animated fadeInDown" />
				<h3 class="mg-md tc-brandeis-blue">
					Modules
				</h3>
				<p>
					Dans cette catégorie vous pouvez découvrir les différents modules complémentaires.<br/><br/><a href="index.html">Plus d\'informations</a>
				</p>
			</div>
		</div>
	</div>
</div>

';
    bas();
}
开发者ID:sullivanvillella,项目名称:Urbadrone,代码行数:69,代码来源:view_formation.php


示例9: error_reporting

<?php

error_reporting(E_ALL);
require_once "../../TM/2/entete.php";
require_once 'ShowForm.php';
echo entete("Etudiant");
echo "<body>\n", "<h1>Etudiant</h1>\n";
if (isset($_POST['mail']) and isset($_POST['numEt'])) {
    echo saisies_en_table($_POST, "Informations");
} else {
    echo "<form action='' method='post'><fieldset>\n", "<label for='numEt'>Numéro d'Étudiant :</label>", "<input id='numEt' name='numEt' />\n", "<label for='mail'>Mail :</label>", "<input id='mail' name='mail' />\n", "<input type='submit' value='Envoyer'>\n", "</fieldset></form>\n";
}
?>
</body>
</html>

开发者ID:phepthanthong,项目名称:ACS,代码行数:15,代码来源:etudiant.php


示例10: error_reporting

<?php

error_reporting(E_ALL);
require_once '../2/entete.php';
function afficheCouleur($couleur)
{
    $c = strcmp($couleur, "Rouge") == 0 ? "#ff0000" : (strcmp($couleur, "Vert") == 0 ? "#00ff00" : (strcmp($couleur, "Bleu") == 0 ? "#0000ff" : (strcmp($couleur, "Jaune") == 0 ? "#ffff00" : (strcmp($couleur, "Noir") == 0 ? "#000000" : "#888888"))));
    // Par défaut couleur "gris"
    return "<div style='height:10px;width:10px;background-color:{$c}'>&nbsp;</div>";
}
echo entete("Couleurs");
echo "<body>\n";
if (isset($_POST["couleurs"])) {
    foreach ($_POST["couleurs"] as $coul) {
        // echo "<div>$coul</div>"; // Question 3
        echo afficheCouleur($coul);
        // Question 5
    }
}
?>
<h1>Sélection de couleur</h1>
<form action="" method="post">
	<select multiple="multiple" name="couleurs[]" size="4">
		<option>Rouge</option>
		<option selected="selected">Vert</option><!-- Question 2 -->
		<option>Bleu</option>
		<option>Jaune</option>
		<option disabled="disabled">Noir</option>
		<option>Gris</option>
	</select>
	<input type="submit" name="sub-mite" value="Afficher les couleurs !"/>
开发者ID:hajerr95,项目名称:PACS-LI355,代码行数:31,代码来源:couleurs.php


示例11: entete

              window.location.replace ('prod_carte/install.php');
		});
	
    $("#return-button")
        .button({
            text: true
        })                
        .click(function() {
              window.location.replace ('prod_carte/install.php');
		});
	
});
</script> 
<?php 
/*--------------------------------------------------------------------------------------------------- EN-TETE */
echo entete();
/*--------------------------------------------------------------------------------------------------- ONGLETS */
echo "\n<div id='entete'>\n\t<div id ='intro'>\n\tApplication web pour la production de cartes en masse\n\t</div>\n</div>\n<div id='main'><div id ='titre'>Tableau de bord</div>";
/*-------------------------------------------------------------------------------------*/
/*Variables----------------------------------------------------------------------------*/
if (isset($_POST['action'])) {
    $action = $_POST['action'];
} else {
    $action = 'install-param';
}
switch ($action) {
    /*-------------------------------------------------------------------------------------*/
    /*Formulaire d'installation------------------------------------------------------------*/
    default:
    case "install-param":
        echo "<div id=\"fiche\" >";
开发者ID:gitter-badger,项目名称:MassMap,代码行数:31,代码来源:install.php


示例12: perm_rot

<?php

require_once '../3/controleSaisies.php';
function perm_rot($s, $p, $h, $a)
{
    $h1 = "?s={$s}&amp;h={$h}&amp;p={$p}&amp;a=" . ($a == 'all.css' ? 'all2.css' : 'all.css');
    $h2 = "?s={$h}&amp;h={$p}&amp;p={$s}";
    return "<ul>" . "<li><a href='{$h1}'>Permutation des styles</a></li>\n" . "<li><a href='{$h2}'>Rotation des périphériques</a></li>\n" . "</ul>\n";
}
// Eviter les caracteres problematique pour HTML mais aussi Unix
define('RE_FICHIER', '/^[^<>"\'\\/&]+$/');
// La fonction saisie_fiable retourne True ou False
$s = saisie_fiable($_GET, 's', RE_FICHIER) ? $_GET['s'] : 'screen.css';
$h = saisie_fiable($_GET, 'h', RE_FICHIER) ? $_GET['h'] : 'handheld.css';
$p = saisie_fiable($_GET, 'p', RE_FICHIER) ? $_GET['p'] : 'print.css';
$a = saisie_fiable($_GET, 'a', RE_FICHIER) ? $_GET['a'] : '';
if ($a) {
    setcookie('all', $a);
} else {
    $a = saisie_fiable($_COOKIE, 'all', RE_FICHIER, 'all.css');
}
include "entete.php";
echo entete("EDT Screen: {$s}, Handheld {$h}, Print {$p}", array(array('rel' => 'stylesheet', 'href' => $a), array('rel' => 'stylesheet', 'href' => $p, 'media' => 'print'), array('rel' => 'stylesheet', 'href' => $h, 'media' => 'handheld'), array('rel' => 'stylesheet', 'href' => $s, 'media' => 'screen')));
echo "<body>\n";
echo perm_rot($s, $p, $h, $a);
include 'edt.html';
echo "</body></html>\n";
开发者ID:phepthanthong,项目名称:ACS,代码行数:27,代码来源:styles-table.php


示例13: array

<?php

require_once "entete.php";
require_once "generer_html.php";
$links = array(array("rel" => "stylesheet", "type" => "text/css", "href" => "style.css"));
echo entete("forum", $links);
echo "<body>\n";
lancer_phraseur(FORUM_FILE);
echo array_to_html($forum, $users);
echo "<script type='text/javascript' src='voir_message.js'></script>\n";
echo "<script type='text/javascript' src='ajax.js'></script>\n";
echo "<script type='text/javascript' src='resultat_insertion.js'></script>\n";
echo "<script type='text/javascript' src='soumettre_reponse.js'></script>\n";
echo "</body>\n";
echo "</html>\n";
开发者ID:phepthanthong,项目名称:ACS,代码行数:15,代码来源:forum.html.php


示例14: moyenne

    $nom = $_POST['nom'];
    $groupe = $_POST['num_groupe'];
} else {
    $nom = '';
    $groupe = '';
}
function moyenne($notes)
{
    $somme = 0;
    foreach ($notes as $note) {
        $somme += $note;
    }
    return $somme / count($notes);
}
if (!empty($_POST["notes"])) {
    $result = notesValides($_POST["notes"]);
}
$title = "Gestion de note";
if (count($result) == count($_POST["notes"])) {
    echo entete($title);
    echo "<body><h1>", $title, "</h1>";
    echo "<div>Moyenne obtenue : ", moyenne($result), "</div>";
} else {
    $r = creerFormEtudiants($nom, $groupe, $result);
    if (!$r) {
        $r = "Pas de groupe";
        $title = "Erreur: {$title}";
    }
    echo entete($title), "<body><h1>", $title, "</h1>", $r;
}
echo "</body></html>\n";
开发者ID:phepthanthong,项目名称:ACS,代码行数:31,代码来源:gestionNotesEtudiants.php


示例15: error_reporting

<?php

// 1. 5.5.9-1ubuntu4.14
// 2. Oct 28 2015 01:34:23
// 3. $_SERVER
include 'entete.php';
include "array_to.php";
error_reporting(E_ALL);
echo entete("ACS - TME2");
echo "<body>";
echo tableau_en_table($_SERVER, "Valeur du variable super global");
echo "</body></html>";
开发者ID:phepthanthong,项目名称:ACS,代码行数:12,代码来源:informations.php


示例16: memorise_cookie

<?php

require_once '../2/entete.php';
include 'naviguer.php';
function memorise_cookie()
{
    if (!isset($_COOKIE['visite'])) {
        $v = 1;
        $f = 'COOKIE/' . md5(mt_rand() . $_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT']);
    } else {
        $f = 'COOKIE/' . $_COOKIE['visite'];
        $v = array_shift(file($f));
    }
    if ($d = fopen($f, 'w')) {
        fputs($d, $v + 1);
        fclose($d);
    }
    setcookie('visite', $f);
    return $v;
}
$n = isset($_POST['page']) ? $_POST['page'] : 1;
$titre = "Page {$n}";
$v = memorise_cookie();
echo entete($titre), "<body>\n<h1>", $titre, "</h1>\n";
if (!is_numeric($n)) {
    echo "<div>Bon voyage pour " . $bd[$n] * ($v > 1 ? $v - 1 : 1) . "€ </div>";
} else {
    $h = "";
    echo naviguer($bd, $n, $v, $h);
}
echo "</body</html>\n";
开发者ID:hajerr95,项目名称:PACS-LI355,代码行数:31,代码来源:memorise_cookie.php


示例17: etape_3

function etape_3()
{
    global $menu, $stage, $langue, $qi, $stopngo, $table_rep, $stopphp, $phpver, $listfich, $colorst1, $colorst2, $colorst3, $colorst4;
    $stage = 3;
    verif_php();
    verif_chmod();
    $colorst1 = '-success';
    $colorst2 = '-success';
    $colorst3 = '-success';
    $colorst4 = ' active';
    if ($stopphp == 1) {
        $colorst4 = '-danger';
    }
    if ($stopngo == 1) {
        $colorst4 = '-danger';
    }
    if ($stopngo != 1 and $stopphp != 1 and $qi == 1) {
        $stage = 4;
    } else {
        entete();
        menu();
        echo $menu;
        echo '
               <h3 class="m-b-2">' . ins_translate('Vérification des fichiers') . '</h3>';
        if ($stopphp != 0) {
            echo '
               <div>' . ins_translate("Version actuelle de PHP") . ' : ' . $phpver . '</div>
               <div class="alert alert-danger">' . ins_translate("NPDS nécessite une version 4.0.6 ou supérieure !") . '</div>
               <form name="reload" method="post">
                  <button onclick="window.location.reload()" class="btn btn-danger">' . ins_translate(' Actualiser ') . '</button>
               </form>';
            pied_depage();
        }
        echo '
               <form name="path" method="post" action="install.php">
                  <ul class="list-group form-group m-t-1">';
        if ($stopphp != 1) {
            echo $listfich;
        }
        if ($stopngo == 1) {
            echo '
                  </ul>
               </form>
               <div class="alert alert-danger" role="alert">' . ins_translate("Conseil : utilisez votre client FTP favori pour effectuer ces modifications puis faites 'Actualiser'.") . '</div>
               <form name="reload" method="post">
                  <button onclick="window.location.reload()" class="btn btn-danger">' . ins_translate(' Actualiser ') . '</button>
               </form>
            </div>';
            pied_depage();
            exit;
        } else {
            echo '
               </ul>
               <div class="form-group m-t-1">
                  <input type="hidden" name="langue" value="' . $langue . '" />
                  <input type="hidden" name="stage" value="4" />
                  <button type="submit" class="btn btn-success">' . ins_translate(' Etape suivante ') . '</button>
               </div>
            </form>
         </div>';
        }
        pied_depage();
    }
}
开发者ID:npds,项目名称:npds_dune,代码行数:64,代码来源:etape_3.php


示例18: error_reporting

<?php

// La fonction demandee est presque "tableau_en_table"
// sauf qu'il faut neutraliser les caracteres speciaux des saisies.
error_reporting(E_ALL);
include "../TME2/array_to.php";
function saisies_en_table($t, $legende)
{
    $r = array();
    // Le tableau etant des saisies de l'utilisateur
    // il faut se mefier de ce qu'il a pu ecrire comme "<" etc
    // y compris pour les index qui peuvent resulter d'une query-string ad hoc
    foreach ($t as $k => $v) {
        $r[htmlspecialchars($k)] = htmlspecialchars($v);
    }
    // A l'inverse, la legende etant fournie par le programmeur
    // on fait confiance aux chevrons qui y figurent, on ne transcode pas.
    // cf exemple ci-dessous
    return tableau_en_table($r, $legende);
}
// Test
include '../TME2/entete.php';
echo entete("ShowForm"), "<body>";
$caption = '<strong>gjhjhcj</strong> : ' . htmlspecialchars($_SERVER['QUERY_STRING']);
echo saisies_en_table($_GET, $caption);
echo "</body></html>";
开发者ID:phepthanthong,项目名称:ACS,代码行数:26,代码来源:ShowForm.php


示例19: define

require 'controleSaisies.php';
define('RE_ETUDIANT', "/^[0-9]{7}\$/");
// definir une RegExp bout par bout:
$re = '[A-Z]\\w*';
$re = "{$re}(-{$re})*";
# Ne pas écrire "/^$re[.]", PHP fait une erreur
#si on veut [.] mettre "/^" . $r . "[.].....
$re = "{$re}\\.{$re}@\\w+(\\.\\w+)*";
define('RE_MAIL_ETENDU', "/^({$re})|([^<]*<{$re}>)\$/");
$mail = saisie_fiable($_POST, 'mail', RE_MAIL_ETENDU);
$num = saisie_fiable($_POST, 'numEt', RE_ETUDIANT);
$title = "Etudiant";
if ($mail === True and $num === True) {
    $body = saisies_en_table($_POST, "Informations");
} else {
    if ($mail === False or $num === False) {
        $title = "Erreur {$title}";
        $mail = $_POST['mail'];
        $num = $_POST['numEt'];
    }
    $body = "<form action='' method='post'><fieldset>\n" . "<label for='numEt'>Numéro d'Étudiant :</label>" . "<input id='numEt' name='numEt' value='" . htmlspecialchars($num) . "' />\n" . "<label for='mail'>Mail :</label>" . "<input id='mail' name='mail' value='" . htmlspecialchars($mail) . "' />\n" . "<input type='submit' value='Envoyer'>\n" . "</fieldset></form>\n";
}
echo entete($title), "<body><h1>{$title}</h1>\n", $body, "</body></html>\n";
//test
$t = array('[email protected]', '"c\'est moi" <[email protected]>', '<i>@foo.bar');
echo $t[0], ' ', saisie_fiable($t, 0, RE_MAIL_ETENDU), "\n";
echo $t[1], ' ', saisie_fiable($t, 1, RE_MAIL_ETENDU), "\n";
echo $t[2], ' ', saisie_fiable($t, 2, RE_MAIL_ETENDU), "\n";
?>

开发者ID:phepthanthong,项目名称:ACS,代码行数:29,代码来源:gererSaisies.php


示例20: array

        return array(false, false);
    }
    while ($data = fread($fp, 256)) {
        if (!xml_parse($xml_phraseur, $data, feof($fp))) {
            $r = array(xml_error_string(xml_get_error_code($xml_phraseur)), xml_get_current_line_number($xml_phraseur));
            xml_parser_free($xml_phraseur);
            return $r;
        }
    }
    xml_parser_free($xml_phraseur);
    return true;
}
function get_xml_error_as_string($errors_array)
{
    return "Erreur XML : " . xml_error_string($errors_array[0]) . " ligne " . $errors_array[1];
}
include "../../TM/2/entete.php";
echo entete("Analyse d'un fichier XML d'annuaire");
echo "<body>";
$fichier = $_GET['fichier'];
$resultat = lancer_phraseur($fichier);
if (is_array($resultat)) {
    if ($resultat[0] === False) {
        echo "<div>impossible de lire le fichier '", $fichier, "'</div>";
    } else {
        echo "<div>", get_xml_error_as_string($resultat), "</div>";
    }
} else {
    echo "<div>Le fichier XML ", $fichier, " est bien form&eacute; </div>";
}
echo "</body>\n</html>\n";
开发者ID:phepthanthong,项目名称:ACS,代码行数:31,代码来源:sequence_preneurs.php



注:本文中的entete函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP entites_html函数代码示例发布时间:2022-05-15
下一篇:
PHP enterprise_include函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap