From define('WT_TYPE', 2);
to public const WT_TYPE = 2;
search: define\('([\w]*)', ([\w]*)\);
replace: public const $1 = $2;
From this 'return $this->attributes['example'];' to 'return $this->getAttribute('example');'
To backup: | |
mysqldump -u user -p DATABASE > backup.sql | |
To import: | |
mysql -u user -p DATABASE < backup.sql |
INSERT INTO `jos_users` (`id`, `name`, `username`, `email`, `password`, `usertype`, `block`, `sendEmail`, `registerDate`, `lastvisitDate`, `activation`, `params`) VALUES | |
(42, 'Super User', 'username', 'email@dot.com', '81dc9bdb52d04dc20036dbd8313ed055', 'deprecated', 0, 1, '2011-01-13 12:09:00', '2011-01-14 08:43:24', '', ''); | |
INSERT INTO `jos_user_usergroup_map` (`user_id`, `group_id`) VALUES | |
(42, 8); | |
Ein tar.gz-Archiv erstellen: | |
tar cfvz test.tar.gz | |
Die Datei test.tar.gz (mit gzip komprimiert) entpacken | |
tar xfvz test.tar.gz |
cp -r /home/hope/files/* /home/hope/backup |
# .htaccess or Apache vhost | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\. | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] |
$( document ).ready(function() { | |
console.log( "ready!" ); | |
}); |
<?php | |
print __FILE__ . " " . __LINE__." "; | |
var_dump($variable); | |
die; | |
?> |
/"[^"]*"|[^\:]+/g |
echo "alias php73='/opt/plesk/php/7.3/bin/php'" >> ~/.bashrc |