Sometimes we need to redirect old links to new pages, it`s very easy.
Redirect 301 /oldpage.php http://newlink/newpages.php
Sometimes we need to redirect old links to new pages, it`s very easy.
Redirect 301 /oldpage.php http://newlink/newpages.php
rsync -rPtz –progress -e ssh /local_backup_path/ remote_host:/remote_backup_path/
The -e ssh tells rsync to use a ssh client instead of rsh. The -z option compresses the file. -t preserves time attributes and the -P option resumes incomplete file transfers.
If you run this command from the command line you can use the –progress option, that will show you a progress bar during transfer. Very useful with large files.
<?php echo implode(‘ ‘, array_slice(explode(‘ ‘, strip_tags($introtext) ), 0, 30));?> …
$matches = array();
preg_match_all(‘/<img.+src=[\'“]([^\'“]+)[\'“].*\/>/i’ , $article->text , $matches);if($matches[0][0]){
echo $matches[0][0];
}
To create modal popup for user login for example