<?php
$a = 1; $b = &$a; $b = 42; print $a;
This is pretty simple, isn't it?
# Configuration generated with Drupal Compose version 1.1.6 | |
apache: | |
extends: | |
file: host.yml | |
service: apache | |
image: dockerizedrupal/apache-2.4:1.1.2 | |
hostname: apache | |
ports: | |
- "80" | |
- "443" |
<?php | |
class Vehicle { | |
/** | |
* @var string | |
*/ | |
private $name; |
alias docker-cli="docker rmi $(docker images -qf dangling=true)" | |
alias docker-clc="docker rm -v $(docker ps -aqf status=exited)" | |
alias docker-clv="docker volume rm $(docker volume ls -qf dangling=true)" |
# Modify this file accordingly for your specific requirement. | |
# http://www.thegeekstuff.com | |
# 1. Delete all existing rules | |
iptables -F | |
# 2. Set default chain policies | |
iptables -P INPUT DROP | |
iptables -P FORWARD DROP | |
iptables -P OUTPUT DROP |
<?php | |
/** | |
* Implements hook_default_search_api_server(). | |
*/ | |
function MY_MODULE_default_search_api_server() { | |
$items = []; | |
$host = variable_get('solr_search_api_host', 'localhost'); | |
$scheme = variable_get('solr_search_api_scheme', 'http'); |
<?php
$a = 1; $b = &$a; $b = 42; print $a;
This is pretty simple, isn't it?
<?php | |
require_once "vendor/autoload.php"; | |
require_once "examples/authentication.inc"; | |
$envCredProd = new EnvironmentCredentialProvider(); | |
$auth = new \Apigee\Edge\HttpClient\Plugin\Authentication\Oauth($envCredProd->getUsername(), $envCredProd->getPassword(), new \Apigee\Edge\Tests\Test\HttpClient\Plugin\InMemoryOauthTokenStorage(), null, getenv('APIGEE_EDGE_PHP_SDK_CLIENT_ID') ?: null, getenv('APIGEE_EDGE_PHP_SDK_CLIENT_SECRET' ?: null), null, getenv('APIGEE_EDGE_PHP_SDK_AUTH_SERVER') ?: null); | |
$client = new \Apigee\Edge\Client($auth); | |
$envc = new \Apigee\Edge\Api\Management\Controller\EnvironmentController($envCredProd->getOrganization(), $client); | |
try { |
<?php | |
require_once "vendor/autoload.php"; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Promise; | |
$endpoint = getenv('APIGEE_EDGE_ENDPOINT') ?: 'https://api.enterprise.apigee.com/v1'; | |
$org = getenv('APIGEE_EDGE_ORGANIZATION'); | |
$client = new Client(['base_uri' => "{$endpoint}/o/{$org}/", 'auth' => [getenv('APIGEE_EDGE_USER'), getenv('APIGEE_EDGE_PASSWORD')]]); |
<?php | |
$cnt = 10000000; | |
interface FooInterface {} | |
class BarClass implements FooInterface { | |
} | |
$x = 0; |