Posts

Showing posts from April, 2015

Remote File Download and upload directly to Server using PHP

Image
Sometime we require to Download some files from the remote location and upload it to our server, which is a time taking process. Here We are describing how to download and upload the file directly to our server using PHP. For this  to work , we will take the http location of the files and using the curl method , we will copy it to our server, so our downloading and uploading time will be saved, also it will be more fast , due to its directly copy the file from one remote server to another server. On this code , we have created a form and its take only HTTP url of the file. Here is the PHP code to do this: <html> <head> </head> <body> <?php if(isset($_POST['zip_file'])) { if(!is_dir("folder")) { mkdir("folder", 0755); } $url = $_POST['zip_file']; $newname = explode('/',$_POST['zip_file']);

How to Import the Demo Content

Important:   You have purchased a WordPress theme, and not the example content as seen in the theme demo. You are more than welcome to import the example content into your site to help you get going, but the images can not be used on a live site, nor redistributed. What you need to do is follow the instructions that are taken from the  Importing Content  page from the WordPress website. To import from a WordPress export file into your blog follow these steps. How to Use the XML File to Import the Demo Site's Content Log into your site as an administrator. Make sure you activated your new theme before proceeding. Go to Tools → Import Choose "WordPress" from the list. Upload the demo content .xml using the form provided on that page. You will be asked to map the authors in this export file to users on the blog. For each author, you may choose to map to an existing user on the blog or to create a new user. You will then have the choice to import attachments, so click on the