<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Thu, 30 Apr 2026 02:09:44 +0200 -->

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Documentation]]></title>
		<atom:link href="https://www.sthda.com/french/syndication/rss/wiki/1" rel="self" type="application/rss+xml"/>
		<link>https://www.sthda.com</link>
		<description><![CDATA[Derniers articles de la catégorie Informatique]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>fr</language>
		<generator>PHPBoost</generator>
		
		
		<item>
			<title><![CDATA[Linux et sFTP]]></title>
			<link>https://www.sthda.com/french/wiki/linux-et-sftp</link>
			<guid>https://www.sthda.com/french/wiki/linux-et-sftp</guid>
			<description><![CDATA[<span style="color:#339966;">SFTP est un sous-syst?me du serveur SSH.</span><br />
<br />
Les comptes des utilisateurs locaux servent de comptes SFTP.<br />
Depuis n&#8217;importe o?, il suffit de taper :<br />
sftp <a href="mailto:user@www.nomdusite.fr">user@www.nomdusite.fr</a> et l&#8217;utilisateur "user" peut download/uploader des fichiers et cr?er des r?pertoires dans son home directory.<br />
<br />
Pour cr?er un utilisateur :<br />
<span class="formatter-code">Code BASH :</span><div class="code"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">useradd <span style="color: #660033;">-n</span> oussama
<span style="color: #c20cb9; font-weight: bold;">passwd</span> oussama</pre></pre></div><br />
<br />
Puis ?diter le fichier /etc/ssh/sshd_config et aller ? la derni?re ligne.<br />
Dans la directive AllowUsers, ajouter "oussama", sauver et quitter, puis red?marrer le serveur SSH : service sshd restart.]]></description>
			<pubDate>Sun, 04 Mar 2012 11:11:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[motif sur graphique excel]]></title>
			<link>https://www.sthda.com/french/wiki/motif-sur-graphique-excel</link>
			<guid>https://www.sthda.com/french/wiki/motif-sur-graphique-excel</guid>
			<description><![CDATA[<a href="http://www.andypope.info/charts/patternfills.htm">http://www.andypope.info/charts/patternfills.htm</a>]]></description>
			<pubDate>Thu, 28 Apr 2011 17:56:42 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[FTP server sous MAC]]></title>
			<link>https://www.sthda.com/french/wiki/ftp-server-sous-mac</link>
			<guid>https://www.sthda.com/french/wiki/ftp-server-sous-mac</guid>
			<description><![CDATA[Installer le server <a href="http://www.pureftpd.org/project/pure-ftpd">pureFTP</a>]]></description>
			<pubDate>Wed, 01 Dec 2010 17:56:39 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[parcourir un repertoire]]></title>
			<link>https://www.sthda.com/french/wiki/parcourir-un-repertoire</link>
			<guid>https://www.sthda.com/french/wiki/parcourir-un-repertoire</guid>
			<description><![CDATA[<a href="http://cyberzoide.developpez.com/php4/file/">http://cyberzoide.developpez.com/php4/file/</a><br />
<a href="http://antoine-herault.developpez.com/tutoriels/php/gestionnaire/">http://antoine-herault.developpez.com/tutoriels/php/gestionnaire/</a><br />
<br />
<span class="formatter-code">Code PHP :</span><div class="code"><pre style="display:inline;"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #0000FF; font-weight: bold;">function</span> ScanDirectory<span style="color: #8000FF;">&#40;</span><span style="color: #000080;">$Directory</span><span style="color: #8000FF;">&#41;</span><span style="color: #8000FF;">&#123;</span>
&nbsp;
  <span style="color: #000080;">$MyDirectory</span> <span style="color: #8000FF;">=</span> <a href="http://www.php.net/opendir"><span style="color: #0000FF; font-weight: bold;">opendir</span></a><span style="color: #8000FF;">&#40;</span><span style="color: #000080;">$Directory</span><span style="color: #8000FF;">&#41;</span> or <a href="http://www.php.net/die"><span style="color: #0000FF; font-weight: bold;">die</span></a><span style="color: #8000FF;">&#40;</span><span style="color: #808080;">'Erreur'</span><span style="color: #8000FF;">&#41;</span><span style="color: #8000FF;">;</span>
    <span style="color: #0000FF; font-weight: bold;">while</span><span style="color: #8000FF;">&#40;</span><span style="color: #000080;">$Entry</span> <span style="color: #8000FF;">=</span> <span style="color: #8000FF;">@</span><a href="http://www.php.net/readdir"><span style="color: #0000FF; font-weight: bold;">readdir</span></a><span style="color: #8000FF;">&#40;</span><span style="color: #000080;">$MyDirectory</span><span style="color: #8000FF;">&#41;</span><span style="color: #8000FF;">&#41;</span> <span style="color: #8000FF;">&#123;</span>
        <span style="color: #0000FF; font-weight: bold;">if</span><span style="color: #8000FF;">&#40;</span><a href="http://www.php.net/is_dir"><span style="color: #0000FF; font-weight: bold;">is_dir</span></a><span style="color: #8000FF;">&#40;</span><span style="color: #000080;">$Directory</span><span style="color: #8000FF;">.</span><span style="color: #808080;">'/'</span><span style="color: #8000FF;">.</span><span style="color: #000080;">$Entry</span><span style="color: #8000FF;">&#41;</span><span style="color: #8000FF;">&&</span> <span style="color: #000080;">$Entry</span> <span style="color: #8000FF;">!=</span> <span style="color: #808080;">'.'</span> <span style="color: #8000FF;">&&</span> <span style="color: #000080;">$Entry</span> <span style="color: #8000FF;">!=</span> <span style="color: #808080;">'..'</span><span style="color: #8000FF;">&#41;</span> <span style="color: #8000FF;">&#123;</span>
                         <span style="color: #0000FF; font-weight: bold;">echo</span> <span style="color: #808080;">'<ul>'</span><span style="color: #8000FF;">.</span><span style="color: #000080;">$Directory</span><span style="color: #8000FF;">;</span>
            ScanDirectory<span style="color: #8000FF;">&#40;</span><span style="color: #000080;">$Directory</span><span style="color: #8000FF;">.</span><span style="color: #808080;">'/'</span><span style="color: #8000FF;">.</span><span style="color: #000080;">$Entry</span><span style="color: #8000FF;">&#41;</span><span style="color: #8000FF;">;</span>
                        <span style="color: #0000FF; font-weight: bold;">echo</span> <span style="color: #808080;">'</ul>'</span><span style="color: #8000FF;">;</span>
        <span style="color: #8000FF;">&#125;</span>
        <span style="color: #0000FF; font-weight: bold;">else</span> <span style="color: #8000FF;">&#123;</span>
            <span style="color: #0000FF; font-weight: bold;">echo</span> <span style="color: #808080;">'<li>'</span><span style="color: #8000FF;">.</span><span style="color: #000080;">$Entry</span><span style="color: #8000FF;">.</span><span style="color: #808080;">'</li>'</span><span style="color: #8000FF;">;</span>
                <span style="color: #8000FF;">&#125;</span>
    <span style="color: #8000FF;">&#125;</span>
  <a href="http://www.php.net/closedir"><span style="color: #0000FF; font-weight: bold;">closedir</span></a><span style="color: #8000FF;">&#40;</span><span style="color: #000080;">$MyDirectory</span><span style="color: #8000FF;">&#41;</span><span style="color: #8000FF;">;</span>
<span style="color: #8000FF;">&#125;</span>
&nbsp;
ScanDirectory<span style="color: #8000FF;">&#40;</span><span style="color: #808080;">'.'</span><span style="color: #8000FF;">&#41;</span><span style="color: #8000FF;">;</span>
&nbsp;</pre></pre></div>]]></description>
			<pubDate>Sat, 27 Nov 2010 20:40:35 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[Protéger un dossier par htaccess]]></title>
			<link>https://www.sthda.com/french/wiki/proteger-un-dossier-par-htaccess</link>
			<guid>https://www.sthda.com/french/wiki/proteger-un-dossier-par-htaccess</guid>
			<description><![CDATA[Il va falloir cr?er 2 fichiers :<br />
<br />
    * .htaccess : ce fichier contiendra l'adresse du .htpasswd et quelques autres options que vous pourrez d?finir.<br />
    * .htpasswd : ce fichier contiendra une liste de logins / mots de passe, pour chaque personne autoris?e ? acc?der aux pages !<br />
<br />
<h3 class="formatter-title"><strong>Cr?er le .htaccess</strong></h3><br />
<span class="formatter-code">Code PHP :</span><div class="code"><pre style="display:inline;"><pre class="php" style="font-family:monospace;">&nbsp;
AuthName <span style="color: #808080;">"Page d'administration prot?g?e"</span>
AuthType Basic
AuthUserFile <span style="color: #808080;">"/home/site/www/admin/.htpasswd"</span>
<span style="color: #0000FF; font-weight: bold;">Require</span> valid<span style="color: #8000FF;">-</span>user
&nbsp;</pre></pre></div><br />
<br />
<span style="color:red;">    * AuthName :</span> c'est le texte qui invitera l'utilisateur ? inscrire son login / mot de passe. Vous pouvez personnaliser ce texte comme bon vous semble.<br />
    <span style="color:red;">* AuthUserFile :</span> l? c'est plus d?licat, c'est le chemin absolu vers le fichier .htpasswd (que vous mettrez dans le m?me r?pertoire que le .htaccess).<br />
<br />
Pour trouver le chemin absolu d'un fichier sur votre serveur, utiliser le code php :<br />
<span class="formatter-code">Code PHP :</span><div class="code"><pre style="display:inline;"><pre class="php" style="font-family:monospace;"><span style="color: #FF0000; font-weight: normal;"><?php</span> <span style="color: #0000FF; font-weight: bold;">echo</span> <a href="http://www.php.net/realpath"><span style="color: #0000FF; font-weight: bold;">realpath</span></a><span style="color: #8000FF;">&#40;</span><span style="color: #808080;">'chemin.php'</span><span style="color: #8000FF;">&#41;</span><span style="color: #8000FF;">;</span> <span style="color: #FF0000; font-weight: normal;">?></span></pre></pre></div><br />
<br />
<h3 class="formatter-title">Cr?er le .htpasswd</h3><br />
Le .htpasswd va contenir la liste des personnes autoris?es ? acc?der aux pages du dossier. On y inscrit une personne par ligne, sous cette forme :<br />
<span class="formatter-code">Code AUTRE :</span><div class="code"><pre style="display:inline;"><pre class="autre" style="font-family:monospace;">login:mot_de_passe_crypt?</pre></pre></div><br />
<br />
Au final, votre fichier .htpasswd devrait ressembler ? ceci :<br />
<span class="formatter-code">Code AUTRE :</span><div class="code"><pre style="display:inline;"><pre class="autre" style="font-family:monospace;">mateo21:$1$MEqT//cb$hAVid.qmmSGFW/wDlIfQ81
ptipilou:$1$/lgP8dYa$sQNXcCP47KhP1sneRIZoO0
djfox:$1$lT7nqnsg$cVtoPfe0IgrjES7Ushmoy.
vincent:$1$h4oVHp3O$X7Ejpn.uuOhJRkT3qnw3i0</pre></pre></div><br />
<br />
Pour crypter un mot de passe utiliser le code php:<br />
<span class="formatter-code">Code PHP :</span><div class="code"><pre style="display:inline;"><pre class="php" style="font-family:monospace;"><span style="color: #FF0000; font-weight: normal;"><?php</span> <span style="color: #0000FF; font-weight: bold;">echo</span> <a href="http://www.php.net/crypt"><span style="color: #0000FF; font-weight: bold;">crypt</span></a><span style="color: #8000FF;">&#40;</span><span style="color: #808080;">'kangourou'</span><span style="color: #8000FF;">&#41;</span><span style="color: #8000FF;">;</span> <span style="color: #FF0000; font-weight: normal;">?></span></pre></pre></div><br />
<br />
<br />
Un code PHP demandant le login et le mot de passe pour le crypter<br />
<span class="formatter-code">Code PHP :</span><div class="code"><pre style="display:inline;"><pre class="php" style="font-family:monospace;"><p>
<span style="color: #FF0000; font-weight: normal;"><?php</span>
<span style="color: #0000FF; font-weight: bold;">if</span> <span style="color: #8000FF;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #0000FF; font-weight: bold;">isset</span></a><span style="color: #8000FF;">&#40;</span><span style="color: #000080;">$_POST</span><span style="color: #8000FF;">&#91;</span><span style="color: #808080;">'login'</span><span style="color: #8000FF;">&#93;</span><span style="color: #8000FF;">&#41;</span> AND <a href="http://www.php.net/isset"><span style="color: #0000FF; font-weight: bold;">isset</span></a><span style="color: #8000FF;">&#40;</span><span style="color: #000080;">$_POST</span><span style="color: #8000FF;">&#91;</span><span style="color: #808080;">'pass'</span><span style="color: #8000FF;">&#93;</span><span style="color: #8000FF;">&#41;</span><span style="color: #8000FF;">&#41;</span>
<span style="color: #8000FF;">&#123;</span>
    <span style="color: #000080;">$login</span> <span style="color: #8000FF;">=</span> <span style="color: #000080;">$_POST</span><span style="color: #8000FF;">&#91;</span><span style="color: #808080;">'login'</span><span style="color: #8000FF;">&#93;</span><span style="color: #8000FF;">;</span>
    <span style="color: #000080;">$pass_crypte</span> <span style="color: #8000FF;">=</span> <a href="http://www.php.net/crypt"><span style="color: #0000FF; font-weight: bold;">crypt</span></a><span style="color: #8000FF;">&#40;</span><span style="color: #000080;">$_POST</span><span style="color: #8000FF;">&#91;</span><span style="color: #808080;">'pass'</span><span style="color: #8000FF;">&#93;</span><span style="color: #8000FF;">&#41;</span><span style="color: #8000FF;">;</span> <span style="color: #008000; font-style: italic;">// On crypte le mot de passe</span>
&nbsp;
    <span style="color: #0000FF; font-weight: bold;">echo</span> <span style="color: #808080;">'Ligne ? copier dans le .htpasswd :<br />'</span> <span style="color: #8000FF;">.</span> <span style="color: #000080;">$login</span> <span style="color: #8000FF;">.</span> <span style="color: #808080;">':'</span> <span style="color: #8000FF;">.</span> <span style="color: #000080;">$pass_crypte</span><span style="color: #8000FF;">;</span>
<span style="color: #8000FF;">&#125;</span>
&nbsp;
<span style="color: #0000FF; font-weight: bold;">else</span> <span style="color: #008000; font-style: italic;">// On n'a pas encore rempli le formulaire</span>
<span style="color: #8000FF;">&#123;</span>
<span style="color: #FF0000; font-weight: normal;">?></span>
</p>
&nbsp;
<p>Entrez votre login et votre mot de passe pour le crypter.</p>
&nbsp;
<form method="post">
    <p>
        Login : <input type="text" name="login"><br />
        Mot de passe : <input type="text" name="pass"><br /><br />
&nbsp;
        <input type="submit" value="Crypter !">
    </p>
</form>
&nbsp;
<span style="color: #FF0000; font-weight: normal;"><?php</span>
<span style="color: #8000FF;">&#125;</span>
<span style="color: #FF0000; font-weight: normal;">?></span>
&nbsp;</pre></pre></div>]]></description>
			<pubDate>Sat, 27 Nov 2010 10:49:35 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[server ftp]]></title>
			<link>https://www.sthda.com/french/wiki/server-ftp</link>
			<guid>https://www.sthda.com/french/wiki/server-ftp</guid>
			<description><![CDATA[Installer typsoft server<br />]]></description>
			<pubDate>Sat, 27 Nov 2010 09:03:13 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[Le langage JAVASCRIPT]]></title>
			<link>https://www.sthda.com/french/wiki/le-langage-javascript</link>
			<guid>https://www.sthda.com/french/wiki/le-langage-javascript</guid>
			<description><![CDATA[<h3 class="formatter-title">Afficher une image en plein ?cran ou en diaporama</h3><br />
<a href="http://xuxu.fr/splash-diaporama-javascript-simple-et-leger/">http://xuxu.fr/splash-diaporama-javascript-simple-et-leger/</a><br />
<br />
<br />
<strong>COUR JQUERY</strong><br />
[url=http://www.siteduzero.com/tutoriel-3-160876-decouvrir-jquery.html]<br />
http://www.siteduzero.com/tutoriel-3-160876-decouvrir-jquery.html[/url]<br />
<br />
<a href="http://wiki.github.com/madrobby/scriptaculous/">scrptaculous</a>]]></description>
			<pubDate>Sat, 30 Oct 2010 19:29:51 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[coloration de code]]></title>
			<link>https://www.sthda.com/french/wiki/coloration-de-code</link>
			<guid>https://www.sthda.com/french/wiki/coloration-de-code</guid>
			<description><![CDATA[<a href="http://www.siteduzero.com/tutoriel-3-38905-geshi-colorer-son-code.html">http://www.siteduzero.com/tutoriel-3-38905-geshi-colorer-son-code.html</a><br />
<br />
Permet la coloration syntaxique du code gr?ce ?<a href="http://qbnz.com/highlighter/"> GeSHI</a>]]></description>
			<pubDate>Sat, 30 Oct 2010 09:03:14 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[Créer un lien hypertexte avec excel]]></title>
			<link>https://www.sthda.com/french/wiki/creer-un-lien-hypertexte-avec-excel</link>
			<guid>https://www.sthda.com/french/wiki/creer-un-lien-hypertexte-avec-excel</guid>
			<description><![CDATA[<strong>Syntaxe</strong><br />
<br />
LIEN_HYPERTEXTE(emplacement_lien;nom_convivial)<br />
Ex : =LIEN_HYPERTEXTE("https://www.sthda.com";"FGFR3")<br />
<br />
<a href="http://office.microsoft.com/fr-ch/excel-help/creer-un-lien-hypertexte-HP005199516.aspx">http://office.microsoft.com/fr-ch/excel-help/creer-un-lien-hypertexte-HP005199516.aspx</a>]]></description>
			<pubDate>Thu, 28 Oct 2010 14:33:19 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[Mettre un #div au premier plan]]></title>
			<link>https://www.sthda.com/french/wiki/mettre-un-div-au-premier-plan</link>
			<guid>https://www.sthda.com/french/wiki/mettre-un-div-au-premier-plan</guid>
			<description><![CDATA[tu r?gles le z-index dans le css:<br />
<br />
<br />
<span class="formatter-code">Code CSS :</span><div class="code"><pre style="display:inline;"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#div1</span>
<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#div2</span><span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">10</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></pre></div><br />
<br />
<br />
le num?ro le plus grand sera au premier plan.]]></description>
			<pubDate>Sat, 09 Oct 2010 15:00:19 +0200</pubDate>
			
		</item>
		
	</channel>
</rss>
