About Sahil Ahlawat

I am a Sr. Web Developer passionate about blogging and teaching. When I am not coding or writing blogs, I prefer traveling (Which I like most). I am also doing a bit or research on Indian Startups now a days.

How to set Correct file permissions for WordPress files and folders

September 13, 2017 12:45 pm Published by Leave your thoughts

Want to know how to Set correct file permissions for WordPress files and folders ? Setting up correct file permissions in WordPress is really necessary to prevent your blog or website from unethical practices and hackers. What is the risk? If your files permissions are weak or vulnerable then there are chance that sooner or later you will loose at-least... View Article


WordPress asking for FTP credentials to install plugins ?

September 13, 2017 12:00 pm Published by Leave your thoughts

Are you facing problem with annoying ftp login screen whenevr you try to upload any plugin or theme to your wordpress dashboard? You have to set correct permissions to your WordPress. Set : 755 for all folders and sub folders. Set : 655 for all the files. After that add the following code in wp-config.php file define('FS_METHOD', 'direct');


PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

September 4, 2017 11:29 am Published by Leave your thoughts

Are you getting PHP Warning: POST Content-Length of 8978294 bytes exceeds ? This is the warning shown if the content length exceeds 8 Mb of size. 8978294 bytes is approximately 8 Mb. In php.ini file, the default values are set to allow content length not more then 8 Mb. There is a variable in php.ini called post_max_size. If you increase... View Article


Can I install/update WordPress plugins or themes without providing FTP access?

September 4, 2017 11:25 am Published by Leave your thoughts

do you want to install/update WordPress plugins or themes without providing FTP access? WordPress only prompt you for FTP connection while trying to install plugins or themes or a WordPress update if it cannot write to /wp-content on its own. But, if your web server has write access to the necessary files, it will handle the updates and installation automatically.... View Article


How to retrieve WordPress root directory path ?

September 4, 2017 11:21 am Published by Leave your thoughts

Do you want to know how to retrieve WordPress root directory path the correct way? You will find many solutions for this question on internet but most of the solutions an extra effort and will decrease you website efficiency maybe by .00001 sec but why even waste that? WordPress has most of the thing built in to help you customise... View Article


How to use WordPress WPDB in standalone PHP script?

September 4, 2017 11:18 am Published by Leave your thoughts

Using WordPress WPDB in standalone PHP script? There may be many cases while developing a website with WordPress, like if you are making any custom page without including wp_header and you want to use WordPress databse queries then the best choice is to use WPDB. If you are usgin WordPress WPDB in standalone PHP script or you want to use... View Article


How to install XAMPP on your computer

September 2, 2017 8:45 am Published by Leave your thoughts

If you want to run Apache, MySQL, PHP, PERL, PEAR framework, you need to learn how to install XAMPP on your computer XAMPP saves you a lot of time and effort and provides the software support for web frameworks like WordPress, Drupal, Moodle, or wikiMedia on any computer. if you want to setup a web development environment then installing XAMPP... View Article