×
Clear all filters including search bar
Valeri Tandilashvili's Personal Professional Blog
$opts = [
"http" => [
"method" => "GET",
"header" =>
"Channel-Name: ".CHANNEL."\r\n" .
"Authorization: ".AUTHORIZATION."\r\n"
]
];
// Then we create a stream
$context = stream_context_create($opts);
Then we pass the $content
to file_get_contents()
function as the third
parameter$result = file_get_contents($url, false, $context);
source_dir
to destination_dir
cp -r /home/user/source_dir/. /var/www/html/destination_dir/
-r
- copies recursively (with subfolders and files)
.
- copies all files and folders inside the folderhttps
it will make a request on 443
$ch = curl_init("https://xdatavpn.example.com/Bank");
If it starts with http
the request will use 80
port$ch = curl_init("http://xdatavpn.example.com/Bank");
decorations
table including column commentsSHOW FULL COLUMNS FROM decorations
is_optional
column comment which exists in decorations
table using information_schema
databaseSELECT COLUMN_COMMENT
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = 'geiger'
AND TABLE_NAME = 'decorations'
AND COLUMN_NAME = 'is_optional'
name
column in channels
tableALTER TABLE `channels` CHANGE `name` `name` varchar(255) COMMENT 'name of channel'
channels
table which exists in the geiger
databaseSELECT table_comment
FROM INFORMATION_SCHEMA.TABLES
WHERE table_schema='geiger'
AND table_name='channels'
ALTER TABLE `the_table_name` comment 'Some text about the table'
driveCar()
function using call()
function, this
will refer to the object that will be passed.
In this case: john
objectlet john = {
firstName: 'John',
lastName: 'Doe'
}
function driveCar() {
document.write(this.firstName + ' ' + this.lastName + ' is driving a car<br/>')
}
driveCar.call(john)
filter
filters the array members based on the getNames
function conditionlet myFavoritePlanets = [
{name: 'Earth', radius: 6371},
{name: 'Jupiter', radius: 69911},
{name: 'Neptune', radius: 24622, moons: ['Triton', 'Thalassa', 'Nereid', 'Proteus', 'Hippocamp', 'Naiad']}
]
let biggerPlanetsNames = myFavoritePlanets.filter(getNames);
function getNames(planet) {
return planet.radius > 20000
}
console.log(biggerPlanetsNames );