Code snippet to update the sns subscription filter policy. Before updating the filter policy, update the filter policy scope also. By default the FilterPolicyScope is … Create and Update SNS Subscription Filter Policy using Python Boto3Read more
Turn on errors in PHP
In php file: <?php ini_set(‘display_errors’, true); ?> In Htaccess file: php_flag display_errors 1
Php coding standards
Here you can see the mostly used PHP standards. http://pear.php.net/manual/en/standards.php https://www.php-fig.org/psr/psr-2/
WordPress plugin to save contact information to database
This plugin will help you to see the contact information wp-admin. At the same time it will send an email to the mail set in … WordPress plugin to save contact information to databaseRead more
Sample REST webservice file in php
Create simple PHP file. For Example: service.php. Steps: 1) Assign your data in an array and encode it with json. 2) Add the conditions for … Sample REST webservice file in phpRead more
Create a template for page in wordpress
Steps to create new template for WordPress page. This will help you to customize your template for single page. 1) Create new php file, For … Create a template for page in wordpressRead more
Change WordPress Theme Name
Steps to update the wordpress theme name 1) Go to wp-content/themes/{your_active_name} 2) Open style.css 3) Change the “Theme Name:” in comments.
Facebook login button not displaying in IE
We have to use facebook html tags at the document starting, we can see the button if we use the facebook html tag (those tags … Facebook login button not displaying in IERead more
Php session is not storing
There are different reasons for PHP session not working. If the session is using file.(By Default it is File Only) 1) If you are using … Php session is not storingRead more
Search keywords from static files
<?php $content = file_get_contents(‘filename.html’); //Example file_get_contents(‘filename.hml’); // Here $key is the search word //Example $key = “php”; if(preg_match(“/”.$key.”/”, $content, $matches)) { echo “found”; } else … Search keywords from static filesRead more