This file contains 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
This is a quick overview about te IIS 8.5 error message "The page was not displayed because the request entity is too large", Our team | |
was trying to publish a PHP app on IIS server, in this app our team was working on the improvement of app folder structure, after that | |
when some clients was trying to work with it, the app had been throwing "The page was not displayed because the request entity is too | |
large" as response. | |
After an extensive search on the web we found a solution: | |
Command: appcmd.exe set config -section:system.webserver/serverruntime/uploadreadaheadsize: 1048576 /commit:apphost | |
IIS Manager: <Server Instance> -> Management -> Configuration editor -> System.webServer -> serverRuntime -> UploadReadAheadSize, set 1048576 |
This file contains 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
/** | |
* This function allows to search a especific key in a complex object | |
* @author [email protected] | |
* @param (Object) o: Object in which you look for the key | |
* @param (string) key: Name of key you're looking for | |
* @return (mixed) $r: Return object or value related with key name, | |
* instead if key were not found it return undefined | |
*/ | |
function hasKey(o, key) { |
This file contains 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
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews -Indexes | |
</IfModule> | |
RewriteEngine On | |
# Handle Authorization Header | |
RewriteCond %{HTTP:Authorization} . | |
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
This file contains 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
This way helps to improve the performance of a WAMP server under Windows 10 64 bits, using Laravel 5.4 API | |
Changes: | |
httpd.conf | |
-EnableMMAP on | |
-EnableSendfile on | |
-Include conf/extra/httpd-mpm.conf | |
-AcceptFilter http none | |
-AcceptFilter https none |
This file contains 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 | |
/** | |
* Function to sum two arrays | |
* | |
* @param array $a First array to merge | |
* @param array $b Second array to merge which gonna be returned by function | |
* | |
* @author Orlando Villegas Galán <[email protected]> | |
* @return $b | |
*/ |