Below is the simple PHP script to connect database using mysqli Hope this is helpful.
Tag: PHP
Everything related to PHP.
File Upload in PHP
Hello All, I had to make a custom form for file uploading in PHP, I am explaining here the way to upload a file.
MS SQL with PHP
Below is the simple PHP (>= 7.0.0) script to connect with the MS SQL database Hope this is helpful.
Coupon Codes Generator
I am describing here a way to generate coupon codes with custom configurable parameters. Hope this is helpful.
Random String Generator
Below is a simple script to generate random string/password using PHP. You can customize the same by adding special characters. Hope this is helpful.
Pyramid program in PHP
Hello All, This is kind of fun stuff. I was bored and decided to build a Pyramid Program in PHP. Above code on execution will output Enjoy 🙂
Encode Decode image using PHP
Hello, I am describing here the way to 1) Encode image to generate a string 2) Decode image from a given encoded string 1) Here you need to specifiy the path of your image in variable ‘$image_path’ 2) Here I am using the string produced from the executing the code seen above, it can be […]
Number of days between dates
One day I was just thinking about days spent by me on this earth, so I decided to make a script for the same. I am writing here the code, just make a new empty php file and copy and paste the script and execute it to find out the days between two dates. Hope […]
Delete Directory in PHP
This post will be helpful to those who work with directories and files. I am writing here the PHP code for deleting the directory.
Passing by Reference
I am listing here a simple example to explain ‘passing by reference’ in PHP. I hope it is helpful. For further information kindly visit Passing by Reference