Welcome to PHP programming section of C# Corner. In this section, you will find various PHP Programming related source code samples, articles, tutorials, and tips.


  • Pratiksha R

    Exploring Kraken - A Distributed And Async PHP Framework

    PHP frameworks are noted for their developer friendly feature and robust nature. PHP itself is a widely used programming language, so the different frameworks in themselves are hugely admired and w...
    Pratiksha R Aug 16, 2018
  • Vinod  Kumar

    XML Parser In PHP

    In this article, I explain about the XML parser in PHP. The tree-based parser transforms an XML documents to tree structure. The event-based parser views XML documents as a series of events.
    Vinod Kumar Aug 13, 2018
  • Vinod  Kumar

    Var_dump Function In PHP

    In this article, I will explain the var_dump variable handling function in PHP. The var_dump() function dumps information about a variable.
    Vinod Kumar Aug 13, 2018
  • Vinod  Kumar

    Strategy Pattern In PHP

    This article explains about Strategy Pattern in PHP. Strategy Patterns have a common pattern that helps us to create decisions on completely different cases,
    Vinod Kumar Aug 13, 2018
  • Vinod  Kumar

    MySQL Fetch Array Function in PHP

    In this article I explain the MySQL_Fetch_Array() function in PHP.
    Vinod Kumar Aug 13, 2018
  • Vijayakumar Mani

    Generate A Random Password And OTPs

    Passwords are important for security reason. Now we will create simple passwords that that are difficult to hack. You can do this by using special characters in passwords.
    Vijayakumar Mani Jul 18, 2018
  • Joseph Thomas

    Codeigniter Login With AJAX

    This blog shows how to create a simple login form in Codeigniter using AJAX.
    Joseph Thomas May 01, 2018
  • mahalxmi iyer

    How To Connect A Signup Form With Database

    In this article, we are going to learn how to connect MySQL database with HTML form.
    mahalxmi iyer Apr 25, 2018
  • Suresh Kamrushi

    Sending Email From Localhost

    Now the developer can test email functionality before deploying to the production or staging server in his local environment itself. Just we need to change few files in XAMPP to make it work.
    Suresh Kamrushi Mar 08, 2018
  • Kishan Kumar

    Two Important Questions In PHP

    PHP is an open source server side scripting language commonly used for web applications.
    Kishan Kumar Feb 21, 2018
  • Amit Kumar Singh

    How To Take Screenshot Using jQuery And PHP

    Hello all, today in this article we will learn how to take screenshots using jquery and php. So, basically we will create a webpage and in the webpage we create a button which will take screenshot ...
    Amit Kumar Singh Jan 10, 2018
  • Joseph Thomas

    Setting Up Google App Engine And Uploading An Image To Google Cloud Using PHP

    In this article, you’ll learn how to deploy a PHP project to Google App Engine and how to upload an image to Google Cloud Bucket.
    Joseph Thomas Jan 09, 2018
  • Kantesh Sinha

    Create Event Calender In Laravel

    In this tutorial we will learn the implementation of Full Calender (Javascript Event Calender) in Laravel.If we want to show our events,tasks & schedules along with the start time and end time ...
    Kantesh Sinha Dec 28, 2017
  • Bhuvanesh Mohankumar

    How To Control SQL Injection In PHP

    This is an interview question, when a person showcases himself as the FULL Stack developer, it is very important that the developer should have base knowledge on the security aspects of the applica...
  • Nikunj Satasiya

    CRUD Operation On A User Profile In PHP/ MySQL

    In this article, I’ll show you how to perform the CRUD operation on a user profile in PHP/MySQL.
    Nikunj Satasiya Nov 14, 2017
  • Bhavya Gaur

    Building WordPress Theme From Scratch - Part One

    Hi all, I am writing a series to create a theme in WordPress with all functionalities like show blog post and add widgets on the front page. I will create this series for absolute beginners who wan...
    Bhavya Gaur Oct 30, 2017
  • Ehtesham  Mehmood

    Script For Login, Logout And View Using PHP, MySQL And Bootstrap

    This article shows how to make a login, logout and view script using PHP, MySQL and Twitter Bootstrap.
    Ehtesham Mehmood Oct 29, 2017
  • Vineet Kumar Saini

    Insert Value From CheckBox In Database (MySQL) In PHP

    In this article you will see how to insert a value from a checkbox in the MySQL database.
    Vineet Kumar Saini Aug 04, 2017
  • Vinod  Kumar

    Create Favicon in PHP

    In this article I will explain Favicons in PHP. In this article I will use a small and powerful script for creating Dynamic Favicons and use the PHP GD library to manipulate the Favicon image and ...
    Vinod Kumar Jun 29, 2017
  • Vinod  Kumar

    Contact Us Form in PHP

    In this article I show how to create a Contact us form in PHP.
    Vinod Kumar Jun 29, 2017
  • Vinod  Kumar

    Class and Object Function in PHP

    In this article I will discuss the get_declare_classes() and get_class_method() functions in PHP.
    Vinod Kumar Jun 29, 2017
  • Vinod  Kumar

    Calculate How Many Days in A Month Using PHP

    In this article I explain the cal_days_in_month() function in PHP. cal_days_in_month() function returns the number of the days in a month for the given year and calendar.
    Vinod Kumar Jun 29, 2017
  • Sharad Gupta

    Polymorphism in PHP

    In this article I describe polymorphism in PHP. Polymorphism describes a pattern in Object Oriented Programming in which a class has varying functionality while sharing a common interfaces.
    Sharad Gupta Jun 28, 2017
  • Sharad Gupta

    Join Tables With the Using Keyword in PHP

    In this article I explain how to join with the using keyword in PHP. Use the Using keyword instead of the On keyword when you want to join more than one table and the tables have the same column na...
    Sharad Gupta Jun 28, 2017
  • Sharad Gupta

    Group By Clause in PHP

    In this article I explain how to use a MySQL group by clause in PHP. The group clause is used to group the rows of a result set based on one or more column expressions. Group by clause determines h...
    Sharad Gupta Jun 28, 2017
  • View More