connect to linux by name instead of ip address
Go to ~/.ssh/config
Host dev HostName XXX.XX.XX.XXXX IdentityFile ~/.ssh/id_rsa User xxxxxxxxxxxx AddKeysToAgent yes
PHP, Symfony, Mysql, jQuery, Ajax, Web development, Payment Gateways, CCavenue, Interview Questions, Web Service Integrations
connect to linux by name instead of ip address
Go to ~/.ssh/config
Host dev HostName XXX.XX.XX.XXXX IdentityFile ~/.ssh/id_rsa User xxxxxxxxxxxx AddKeysToAgent yes
UPDATE wp_posts SET post_content = REPLACE ( post_content, 'text to find here', 'text to replace here');
Add this code at the bottom of the .htaccess file to turn off caching. Delete the code to turn caching on again.
# DISABLE CACHING <IfModule mod_headers.c> Header set Cache-Control "no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires 0 </IfModule> <FilesMatch "\.(css|flv|gif|htm|html|ico|jpe|jpeg|jpg|js|mp3|mp4|png|pdf|php|txt)$"> <IfModule mod_expires.c> ExpiresActive Off </IfModule> <IfModule mod_headers.c> FileETag None Header unset ETag Header unset Pragma Header unset Cache-Control Header unset Last-Modified Header set Pragma "no-cache" Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT" </IfModule> </FilesMatch>
Last Query in Laravel
DB::enableQueryLog();
$product = Product::get();
$query = DB::getQueryLog();
dd($query);
db.collection.remove({}) | Delete a single document or all documents that match a specified filter. |
db.collection.deleteOne({}) | Delete at most a single document that match a specified filter even though multiple documents may match the specified filter. |
db.collection.deleteMany({}) | Delete all documents that match a specified filter. |