PHP set password protection file like htaccess

PHP set password protection file like htaccess

  • 14 July, 2018
  • Renish Khunt
  • PHP
  • 98

Many times we need to set a password on single file like Adminer, PHPINFO etc… We don’t want to share a access to those files with any normal user. So, Basically, we set Password protection using htaccess or web config on those files. ...

Add Zero before US Zipcode/Pincode

Add Zero before US Zipcode/Pincode

  • 14 July, 2018
  • Renish Khunt
  • PHP
  • 44

Many times US zipcode/Pincode starting with zero ( 00501, 00503 ), I am working on a project on that Many users do not enter the full Zipcode, User entering only ( 501, 503 ) without Zero. I am using that Zipcode/Pincode for fetching the User ...

Programmatically Publish tweet on Twitter using PHP

Programmatically Publish tweet on Twitter using PHP

  • 14 July, 2018
  • Renish Khunt
  • PHP
  • 85

The Twitter is the most popular social network. Twitter is the best for marketing of your product or blogs article. Twitter is the social network many times we don’t have time to manually publish tweet on time. So let’s how we can ...

How to create the log file using PHP

How to create the log file using PHP

  • 14 July, 2018
  • Renish Khunt
  • PHP
  • 87

How to create the log file using PHP. Many times we need to create the user log file who visit the website or else create the log file for error logs customer getting on the website. So let’s see the example how we can create the log file. Let ...

How to write the text file using PHP

How to write the text file using PHP

  • 14 July, 2018
  • Renish Khunt
  • PHP
  • 58

How to write the text file using PHP. Many time we need to store some data to text file like we need to stored PHP log to the text file. So, let’s see how we can create the text file using PHP. It’s too easy to create the new text file ...

How to read the text file using PHP

How to read the text file using PHP

  • 14 July, 2018
  • Renish Khunt
  • PHP
  • 53

How to read the text file using PHP. Many times we need to store some data in the text file and read the text file. So, today we are learning how we can read the text file. Let’s see it’s too easy to read the text file using PHP like ...

PHP get latitude and longitude from address using Google geolocation API

PHP get latitude and longitude from address using Google geolocation API

How to get latitude and longitude from address using Google geolocation API PHP. Many times we need to get the latitude and longitude from the address given by the user. Let’s see the example of getting the latitude and longitude from address ...

WordPress – Change Password notification text on E-mail

WordPress – Change Password notification text on E-mail

The WordPress is the most popular and highest used CMS framework. WordPress provide hook functionality. Using hook functionality we can change the WordPress default functionality without touching the WordPress file. Let’s how we can change the ...

PHP – How to remove duplicate values from the multidimensional array?

PHP – How to remove duplicate values from the multidimensional array?

  • 14 July, 2018
  • Renish Khunt
  • PHP
  • 83

Many times we need to remove duplicate value form the multidimensional array. Let’s see how we can remove duplicate value from the multidimensional array in PHP. We removed duplication value using array_map the function on PHP let’s see ...

How to remove duplicate value from the array using PHP?

How to remove duplicate value from the array using PHP?

  • 14 July, 2018
  • Renish Khunt
  • PHP
  • 49

Many time we get the array with contains the duplicate value. how we can find that duplicate value form array and remove it easily. we can remove duplicate value from the array using array_unique() function of PHP. Let’s the example If our ...