HtmlToText
analyste programmeur - développeur web/mobile gsm : +(33)6 18 88 82 87 réalisations sites web satsee calculateur de route maritime sites divers créations php avec leur code source générateur de vignettes à la vollée : >> <? /********************************************************************************/ /* générateur automatique de vignettes en ligne */ /* gère les formats jpeg, png et gif, préserve le cannal alpha des png */ /* */ /* copyright daniel mihalcea (c) 2011 http://mihalcea.fr/ */ /* */ /* @param {file} f: fichier pointant vers l'image source ou url */ /* @param {number} [h=128]: taille de la vignette, 128 pixels par défaut */ /* @param {bool} [r=0]: si les vignettes doivent êtres carrées ou non */ /* @returns {image} vignette de l'image */ /* */ /********************************************************************************/ $f = ( (isset( $_get [ 'f' ])) ? $_get [ 'f' ] : '' ); // on récupère le nom du fichier $h = (int) ( (isset( $_get [ 'h' ])) ? $_get [ 'h' ] : '128' ); // on récupère la hauteur $r = (bool) ( (isset( $_get [ 'r' ])) ? $_get [ 'r' ] : '0' ); // doit-on générer une vignette carrée ? if ( $f { 0 } == '/' ) $f = $_server [ 'document_root' ]. $f ; // si le chemin est lié à la racine, on prends la racine du serveur if (! is_numeric ( $h ) || $h < 1 ) $h = 128 ; // si la dimention est incorrecte on prends la dimention par défaut function error ( $txt ) { global $h , $im1 ; $im1 = imagecreatetruecolor ( $h , $h ); $blanc = imagecolorallocate ( $im1 , 255 , 255 , 255 ); imagestring ( $im1 , 2 , 2 , 0 , $txt , $blanc ); finalise (); exit; } function finalise () { global $ext , $im1 ; switch ( $ext ) { // on génère l'image finale selon le format case 'jpg' : case 'jpeg' : imagejpeg ( $im1 ); break; case 'gif' : imagegif ( $im1 ); break; case 'png' : default : imagepng ( $im1 ); break; } imagedestroy ( $im1 ); } if (! is_file ( $f ) && strtolower ( substr ( $f , 0 , 7 )!= 'http://' )) { // si le fichier n'existe pas, on affiche un message et on quitte header ( 'content-type: image/png' ); error ( 'fichier introuvable' ); } $ext = strtolower ( substr ( $f , strrpos ( $f , '.' ) + 1 )); // on récupère l'extenssion du fichier switch ( $ext ) { // on envoie l'entête correspondant et on récupère l'image case 'jpg' : case 'jpeg' : header ( 'content-type: image/jpeg' ); $im0 = @ imagecreatefromjpeg ( $f ); break; case 'gif' : header ( 'content-type: image/gif' ); $im0 = @ imagecreatefromgif ( $f ); break; case 'png' : header ( 'content-type: image/png' ); $im0 = @ imagecreatefrompng ( $f ); break; default : // le type de l'image n'est pas supporté header ( 'content-type: image/png' ); $im0 = imagecreatetruecolor ( $h , $h ); $blanc = imagecolorallocate ( $im0 , 255 , 255 , 255 ); $r = 'fichier non supporté' ; imagestring ( $im0 , 2 , 2 , 0 , $r , $blanc ); imagepng ( $im0 ); exit; } if (! $im0 ) { error ( 'erreur d\'access' ); } // on récupère les dimensions de l'image originale $h0 = imagesy ( $im0 ); $l0 = imagesx ( $im0 ); if ( $r == '1' ) { // si les vignettes sont carrées $im1 = imagecreatetruecolor ( $h , $h ); imagealphablending ( $im1 , false ); imagesavealpha ( $im1 , true ); if ( $h0 < $l0 ) { // si l'image est en mode paysage $h1 = $h ; $l1 = floor ( $l0 / $h0 * $h1 ); imagecopyresampled ( $im1 , $im0 , ( $h1 - $l1 )/ 2 , 0 , 0 , 0 , $l1 , $h1 , $l0 , $h0 ); } else { // ou portrait $l1 = $h ; $h1 = floor ( $h0 / $l0 * $l1 ); imagecopyresampled ( $im1 , $im0 , 0 , ( $l1 - $h1 )/ 2 , 0 , 0 , $l1 , $h1 , $l0 , $h0 ); } } else { // ou sinon on respecte les proportions d'origine if ( $h0 > $l0 ) { // si l'image est en mode portrait $h1 = $h ; $l1 = floor ( $l0 / $h0 * $h1 ); } else { // ou paysage $l1 = $h ; $h1 = floor ( $h0 / $l0 * $l1 ); } $im1 = imagecreatetruecolor ( $l1 , $h1 ); imagealphablending ( $im1 , false ); imagesavealpha ( $im1 , true ); imagecopyresampled ( $im1 , $im0 , 0 , 0 , 0 , 0 , $l1 , $h1 , $l0 , $h0 ); } imagedestroy ( $im0 ); finalise (); ?> générateur de fractale (ensemble de mandelbrot) : >> - exemple 1 - exemple 2 <? /********************************************************************************/ /* générateur de fractale, ensemble de mandelbrot */ /* */ /* copyright daniel mihalcea (c) 2011 http://mihalcea.fr/ */ /* */ /* @param {number} f: fichier pointant vers l'image source ou url */ /* @param {number} h: hauteur en pixels de l'image générée */ /* @param {number} w: largeur en pixels de l'image générée */ /* @param {number} cx: coordonnée x du centre de l'image */ /* @param {number} cy: coordonnée y du centre de l'image */ /* @param {number} s: facteur de zoom */ /* @returns {image} ensemble de mandelbrot */ /* */ /********************************************************************************/ header ( "content-type: image/png" ); // header("content-type: text/plain"); echo " "; function microtime_float () { return array_sum ( explode ( ' ' , microtime ())); } $temps_debut = microtime_float (); // début chrono $height = $_get [ 'h' ]; $width = $_get [ 'w' ]; $cx = $_get [ 'cx' ]; $cy = $_get [ 'cy' ]; $scale = $_get [ 's' ]; $limit = 4 ; $nmax = 128 ; if ( $height == '' ) $height = 200 ; if ( $width == '' ) $width = 320 ; if ( $cx == '' ) $cx = - 0.5 ; if ( $cy == '' ) $cy = 0 ; if ( $scale == '' ) $scale = 0.01 ; $h2 = $height / 2 ; $w2 = $width / 2 ; $im = imagecreatetruecolor ( $width , $height ); for ( $x = 0 ; $x < $width ; $x ++) { $ax = $cx + ( $x - $w2 )* $scale ; for ( $y = 0 ; $y < $height ; $y ++) { $ay = $cy + ( $y - $h2 )* $scale ; $a1 = $ax ; $b1 = $ay ; $lp = 0 ; while( $lp < $nmax ) { $aa = $a1 * $a1 ; $bb = $b1 * $b1 ; if ( $aa + $bb > $limit ) {break;} $a2 = $aa - $bb + $ax ; $b2 = 2 * $a1 * $b1 + $ay ; $a1 = $a2 ; $b1 = $b2 ; $lp ++; } if ( $lp === $nmax ) { $r = 0 ; $v = 0 ; $b = 0 ; } else { $r = floor ( 128 * log ( $lp , 10 )); $v = $lp * 2 ; $b = $lp ; } $c = imagecolorallocate ( $im , $r , $v , $b ); imagesetpixel ( $im , $x , $y , $c ); } } $blanc = imagecolorallocate ( $im , 255 , 255 , 255 ); imagestring ( $im , 2 , $width - 150 , $height - 16 , 'daniel mihalcea (c) 2010' , $blanc ); $temps_fin = microtime_float (); // fin chrono imagestring ( $im , 2 , 0 , 0 , 'calcul : ' . round ( $temps_fin - $temps_debut , 3 ). 's' , $blanc ); imagepng ( $im ); imagedestroy ( $im ); ?> générateur de cartes de visites élécrtoniques vcard (.vcf) : >> - voir <? function addimage ( $photo , $h ) { list ( $h0 , $l0 , $type ) = getimagesize ( $photo ); switch( $type ) { case 1 : $im0 = imagecreatefromgif ( $photo ); break; case 2 : $im0 = imagecreatefromjpeg ( $photo ); break; case 3 : $im0 = imagecreatefrompng ( $photo ); break; default: return; break; } if ( $h0 > $l0 ) { $h1 = $h ; $l1 = floor ( $l0 / $h0 * $h1 ); } else { $l1 = $h ; $h1 = floor ( $h0 / $l0 * $l1 ); } $im1 = imagecreatetruecolor ( $l1 , $h1 ); imagecopyresampled ( $im1 , $im0 , 0 , 0 , 0 , 0 , $l1 , $h1 , $l0 , $h0 ); imagedestroy ( $im0 ); ob_start (); switch( $type ) { case 1 : imagegif ( $im1 , null , 75 ); break; case 2 : imagejpeg ( $im1 , null , 75 ); break; case 3 : imagepng ( $im1 , null , 75 ); break; default: echo '' ; break; } $data = ob_get_contents (); ob_end_clean (); imagedestroy ( $im1 ); switch( $type ) { case 1 : $p .= "photo;encoding=base64;type=gif:" ; break; case 2 : $p .= "photo;encoding=base64;type=jpeg:" ; break; case 3 : $p .= "photo;encoding=base64;type=png:" ; break; } $j = strlen ( $p ); $vcard = $p ; $image = base64_encode ( $data ). "\n" ; for ( $i = 0 ; $i < strlen ( $image ); $i ++) { if(( $i + $j - 1 )% 75 == 0 ) $vcard .= "\r\n " . $image [ $i ]; else $vcard .= $image [ $i ]; } return $vcard ; } $nom = $_post [ 'nom' ]; if ( $nom != "" ) { $count ++; $filename = " $nom .vcf" ; $vcard = "" ; $prenom = $_post [ 'prenom' ]; $titre = $_post [ 'titre' ]; $org = $_post [ 'org' ]; $cell = $_post [ 'cell' ]; $home = $_post [ 'home' ]; $work = $_post [ 'work' ]; $fax = $_post [ 'fax' ]; $rue = $_post [ 'rue' ]; $ville =
Informations Whois
Whois est un protocole qui permet d'accéder aux informations d'enregistrement.Vous pouvez atteindre quand le site Web a été enregistré, quand il va expirer, quelles sont les coordonnées du site avec les informations suivantes. En un mot, il comprend ces informations;
%%
%% This is the AFNIC Whois server.
%%
%% complete date format : DD/MM/YYYY
%% short date format : DD/MM
%% version : FRNIC-2.5
%%
%% Rights restricted by copyright.
%% See https://www.afnic.fr/en/products-and-services/services/whois/whois-special-notice/
%%
%% Use '-h' option to obtain more information about this service.
%%
%% [2600:3c03:0000:0000:f03c:91ff:feae:779d REQUEST] >> mihalcea.fr
%%
%% RL Net [##########] - RL IP [#########.]
%%
domain: mihalcea.fr
status: ACTIVE
hold: NO
holder-c: ANO00-FRNIC
admin-c: ANO00-FRNIC
tech-c: UIS153-FRNIC
zone-c: NFC1-FRNIC
nsl-id: NSL68093-FRNIC
registrar: 1&1 Internet SE
Expiry Date: 10/02/2019
created: 25/02/2011
last-update: 10/02/2018
source: FRNIC
ns-list: NSL68093-FRNIC
nserver: ns1046.ui-dns.biz
nserver: ns1046.ui-dns.com
nserver: ns1046.ui-dns.de
nserver: ns1046.ui-dns.org
source: FRNIC
registrar: 1&1 Internet SE
type: Isp Option 1
address: Ernst-Frey Strasse 9
address: 76135 KARLSRUHE
country: DE
phone: +49 721 91374 50
fax-no: +49 721 91374 215
e-mail: hostmaster@1und1.de
website: http://www.1und1.de/
anonymous: NO
registered: 17/01/2001
source: FRNIC
nic-hdl: ANO00-FRNIC
type: PERSON
contact: Ano Nymous
remarks: -------------- WARNING --------------
remarks: While the registrar knows him/her,
remarks: this person chose to restrict access
remarks: to his/her personal data. So PLEASE,
remarks: don't send emails to Ano Nymous. This
remarks: address is bogus and there is no hope
remarks: of a reply.
remarks: -------------- WARNING --------------
registrar: 1&1 Internet SE
changed: 25/01/2014 anonymous@anonymous
anonymous: YES
obsoleted: NO
eligstatus: not identified
reachstatus: not identified
source: FRNIC
nic-hdl: ANO00-FRNIC
type: PERSON
contact: Ano Nymous
remarks: -------------- WARNING --------------
remarks: While the registrar knows him/her,
remarks: this person chose to restrict access
remarks: to his/her personal data. So PLEASE,
remarks: don't send emails to Ano Nymous. This
remarks: address is bogus and there is no hope
remarks: of a reply.
remarks: -------------- WARNING --------------
registrar: 1&1 Internet SE
changed: 25/01/2014 anonymous@anonymous
anonymous: YES
obsoleted: NO
eligstatus: not identified
reachstatus: not identified
source: FRNIC
nic-hdl: UIS153-FRNIC
type: ORGANIZATION
contact: 1&1 Internet SARL
address: 1&1 Internet SARL
address: 7, place de la Gare
address: 57200 Sarreguemines
country: FR
phone: +33 9 70 80 89 11
fax-no: +33 3 87 95 99 74
e-mail: hostmaster@1and1.fr
registrar: 1&1 Internet SE
changed: 30/06/2015 nic@nic.fr
anonymous: NO
obsoleted: NO
eligstatus: not identified
reachstatus: not identified
source: FRNIC
REFERRER http://www.nic.fr
REGISTRAR AFNIC
SERVERS
SERVER fr.whois-servers.net
ARGS mihalcea.fr
PORT 43
TYPE domain
RegrInfo
DISCLAIMER
%
% This is the AFNIC Whois server.
%
% complete date format : DD/MM/YYYY
% short date format : DD/MM
% version : FRNIC-2.5
%
% Rights restricted by copyright.
% See https://www.afnic.fr/en/products-and-services/services/whois/whois-special-notice/
%
% Use '-h' option to obtain more information about this service.
%
% [2600:3c03:0000:0000:f03c:91ff:feae:779d REQUEST] >> mihalcea.fr
%
% RL Net [##########] - RL IP [#########.]
%
REGISTERED yes
ADMIN
HANDLE ANO00-FRNIC
TYPE PERSON
CONTACT Ano Nymous
REMARKS
-------------- WARNING --------------
While the registrar knows him/her,
this person chose to restrict access
to his/her personal data. So PLEASE,
don't send emails to Ano Nymous. This
address is bogus and there is no hope
of a reply.
-------------- WARNING --------------
SPONSOR 1&1 Internet SE
CHANGED 2014-01-25
ANONYMOUS YES
OBSOLETED NO
ELIGSTATUS not identified
REACHSTATUS not identified
SOURCE FRNIC
TECH
HANDLE UIS153-FRNIC
TYPE ORGANIZATION
CONTACT 1&1 Internet SARL
ADDRESS
1&1 Internet SARL
7, place de la Gare
57200 Sarreguemines
COUNTRY FR
PHONE +33 9 70 80 89 11
FAX +33 3 87 95 99 74
EMAIL hostmaster@1and1.fr
SPONSOR 1&1 Internet SE
CHANGED 2015-06-30
ANONYMOUS NO
OBSOLETED NO
ELIGSTATUS not identified
REACHSTATUS not identified
SOURCE FRNIC
OWNER
HANDLE ANO00-FRNIC
TYPE PERSON
CONTACT Ano Nymous
REMARKS
-------------- WARNING --------------
While the registrar knows him/her,
this person chose to restrict access
to his/her personal data. So PLEASE,
don't send emails to Ano Nymous. This
address is bogus and there is no hope
of a reply.
-------------- WARNING --------------
SPONSOR 1&1 Internet SE
CHANGED 2014-01-25
ANONYMOUS YES
OBSOLETED NO
ELIGSTATUS not identified
REACHSTATUS not identified
SOURCE FRNIC
DOMAIN
STATUS ACTIVE
HOLD NO
SPONSOR 1&1 Internet SE
EXPIRY DATE 10/02/2019
CREATED 2011-02-25
CHANGED 2018-02-10
SOURCE FRNIC
HANDLE NSL68093-FRNIC
NSERVER
NS1046.UI-DNS.BIZ 217.160.81.46
NS1046.UI-DNS.COM 217.160.82.46
NS1046.UI-DNS.DE 217.160.80.46
NS1046.UI-DNS.ORG 217.160.83.46
NAME mihalcea.fr
Go to top