- Downloads & prerequistes
- Environment variables
<?php | |
define('CURL_EXEC_RETRY_MAX',3); | |
define('GCM_SERVER_URL',"https://android.googleapis.com/gcm/send"); | |
define('GCM_API_KEY',"YOUR_API_KEY"); | |
/** | |
* Using PHP to send a message to a Google Cloud Messaging registered device is quite simple. | |
* In this class we're using curl to create a message request to send to the Google GCM server. | |
* This class require an GCM Api key cf. {@link https://code.google.com/apis/console/} |
<?php | |
//----------------------------------------------------------- | |
// Serialisatoin & Désérialisation tableau <-> fichier | |
//----------------------------------------------------------- | |
echo "<pre>"; print_r($tab_lst_interventions); | |
$str_dateLog = date('Ymd_His'); | |
$str_cheminLog = CHEMIN_APPLI.'/logs/'.$str_dateLog; |
/** | |
* Classe Personne | |
* Décrit un objet personne par son nom et son age | |
* | |
*/ | |
public class Personne { | |
private String name; | |
private int age; |
public class MySingleton { | |
private static MySingleton instance; | |
public String customVar; | |
public MySingleton() | |
{ | |
if (instance == null) | |
{ |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.util.Hashtable; | |
import javax.naming.*; | |
import javax.naming.directory.*; | |
import javax.swing.*; | |
public class LDAP_connect extends JDialog implements ActionListener { | |