Migrate a site to another server
wget -rc --level=20 ftp://username:password@olddomain.net/public_html
12387 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Sasha http://nothing-less.net
wget -rc --level=20 ftp://username:password@olddomain.net/public_html
mysqldump -h oldhost -u oldusername -poldpassword olddbname | mysql -h newhost -u newusername -pnewpassword newdbname
if ($SESS->userdata(’member_id’) != 1) { return $OUT->show_user_error(’general’, array($LANG->line(’mbr_you_are_registered’))); }
RewriteEngine On RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC] RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
$totalcode="10"; for($i=$totalcode; $i>0; $i--){ echo"$i"; }
for ($i = 1; $i <= 10; $i++) { echo $i; }
$raw = 1; $formatted = sprintf("%02d", $raw); echo $formatted; //outputs 01
/[-a-zA-Z0-9]+?/[-a-zA-Z]{3}
{related_entries id="fieldid"} <img src="{thumb_url}" width="{thumb_width}" height="{thumb_height}" alt="{title}" class="thumb" /> {/related_entries}
<select name="field_id_13">{exp:query sql="SELECT field_list_items FROM exp_weblog_fields WHERE field_id = '13' "} <? $items ="{field_list_items}"; $items = explode("\n", $items); $howmany = count($items); $i = 0; do { $item_id = $items[$i]; ?> <option value="<?=$item_id?>"><?=$item_id?></option> <? $i++; } while ($i < $howmany); ?> {/exp:query}</select>