This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
# | |
# Internally rewrite extensionless URL to corresponding .php | |
# file unless the URL exists as a directory | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(([^/]+/)*[^.]+)$ $1.php [L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$rejet = explode(' ', (file_get_contents('bad_words.txt'))); | |
$interdits = array(',',';','.',':','!','(',')','[',']','-','+','_',"'","\n", "«","»"); | |
// on retire les caractères spéciaux -> espaces | |
$s = strtolower(str_ireplace($interdits,' ', utf8_encode($texte_a_traiter))); | |
// on découpe par espaces | |
$s = explode(' ',$s); | |
foreach($s as $w) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
devrait aurait veut seront ils nous vous elles pour dans moins apres plus avec viaphp chez grand tout après selon bientôt sont cette fait sous elle entre faire elle mais vient aussi suite fois encore alors deux trois quatre cinq sept huit neuf contre être etre soit bien mise comme lors jour avait journée avoir vendredi lundi mardi mercredi jeudi vendredi samedi dimanche hier demain journée propose depuis jours voici pres votre rien cote côte côté leur leurs peut grande grandes petit petits petite petites tout tous autre dont donc seul seuls seule seules sera seraient avons trop comment passe ayant sur une les des son ont est pas ses ces ait par qui ans aux 000 qui que janvier février mars avril mai juin juillet aout août septembre octobre novembre décembre decembre avant porte màj maj m%E0j version site sites livre livres fichiers fichier quand propos test vend vente euros très près être vers semaine déjà deja sans vos disponible nouvelle incurvé quelque quelques été rachète racheter racheté achète acheter ac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_current_path() { | |
return 'http://'. $_SERVER['SERVER_NAME'].'/'.str_replace($_SERVER['DOCUMENT_ROOT'],'',str_replace(basename(__FILE__)."##",'',__FILE__.'##')); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type='text/javascript' src='https://www.google.com/jsapi'></script> | |
<script type='text/javascript'> | |
google.load('visualization', '1', {packages:['orgchart']}); | |
google.setOnLoadCallback(drawChart); | |
function drawChart() { | |
var data = new google.visualization.DataTable(); | |
data.addColumn('string', 'Name'); | |
data.addColumn('string', 'Manager'); | |
//data.addColumn('string', 'ToolTip'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre><?php | |
$arr[] = "b"; | |
$arr[] = ""; | |
$arr[] = "aa"; | |
$arr[] = "c"; | |
$arr[] = ""; | |
$arr[] = "da"; | |
print_r($arr); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('DB_HOST', 'localhost'); | |
define('DB_USER', 'bla'); | |
define('DB_PASS', 'bla'); | |
define('DB_BASE', 'bla'); | |
define('DB_CONN', 'mysql:host='.DB_HOST.';dbname='.DB_BASE); | |
// Buildin singleton class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$n = intval(rand(1,97)); | |
echo '<a href="http://aubade.com/img/lecons/'.$n.'.jpg"><img src="http://aubade.com/img/lecons/medium/'.$n.'.gif" alt="Aubade - Leçon '.$n.'" /></a>'; | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Abbeville:frxab | |
Aéroport CDG 2 TGV:frmlw | |
Agen:fragf | |
Aix en Provence:frqxb | |
Aix en Provence TGV:fraie | |
Aix les Bains le Revard:frxai | |
Albertville:frxav | |
Albi ville:frafj | |
Amiens:frqam | |
Angers St Laud:fracl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports System.Xml | |
Dim XmlDoc As XmlDocument = New XmlDocument() | |
XmlDoc.LoadXml("<config></config>") | |
Dim eName As XmlElement | |
eName = XmlDoc.CreateElement("name") | |
eName.InnerText = "blablabla" | |
XmlDoc.DocumentElement.AppendChild(eName) |
OlderNewer