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
    
  
  
    
  | #!/bin/bash | |
| find . -type f -name '*.php' -exec php -l {} \; | grep -v "No syntax errors detected" | 
  
    
      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
    
  
  
    
  | git config --global alias.st status | |
| git config --global alias.co checkout | |
| git config --global alias.ci commit | |
| git config --global alias.br branch | |
| git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" | |
| git config --global alias.type 'cat-file -t' | |
| git config --global alias.dump 'cat-file -p' | |
| git config --global alias.mg 'merge --no-ff' | |
| git config --global alias.brdate 'branch --sort=-committerdate' | |
| git config --global alias.mgm 'merge --no-ff --no-commit' | 
  
    
      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 | |
| //For codeigniter 2.x | |
| class MY_Profiler extends CI_Profiler { | |
| public function run() | |
| { | |
| $output = parent::run(); | |
| // log output here, and optionally return it if you do want it to display | |
| file_put_contents('/tmp/' . str_replace('/', '_', $_SERVER['REQUEST_URI']) . '.html', $output); | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| find . -name "*.php" -print0 | xargs -0 -n1 -P4 php -l | grep -v 'No syntax errors' | 
  
    
      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
    
  
  
    
  | #Fetch resource header information | |
| curl -s -I http://www.google.com/uploads/media/768696526.mp3 | 
  
    
      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 | |
| $command = 'nohup >/dev/null 2>&1 /your/background/script.php &' | |
| exec($command); | 
  
    
      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 | |
| $email = ""; //set some email here | |
| $email = str_replace("\xE2\x80\x8B", '', $email); | 
  
    
      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
    
  
  
    
  | Connection pools decorate Connection and Statement instances with their own wrapper implementations. | |
| When you call close on a connection you are actually just releasing it back to the pool. | |
| When you call close on a prepared statement you are actually just releasing it back to the connection's statement cache. | |
| When you prepare a statement you might just be fetching a cached statement instance from the connection. | |
| All this is hidden from view so that you don't have to worry about it. | |
| When a connection is given to a client it is no longer available for any other client to use until the connection is released back to the pool. | |
| You generally just fetch connections when you need them and then return them as soon as you are finished with them. | |
| Because the connections are being held open in the pool there is little overhead in fetching and releasing connections. | 
  
    
      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 | |
| $reflFunc = new ReflectionFunction('decode'); | |
| print $reflFunc->getFileName() . ':' . $reflFunc->getStartLine(); | 
  
    
      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 | |
| error_reporting(E_ALL ^ E_DEPRECATED); | |
| ini_set('error_reporting', E_ALL ^ E_DEPRECATED); | |
| ini_set('display_startup_errors', 1); | |
| ini_set('display_errors', 1); | 
OlderNewer