Avez-vous une question? (216) 97 656 803 hajjriadh@gmail.com
Ressources pédagogiques

Devoirs,exercices et séries 3ème année secondaires

Un cours complet pour maîtriser Devoirs,exercices et séries 3ème année secondaires.

0 chapitres 0 QCM Accès gratuit
[insert_php] session_start(); if (isset($_GET['section'])&& isset($_GET['type'])&& isset($_GET['matiere'])) // On a le nom et le prénom { $_SESSION['section']=$_GET['section']; $_SESSION['type']=$_GET['type']; $_SESSION['matiere']=$_GET['matiere']; } [/insert_php]

Devoirs,exercices et séries 3ème année secondaires

[insert_php] $vowels = array("_", "-", "/");[/insert_php]

[insert_php] echo ucfirst (str_replace($vowels,' ',$_SESSION['section']));[/insert_php]

[insert_php] echo ucfirst (str_replace($vowels,' ',$_SESSION['type']));[/insert_php]

[insert_php] echo ucfirst (str_replace($vowels,' ',$_SESSION['matiere']));[/insert_php]

[insert_php] $section=''; $type=''; $matiere=''; if (isset($section)&& isset($matiere)&& isset($matiere)) // On a le nom et le prénom { $section=$_SESSION['section']; $type=$_SESSION['type']; $matiere=$_SESSION['matiere']; $url = "uploads/ressources-3annee/".$section.$type.$matiere; } else // Il manque des paramètres, on avertit le visiteur { echo 'Il faut renseigner le nom du fichier !'; } [/insert_php] [insert_php] $chemin = '/wp-content/'.$url; $nombre_de_lignes = 1; if ($handle = opendir('/home/userapc2710/public_html/wp-content/'.$url)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $thelist .= $nombre_de_lignes.'. '.''.$file.''.''; $nombre_de_lignes++; } } closedir($handle); } if(($nombre_de_lignes-1)>0) { echo '

'.($nombre_de_lignes-1).' Fichier(s) trouvé(s)

'; } else // Il manque des paramètres, on avertit le visiteur { echo '

Aucun Fichier trouvé

'; } ?>
    =$thelist?>
[/insert_php]