PHPEdit.net Community
   
1 2 3 4
Tutorials Tips Pasties Code Snippets
 

Home > Pasties

Recent Pasties

« < 1 - 2 > »

Create a new one now.

Created on 15/07/2010 20:16 by Anonymous

  1. $NOW = date("YmdHis", $TIME);
View complete code

Created on 08/05/2010 06:13 by Anonymous

  1.  
View complete code

Created on 21/04/2010 07:03 by Anonymous

  1. <?php session_start(); ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <title>Register a Username and Password</title>
  7. </head>
  8. <body>
  9.  
View complete code

Created on 21/04/2010 05:32 by Anonymous

  1. <?
  2. ?>
View complete code

Created on 25/11/2009 10:31 by Anonymous

  1. <?php
  2.  
  3.  
  4.  
  5. require_once(dirname(__FILE__).'/../autoload/sfCoreAutoload.class.php'
    );
  6. sfCoreAutoload::register();
  7.  
  8. try
  9.  
View complete code

Created on 10/03/2008 08:26 by Anonymous

  1. function CheckFileExtension($file,&$Extension=array())
  2. {
  3.  
  4. if(file_exists($file))
  5. {
  6.  
  7. // ON EXTRAIT L'EXTENSION
  8. $SubstractExt = substr(strrchr($file, "."), 1);
  9.  
View complete code

Created on 10/03/2008 08:23 by Anonymous

  1. ///
  2. function CheckFileExtension($file,&$Extension=array())
  3. {
  4. if(file_exists($file))
  5. {
  6. // ON EXTRAIT L'EXTENSION---> l'extension sera définie même si
    votre fichier se nomme myfile.config.inc, retourne inc
  7. $SubstractExt = substr(strrchr($file, "."), 1);
  8.  
  9.  
View complete code

Created on 07/03/2008 21:22 by Anonymous

  1. .liens { font-family: Arial, Helvetica, sans-serif; font-size: 11px;
    color: #4E4E4E; }
  2. .liens12 { font-family: Arial, Helvetica, sans-serif; font-size: 12px;
    color: #996666; }
  3. .texte12gris { font-family: Arial, Helvetica, sans-serif; font-size:
    12px
    ; color: #666666; }
  4. .texte11gris { font-family: Arial, Helvetica, sans-serif; font-size:
    11px
    ; color: #666666; }
  5. .formsaisie {
  6. font-family: Arial, Helvetica, sans-serif; font-size: 11px; color:
    #333333;
  7. background-color: #FCF7EF;
  8. margin: 4px;
  9.  
View complete code

Created on 29/02/2008 09:44 by harold03

  1. /**
  2. * cette fonction affiche les méthodes et propriétés d'un objet
    (php5)
  3. * exemple :
  4. * $objet=new objetExemple();
  5. * echo($objet);//appel implicite à __tostring
  6. * @return
  7. */
  8. function __tostring()
  9.  
View complete code

Created on 28/02/2008 11:40 by LEGLISE CHARLES EDOUARD

  1. //vérification d'extention
  2.  
  3. function checkExtention( $file){
  4. $file = 'myfile.rar';
  5. $ext_Array = array("zip","rar","jpg","jpeg","gif","bmp");
  6.  
  7. // Check file
  8. if ( file_exists($file)) {
  9.  
View complete code

 
PHPEdit User Community, © 2008 WaterProof SARL
Powered by PHPEdit