Skip to content

PHP codes and news

Open Menu

Author: user

November 21, 2011

Exemple d’utilisation de ‘html_entity_decode()’

<?php
    $chaine = "Roméo &amp; Juliette";
    $s = htmlentities($chaine);

    $result = html_ent
user
November 21, 2011

Rapporter un URL avec la classe ‘HTTP_Request’

<?php
// Fichier 'Request.php' indispensable
require_once 'HTTP/Request.php';
$r = new HTTP_Request
user
November 21, 2011

Utilisation ‘HTTP_USER_AGENT’ pour l’identification des navigateurs

<html>
<head>
<title>Utilisation des Variables</title>
</head>
<body>
<div>
<p>
Navigateur: <b><?ph
user
November 21, 2011

Exemple d’utilistion de ‘rawurlencode()’

<?
    // lien contenant de caractère à encodé
    // (accent, apostrophe, etc)
    $chaine = 'démo
user
November 21, 2011

Afficher la palette des couleurs RGB

<html>
<head>
<title> Palette de Couleur</title>
</head>
<body>
<table>
<tr>
<?php
     $i = 1;
   
user
November 21, 2011

Afficher les bases de données de la connexion ouverte




<html>
<head>
<title>Lister le Schéma</title>
</head>
<body>
<?php

$connexion =  mysql_connect(
user
November 21, 2011

Insértion des données dans une table

<html>
<head>
<title>Base de données</title>
</head>
<body>

<?php
   mysql_connect("localhost","roo
user
November 21, 2011

PHP5: Lire et Afficher un fichier CSV

<?php

class ClasseLec
{

static function lireCSV($fichierCSV)
{

$fh = fopen($fichierCSV, 'rb');
i
user
November 21, 2011

Calculer la puissance d’un nombre

<html>
<head>
<title> Fonction Mathématique</title>
</head>
<body>
<?

 echo pow(19, 5);

?>
</body>
user
November 21, 2011

Exemple d’utilisation de ‘getrandmax()’ et ‘mt_getrandmax()’

<html>
<head>
<title> Fonction Mathématique</title>
</head>
<body>

<?php

echo "getrandmax() = " .
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