Skip to content

PHP codes and news

Open Menu

Author: user

July 30, 2012

Extraire les données d’une base de données

<html>
<head>
<title>Requête select</title>
</head>
<body>
<ul>

<?php

// Connexion au Serveur
$co
user
July 28, 2012

Expression Régulière: Valider un mot de passe

<?php
   $password = "monmotdepasse";
   if (!preg_match("/^[a-zA-Z0-9]{8,16}$/", $password))
   ec
user
July 27, 2012

Liste des attributs d’envoi des fichiers

name         LE nom du fichier

type         Le type de fichier

size         La taille de fichier 
user
July 26, 2012

Obtenir la liste des classes et interfaces chargées dans l’exécution de script

<html>
<head>
<title>interface et classe</title>
</head>
<body>
<?php
printf("<p>Liste des interface
user
July 23, 2012

Afficher les informations réseaux à partir d’un script

<html>
<head>
<title>interface Réseau de Machine client</title>
</head>
<body>
<div>
<?php
exec( "i
user
July 21, 2012

Syntaxe d’utilisation de la méthode ‘fgetcsv()’

<?php
   $fh = fopen("primes.csv", "r");
   while (list($nom_usage, $email, $telephone) = fgetcsv($
user
July 20, 2012

Calculer la fréquence de chaque caractère avec la fonction ‘count_chars’

<html>
<head>
<title>String count_chars()</title>
</head>
<body>

<?php
   $chaine = "Voici une chaî
user
July 19, 2012

Interpolation dans le document courant: voir l’orthographe

<?php
$titre_page = 'Mois';
$jan = 'Janvier';
$fev = 'Février';
$mar = 'Mars';
print <<<MENU
<html>
user
July 17, 2012

Répresentation binaire d’un décimal

<html>
<head>
<title> Fonction Mathématique</title>
</head>
<body>
<?php
    echo decbin(8)."<br/>"
user
July 16, 2012

Utilisation du fonction ‘scandir()’ pour lister le contenu d’un Répertoire

<?php
   print_r(scandir("./"));
?>


user

Posts navigation

Older posts
Newer posts

Recent Posts

  • Hello world!
  • PHP Session et Cookies: Exemple d’utilisation de session_start()
  • PHP: Fermer un fichier avec la fonction fclosde()
  • PHP: Vérifier si un élément est un répertoire
  • PHP: Vérifier si un fichier existe sinon le créer

Recent Comments

  1. A WordPress Commenter on Hello world!
© 2025 PHP codes and news
 / Theme: Really Simple / License: GPLv3