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
--- | |
# Ansible playbook to install Vagrant on Fedora. | |
# | |
# PREREQUISITES | |
# 1. Install Ansible: | |
# ``` | |
# sudo dnf install ansible | |
# ``` | |
# | |
# 2. Install Git |
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
Resulting Symfony Request object while running under PHP-PM from the curl request | |
curl --max-redirs 0 \ | |
--data "form_id=search_form&form_build_id=form-hBDOkME24rvyD5ePeZ2m_NryapLP3jHjZrTs&keys=Abico&op=Search" \ | |
"http://localhost/search/node?keys=Foobar&q=Baz" | |
------------------------------------------------------------------------------------------------------ | |
Symfony\Component\HttpFoundation\Request Object | |
( | |
[request] => Symfony\Component\HttpFoundation\ParameterBag Object |
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
Resulting Symfony Request object while running under nginx + PHP-FPM from the curl request | |
curl --max-redirs 0 \ | |
--data "form_id=search_form&form_build_id=form-hBDOkME24rvyD5ePeZ2m_NryapLP3jHjZrTs&keys=Abico&op=Search" \ | |
"http://localhost/search/node?keys=Foobar&q=Baz" | |
------------------------------------------------------------------------------------------------------ | |
Symfony\Component\HttpFoundation\Request Object | |
( | |
[request] => Symfony\Component\HttpFoundation\ParameterBag Object |
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 | |
namespace PHPPM\Bridges; | |
use PHPPM\AppBootstrapInterface; | |
use PHPPM\Bootstraps\BootstrapInterface; | |
use PHPPM\Bridges\BridgeInterface; | |
use React\Http\Request as ReactRequest; | |
use React\Http\Response as ReactResponse; | |
use Stack\Builder; |
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
Resulting magic globals under mod_php from a simple POST request that also contains query parameters in the URL. | |
$_REQUEST contains both $_GET and $_POST. If $_GET & $_POST have the same key, the value from $_POST is used. | |
$_GET => | |
Array | |
( | |
[qs] => qs_data | |
[form_text] => qs_form_text_data | |
) |