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
# Allow with + or - listing folder's content | |
Options +Indexes | |
##enable CORS and credentials | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "*" | |
Header set Access-Control-Allow-Origin http://www.vknyvz.com | |
Header set Access-Control-Allow-Credentials true | |
</IfModule> |
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
Why there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause? | |
in MySQL 5.6.5 (2012-04-10, Milestone 8) is possible to have 2 fields, as follows: | |
CREATE TABLE `foo` ( | |
`id` INT(10) UNSIGNED NOT NULL, | |
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
`updated_at ` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP | |
) ENGINE=INNODB; |
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
let promisedData = function() { | |
let deferredQuery = $.Deferred(); | |
$.ajax({ | |
type: "GET", | |
crossDomain: true, | |
dataType: "json", | |
cache: false, | |
data: "data=data", |
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 | |
if ('POST' !== $_SERVER['REQUEST_METHOD']) { | |
http_response_code(405); | |
exit( json_encode([ 'Client Error 405' => 'Method not allowed!' ]) ); | |
} | |
try { |
NewerOlder