ojstr.twig.ojs_extension:
class: Sfapp\Common\Twig\SfappExtension
arguments: [@service_container]
tags:
- { name: twig.extension } arguments sayesinden extension dosyasında service container'a erişebileceğim.
ojstr.twig.ojs_extension:
class: Sfapp\Common\Twig\SfappExtension
arguments: [@service_container]
tags:
- { name: twig.extension }
PHP Fatal error: Class 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider' not found in /home/tayyar/test/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 123
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider' not found","file":"\/home\/tayyar\test\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/ProviderRepository.php","line":123}}Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Class 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider' not found in /home/tayyar/test/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 123
sudo apt-get install \autoconf automake binutils-dev build-essential cmake g++ git \ libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev \
libboost-system-dev libboost-thread-dev libbz2-dev libc-client-dev \ libc-client2007e-dev libcap-dev libcurl4-openssl-dev libdwarf-dev libelf-dev \ libexpat-dev libgd2-xpm-dev libgoogle-glog-dev libgoogle-perftools-dev libicu-dev \ libjemalloc-dev libmcrypt-dev libmemcached-dev libmysqlclient-dev libncurses-dev \ libonig-dev libpcre3-dev libreadline-dev libtbb-dev libtool libxml2-dev zlib1g-dev libevent-dev \ libmagickwand-dev libinotifytools0-dev libiconv-hook-dev libedit-dev libiberty-dev libxslt1-dev ocaml-native-compilers
ini_set('mongo.native_long', 1);
[mongodb]
mongo.native_long = 1
sudo pip install dotcloudIlk adim yeni bir proje dizini olusturun ve dotcloud bilgilerinizi girmek icin setup komutu verin
#belki oncesinde pip kurmaniz gerekebilir
#sudo easy_install pip
mkdir test1
dotcloud setupTum ayarlari yml dosyalari uzerinden yapiyorsunuz. Ekleyeceginiz eklentileri veya uygulama turunu yml dosyasi ustunde yapiyorsunuz.
dotcloud create helloworldappcalistirir calistirmaz dotcloud.yml dosyasinin olustugunu goreceksiniz
While memcached does not support any type of wildcard deleting or deletion by namespace (since there are not namespaces), there are some tricks that can be used to simulate this. They do require extra trips to the memcached servers however.Example, in PHP, for using a namespace called foo:
$ns_key = $memcache->get("foo_namespace_key");
// if not set, initialize it
if($ns_key===false) $memcache->set("foo_namespace_key", rand(1, 10000));
// cleverly use the ns_key
$my_key = "foo_".$ns_key."_12345";
$my_val = $memcache->get($my_key);
//To clear the namespace do:
$memcache->increment("foo_namespace_key");<?php ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $testArray = fillArray( 0, 4 ); //print_r($testArray ); $start = microtime( true ); json_encode( $testArray ); $jsonTime = microtime( true ) - $start; echo "JSON encoded in $jsonTime seconds<br>"; $start = microtime( true ); serialize( $testArray ); $serializeTime = microtime( true ) - $start; echo "PHP serialized in $serializeTime seconds<br>"; if ( $jsonTime < $serializeTime ) echo "json_encode() was roughly " . number_format( ($serializeTime / $jsonTime - 1 ) * 100, 2 ) . "% faster than serialize()"; else if ( $serializeTime < $jsonTime ) echo "serialize() was roughly " . number_format( ($jsonTime / $serializeTime - 1 ) * 100, 2 ) . "% faster than json_encode()"; else echo 'Unpossible!'; function fillArray( $depth, $max ) { static $seed; if ( is_null( $seed ) ) $seed = array( 1,'a',2,'b',3,'c',4,'d',5,'e',6,'f',7,'g',8,'h',9,'i',0,'j' ); if ( $depth < $max ) { $node = array(); foreach ( $seed as $key ) $node[$key] = fillArray( $depth + 1, $max ); return $node; } return 'empty'; } ?>
"a PHP class to query the web by an SQL like language"
"PHP.JS is an open source project in which we try to port PHP functions to JavaScript. By including the PHP.JS library in your own projects, you can use your favorite PHP functions client-side."
Harmony's goal is to bring php in the browser, thus developing on the server and on the client side using only one language. PHP, which is simple to use and known by thousands, is a perfect fit. No needs to learn javascript any more. The conversion between the two language is instantaneous! (Learn what you cannot do).