This file contains 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
#! /bin/sh | |
# | |
# chkconfig: - 55 45 | |
# description: The memcached daemon is a network memory cache service. | |
# processname: memcached | |
# config: /etc/sysconfig/memcached | |
# pidfile: /var/run/memcached/memcached.pid | |
# Standard LSB functions | |
#. /lib/lsb/init-functions |
This file contains 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 | |
function retournerListeVariables($template = "") | |
{ | |
$listeVariables = array(); | |
if (file_exists($template)) { | |
$content = file_get_contents($template); | |
if (preg_match_all("/{{(.*?)}}/si", $content, $aux)) { | |
$listeVariables = $aux[1]; | |
} | |
} |
This file contains 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
#!/bin/bash | |
echo "Bonjour" >> /tmp/cron |
This file contains 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 | |
print "mihamina"; | |
?> |
This file contains 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 | |
if((isset($_REQUEST['nombre']) && is_numeric($_REQUEST['nombre'])) && ($_REQUEST['nombre'] < 20)) | |
{ | |
$max=$_REQUEST['nombre']; | |
$resultat=1; | |
for($i=1; $i<=$max; $i++) { $resultat=$resultat*$i;} | |
$message="Factorielle(".$max.") => ".$resultat; | |
} | |
else | |
{ |
This file contains 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
<html> | |
<head> | |
<title>Factorielle</title> | |
</head> | |
<body> | |
<h1>Factorielle</h1> | |
<div>Entrer un nombre:</div> | |
<div> | |
<form name="factorielle"> | |
<input id="requete" type="text" value="" onkeyup="resultat()"> |
This file contains 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
#set($user = $userAccessor.getUser()) | |
<iframe src="http://hostname/qcm?user=$user.name"></iframe> |
This file contains 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 | |
class ArticleModel | |
{ | |
public static function getArticleIds() | |
{ | |
$xml = new XMLReader(); | |
$tmp = $xml->open('encheres.xml'); | |
while($xml->read()) |
This file contains 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 | |
class PersonModel | |
{ | |
public static function getPersonIds() | |
{ | |
$xml = new XMLReader(); | |
$tmp = $xml->open('encheres.xml'); | |
while($xml->read()) | |
{ |
This file contains 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 | |
class PersonModel | |
{ | |
public function __construct($id) | |
{ | |
$xml = new XMLReader(); | |
$tmp = $xml->open('encheres.xml'); | |
while($xml->read()) | |
{ |
OlderNewer