start new:
tmux
start new with session name:
tmux new -s myname
Hi,
I was looking a small piece of code
$file = new SplFileObject($path);
while (! $file->eof()) {
echo $file->fgets();
}
<?php | |
// router instantiation | |
$router->add('default_route', '/{controller}') | |
->setWildcard('other') | |
->addValues(array( | |
'action' => 'build_your_controller', | |
)); | |
; |
<?php | |
$client = new Client( | |
array( | |
'base_url' => \SproutVideo::$base_url, | |
'defaults' => array( | |
'headers' => array( | |
'SproutVideo-Api-Key' => \SproutVideo::$api_key, | |
'Content-Type', 'application/json;charset=utf-8' | |
), | |
) |
Format from : http://symfony.com/doc/current/contributing/code/patches.html
| Q | A
| ------------- | ---
| Doc fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| License | MIT
<?php | |
// front-end form example with multiple images upload | |
// add new page created on the fly and adding images | |
$message = ''; | |
if($input->post->submit){ | |
// tmp upload folder for additional security |
<?php | |
/** | |
* ProcessWire (2.5) InputfieldFile front-end upload form example | |
* Various workarounds to get it working with Errors for WireUpload | |
* and removing files upload after error | |
*/ | |
$sent = false; | |
$upload_path = $config->uploadTmpDir; |
<?php | |
// front-end form example with multiple images upload | |
// add new page created on the fly and adding images | |
$message = ''; | |
if($input->post->submit){ | |
// tmp upload folder for additional security |
<?php | |
// get a page | |
$editpage = $pages->get("/editme/"); | |
$ignorefields = array("isOld","language_published"); | |
$form = $modules->get("InputfieldForm"); | |
$form->method = 'post'; | |
$form->action = './'; |
<?php | |
/** | |
* | |
* This file is part of the Aura project for PHP. | |
* | |
* @package Aura.Input | |
* | |
* @license http://opensource.org/licenses/bsd-license.php BSD | |
* | |
*/ |