Je me heurte à un soucis de développement à plusieurs pouvant impacter des même fichiers.
Exemple.
hello.php
Code : Tout sélectionner
<?php
$hello = 'Hello World';
if (empty($_GET['ok']))echo $hello;
else echo 'WTF !!!';
?>Code : Tout sélectionner
<?php
$hello = 'Bonjour les gars';
$suite = 'WTF !!!';
if (empty($_GET['ok']))echo $hello;
else $suite;
?>Code : Tout sélectionner
<?php
$hello = 'Hello World';
if (empty($_GET['ok']))echo $hello;
elseif ($_GET['ok'] == 'OK')echo 'WTF !!!';
else exit;
?>Code : Tout sélectionner
<?php
$hello = 'Bonjour les gars';
$suite = 'WTF !!!';
if (empty($_GET['ok']))echo $hello;
elseif ($_GET['ok'] == 'OK')echo $suite;
else exit;
?>Merci de votre aide.