Sometimes some websites require https to work. This can be useful in those cases.
This has been tested with XAMPP (PHP 7.0.8) on Windows 7. Please see the Reference links at the end if in confusion about some step.
Open:
C:\xampp\php\php.ini
CULTURE SPEC.CULTURE ENGLISH NAME | |
-------------------------------------------------------------- | |
Invariant Language (Invariant Country) | |
af af-ZA Afrikaans | |
af-ZA af-ZA Afrikaans (South Africa) | |
ar ar-SA Arabic | |
ar-AE ar-AE Arabic (U.A.E.) | |
ar-BH ar-BH Arabic (Bahrain) | |
ar-DZ ar-DZ Arabic (Algeria) | |
ar-EG ar-EG Arabic (Egypt) |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Home</title> | |
</head> |
const readLine = require('readline'); | |
const fs = require('fs'); | |
const regexWN = new RegExp('Website name:\\s([^\n]+)', ''); | |
const regexWU = /Website URL: ([^\n]+)/; | |
const regexLN = /Login name: ([^\n]+)/; | |
const regexL = /Login: ([^\n]+)/; | |
const regexPW = /^Password: ([^\n]+)/; | |
const regexC = /Comment:/; | |
<?php | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Methods: POST, GET, DELETE, PUT, PATCH, OPTIONS'); | |
header('Content-type: application/json'); | |
if (isset($_POST['user']) && isset($_POST['password'])) { | |
$jsonArr = ["status" => "true", "POST" => $_POST]; | |
echo json_encode($_POST); | |
} else { |
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Test Front and Back</title> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | |
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous"> | |
</head> |
// This is an example of how to fetch external data in response to updated props, | |
// If you are using an async mechanism that does not support cancellation (e.g. a Promise). | |
class ExampleComponent extends React.Component { | |
_currentId = null; | |
state = { | |
externalData: null | |
}; |
#!/bin/bash | |
# | |
# Loads / unloads pulseaudio loopback module in order to eg. be redirect | |
# mic input to headphones. | |
# | |
# Usage: mic-loopback [on|off] | |
# | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 [on|off]" |
var form = new FormData; | |
var xhr = new XmlHttpRequest; | |
xhr.open('path/to/api', 'POST', true); | |
xhr.onreadystatechange = function(e) { | |
console.log(e); // Check success/fail | |
} | |
var toSendData = { | |
proName: [ | |
'Product 1', |
void function() {//closure | |
var global = this | |
, _initKeyboardEvent_type = (function( e ) { | |
try { | |
e.initKeyboardEvent( | |
"keyup" // in DOMString typeArg | |
, false // in boolean canBubbleArg | |
, false // in boolean cancelableArg | |
, global // in views::AbstractView viewArg |