Posts

Showing posts from April, 2018

Bike/Scooter Transport via Indian Railway Procedure

Image
Documents Required 1. Government issued ID Proof. 2. Bike RC. It should bear the same name as the ID proof. 3. Copy of vehicle insurance. Please remove petrol in tank. Below is the basic information of transport vehicle via Indian railway, more you can go to your nearest Railway station. 1. Parcel booking can be done only during the office hours (10 AM to 5 PM) at the railway station parcel office. 2. Go to the parcel office with your bike. They will ask you to produce your ID proof, bike's RC and insurance copy. 3. There will be an inspection of the fuel tank. Make sure the fuel tank is empty. If there is petrol in the tank, then you will be forced to drain them off. 4. You can find agents at the office who will do the packing. They are not officials of the railways and there is no fixed packaging charge. You may need to bargain with them to strike a reasonable deal. Please ensure that the bike is packed securely. I gave 200 INR when I sent my Activa from Rajkot t...

Wordpress Upwork test part three

Upwork WordPress A minimal Theme consist of what two files. 1) style.css and index.php 2) style.css and funcion.php 3)_style.css and template.php 4) template.php and index.php 5) theme.css and homepage.php Which of the following is true about wp_mail() function? 1) A true return value does not automatically mean that the user received the email successfully 2) For this function to work, the setting SMTP and smtp_port(default: 25) need to be set in your php.ini file 3) The default content type allow using html 4) The function can handle only one email as $to parameter WordPress uses a__ in conjunction with the mod_rewrite Apache module to produce permalinks. 1) config file 2)  an .htaccess file 3)  an XFN file 4) an XML file 5)none of these

wordpress upwork test two

Upwork Wordpress What are wordPress hooks? 1) Group of plugins which control WordPress behavior 2) Setting option available to WordPress administrators 3) Security function that run inside WordPress 4) Ways to change the default behavior of WordPress Which constant is NOT recognized in wp-config.php? 1) WP_SITEURL 2) WP_CONTENT_DIR 3) WP_CONTENT_URL 4) WP_HOME_URL In a manual installation, wp-config-sample.php should be removed to  1) wp-config-man.php 2) wp-config.php 3) wp-loop.php 4) wp-main.php 5) wp-statup.php How do you enable the debug mode in WordPress? 1) It is enabled by default 2) By going to dashboard -> setting ->General and then enable debug mode 3) By setting WP_DEBAUG as true in wp-config.php

Wordpress upwork test one

Upwork Wordpress Wordpress.com is more flexible then wordpress.org  1) True  2) False What are WordPress features? 1) System Management 2)  Clean URLs 3)  Spam Protection 4) Recovery WordPress does not support search engine-friendly URLs. 1) True 2) False Which of the following is a default user role in wordPress? 1) Blogger 2) Author 3) Subscriber 4) Contributor What is a permalink? 1) The complete URL of your WordPress site. 2) A popular wordPress plugin. 3) Permalinks are the permanent URL to your individual weblog posts, as well as category and other lists of weblog posting. 4) The numeric IP address of your WordPress site. What is WordPress multisite? 1) A popular WP theme that supports multiple sites. 2) A WP plugin that supports multiple sites. 3) Special version of WordPress that can support many sites and is not free 4) WP configuration features that support multiple sites.

Upgrade php version in xampp

How to update php xampp version XAMPP is the best php development environment that you build any web applications in your personal desktop or laptop. Here i have describe how to update xampp version in windows , if any other step you have found then please suggest. Before update your xampp you must take backup of your web projects and also phpmyadmin database. After backup of your projects and database we will start upgrade xampp.  1) Go to control panel - then Programs and Features  2) Scroll down and you can see here Xampp  3) Right click on Xampp and uninstall xampp  4) Download New version of Xampp  5) Before install new version xampp please check xampp folder if exits then delete  6) Now install new xampp  in your computer.  7) Now again put your backup of web projects in htdocs folder and also import database. That'it, Now you can enjoy with you latest php version.

Image compress using php

Compress images using php function compress($source, $destination, $quality) {      $info = getimagesize($source);     if ($info[‘mime’] == ‘image/jpeg’){          $image = imagecreatefromjpeg($source);     }elseif($info[‘mime’] == ‘image/gif’){         $image = imagecreatefromgif($source);     }elseif($info[‘mime’] == ‘image/png’){        $image = imagecreatefrompng($source);        imagejpeg($image, $destination, $quality);        return $destination;     } } $source_image = ‘original_folder/original_image.jpg’; $compress_image = ‘compress_folder/compress_image.jpg’; $compressimage = $this->compress($source_image, $compress_image, 90); Parameter  $source(Original image)  $destination(Actual compress image where)  $quality(Quality whatever you set)