Automatically Installing Wordpress Part 1


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. import urllib
  2.  
  3. # make sure you set WEBLOG_TITLE and ADMIN_EMAIL
  4. params = urllib.urlencode({'weblog_title' : WEBLOG_TITLE, 'admin_email' : ADMIN_EMAIL})
  5.  
  6. # install wordpress
  7. f = urllib.urlopen('http://MY_DOMAIN/wp-admin/install.php?step=2', params)
  8. data = f.read()
  9. f.close()

URL: http://blackcodeseo.com/automatically-installing-wordpress/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.