Results: 1580
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
Set table comment
Sets comment for the specified table to make it easy for other developers what the purpose of this table is
ALTER TABLE `the_table_name` comment 'Some text about the table'
by Valeri Tandilashvili
4 years ago
0
MySQL
1
Select table comment
Selects comment of
channels
table which exists in the
geiger
database
SELECT table_comment 
FROM INFORMATION_SCHEMA.TABLES 
WHERE table_schema='geiger' 
    AND table_name='channels'
by Valeri Tandilashvili
4 years ago
0
MySQL
Table comment
1
Set column comment
Sets new comment for
name
column in
channels
table
ALTER TABLE `channels` CHANGE `name` `name` varchar(255) COMMENT 'name of channel'
by Valeri Tandilashvili
4 years ago
0
MySQL
Column comment
1
Select column comment
Selects
is_optional
column comment which exists in
decorations
table using
information_schema
database
SELECT COLUMN_COMMENT 
FROM information_schema.COLUMNS 
WHERE TABLE_SCHEMA = 'geiger' 
    AND TABLE_NAME = 'decorations' 
    AND COLUMN_NAME = 'is_optional'
by Valeri Tandilashvili
4 years ago
0
MySQL
Column comment
1
Select column comment with some other column specifications
Shows details about each column from
decorations
table including column comments
SHOW FULL COLUMNS FROM decorations
by Valeri Tandilashvili
4 years ago
0
MySQL
1
Template literal syntax uses dollar sign
$
followed by curly brackets
${expression}
let name = 'George'
let age = 25

document.write(`My name is ${name} and I am ${age} years old!`)
by Valeri Tandilashvili
4 years ago
0
JavaScript
Template literals
The 10 Days of JavaScript
1
$arr = ['key0' => 'val0','key1' => 'val1', 'key2' => 'val2', 'key3' => 'val3'];
$removeKeys = ['key1', 'key2', 'key3'];
$arr = array_diff_key($arr, array_flip($removeKeys));
by გიორგი უზნაძე
4 years ago
0
PHP
Arrays
1
http / https
If the URL starts with
https
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");
by Valeri Tandilashvili
4 years ago
0
PHP
1
Copy all files and folders to another directory
Copies all files and folders from
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 folder
by Valeri Tandilashvili
4 years ago
0
Linux
1
call file_get_content() function with headers
First we create an array with the headers
$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);
by Valeri Tandilashvili
3 years ago
0
PHP
functions
1
Results: 1580