Convert php array to javascript array
Updated: 28th March 2023Tags: php javascript
UPDATE my_table SET column1 = REPLACE(column1, 'search string', 'replacement');
echo date(DATE_RFC3339);
//convert from other format
echo date(DATE_RFC3339, strtotime('2023-01-01 05:55:55'));
If you have toggle dark theme, you can make scrollbars and inputs also dark.
For example, you have dark theme with following markup
<body data-theme="dark">
Add this css to make scrollbars and inputs dark
[data-theme=dark] {color-scheme: dark;}
ALTER TABLE my_table_name AUTO_INCREMENT = 777;
For example, we have our folder in /etc/nginx/sites-available/example.com
And to make virtual symlink folder here /etc/nginx/sites-enabled we run this
sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/
Three stages of using programming framework:
fascination with features and quick problem-solving
squeezing the maximum out of all configurations
difficulty in expanding the framework to new requirements
In result, throwing framework away and creating thing by yourself.
ls -Slh
-S will sort files by size
-l long listing
-h will make the output human-readable
-r will reverse the output
bash
mysql -e "show variables like 'datadir'"
mysql
show variables like 'datadir'