Posts

Increase Post Limit on Wordpress

Just open the wp-config.php and Add the Following variable at start. define('WP_MEMORY_LIMIT', '128M'); *************

Page Unload Show Notification to user

<script>       jQuery("body").append("<div style='background-color: #f5f5f5; position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 99999;display:none;opacity: 0.8;' id='pageloader'><img src='http://217.37.162.106/sme/logo/ajax-loader.gif' style='top: 50%; left: 50%; max-width: 30px; position: fixed;' /></div>"); jQuery(window).on('beforeunload', function(){ jQuery("#pageloader").css("display","block"); }); </script>

Help Content for Registration form using CSS

Image
Here , I am describing a help content for a registration fields. Some Time we have to make a registration form, where we want to show some information about the Input fields. Here, I am making a tooltip using CSS and HTML. Company Name

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

Replace a specific keyword on all files name in a folder

Image
Suppose, we have to change some keyword within a folder for all files name. For that I have written a small program, Its take a folder name and take all the files's name of the folder in the array, and we replace the specific keyword with the word, we want there.  Follow the program for the code, you just need to change the first three variable of the code. See Live Example here <?php $dir = 'rename4folder';   // folder path within this file, If are nor sure about the location, just use the full Physical URL of the folder $replacekeyword  = 'replace';  // name to be replaced $replacewith  = 'with';  // name with this the name replacerd $files = scandir($dir); if(is_array($files)) { foreach($files as $single) { $newsingle = str_replace($replacekeyword,$ replacewith,$single); if(($single!=".")&&($single!=" .."))

India vs South Africa, 13th Match Pool B - scorecard

Melbourne Cricket Ground, Melbourne (D/N), ICC Cricket World Cup 2015 India won by 130 runs India Innings -  307/7 (50 overs) Batting Out Desc R B 4s 6s SR Rohit Sharma run out (de Villiers) 0 6 0 0 0.0 Shikhar Dhawan c Amla b Parnell 137 146 16 2 93.8 Virat Kohli c du Plessis b Tahir 46 60 3 0 76.7 Ajinkya Rahane lbw b Steyn 79 60 7 3 131.7 Suresh Raina c (sub)R Rossouw b M Morkel 6 5 1 0 120.0 MS Dhoni (c & wk) c de Kock b M Morkel 18 11 3 0 163.6 Ravindra Jadeja run out (de Villiers) 2 4 0 0 50.0 Ravichandran Ashwin not out 5 5 0 0 100.0 Mohammed Shami not out 4 5 1 0 80.0 Extras 10 (b - 0 w - 6, nb - 2, lb - 2) Total 307 (50 Overs, 7 Wickets) Did not bat: Umesh Yadav, Mohit Sharma Bowler O M R W Nb Wd ER Dale Steyn 10 1 55 1 0 0 5.5 Vernon Philander 4 1 19 0 0 0 4.8 Jean-Paul Duminy 7 0 39 0 0 1 5.6 Morne Morkel 10 0 59 2 0 0 5.9 Imran Tahir 10 0 48 1 0 1 4.8 Wayne Parnell 9 0 85 1 2 4 9.4 FOW Batsman Score Over 1 Rohit Sharma