uajax - universal ajax forms
Updated: 28th December 2022Tags: javascript
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'
Memcache. It allows you to store both strings and php arrays and have fun. If it is not enough, try redis.
Edit file ~/.bash_aliases
nano ~/.bash_aliases
For example, I make alias a
. So when I press a
it will produce php artisan tinker
Here file ~/.bash_aliases
alias a='php artisan tinker'
Load aliases immediately
source ~/.bash_aliases
Php isset will tell false if variable is null.
//false
isset($a[1]);
$a[1] = null;
//false
isset($a[1]);
That’s why you should use array_key_exists if you need to check if it is set or not.
//false
array_key_exists($a[1]);
$a[1] = null;
//true
array_key_exists($a[1]);