Tag Archives: PHP

how to migrate magento from one server to another server ?

Follow the below given instructions

1) Back up the files in the server

2) Export the Databse

3) Move the files to the new server

4) Import the databse to the new server

5) Edit the database details . please update the file “app/etc/local.xml”, with the latest Database details

6) Modify the table core_config_data (Replace old server name with new one).

7) Delete the files in “var/session” and “/var/cache”

WordPress widget to display content on specified pages

Follow the steps given below to use this widget
  • Paste code on a file and save it inside folder
  • Place this folder in /wp-content/plugins/
  • Activate it using the menu plugins
  • Drag the widget to the sidebar
  • Fill the form and save the values .
  • The content you entered will be displayed on given pages(based on the page value)
  • If no value is entered for the field page url , it will show up on all pages


bloginfo function and its parameters

name = Testpilot .
description = Just another WordPress blog .
admin_email = admin@example .
url = http://example/home .
wpurl = http://example/home/wp .
stylesheet_directory = http://example/home/wp/wp-content/themes/child-theme .
stylesheet_url = http://example/home/wp/wp-content/themes/child-theme/style.css .
template_directory = http://example/home/wp/wp-content/themes/parent-theme .
template_url = http://example/home/wp/wp-content/themes/parent-theme .
atom_url = http://example/home/feed/atom .
rss2_url = http://example/home/feed .
rss_url = http://example/home/feed/rss .
pingback_url = http://example/home/wp/xmlrpc.php .
rdf_url = http://example/home/feed/rdf .
comments_atom_url = http://example/home/comments/feed/atom .
comments_rss2_url = http://example/home/comments/feed .
charset = UTF-8 .
html_type = text/html .
language = en-US .
text_direction = ltr .
version = 2.9.2 .