Image for post
Image for post

Hello dear readers! welcome to another section of our tutorial on PHP. In this tutorial guide, we will be comparing core PHP and the PHP Framework to discover which is better for development.

Let us assume Core PHP means solving Mathematical problem by making use of paper and pen while framework simply means solving a Mathematical problem by using a calculator.

Core PHP - In context to solving Mathematical problem

Only some few students can attain results using paper and pen, so as to PHP. Only few developers can write codes in an easy and reliable format.

PHP Framework — In context to solving Mathematical problem

Every body can achieve the result by using the calculator as same as PHP. Even beginners can write the code in easy and reliable format. …


Image for post
Image for post

Hello folks! welcome to another section of our tutorial on PHP. In this tutorial guide, we are going to be studying about Design Patterns in PHP.

Microsoft design pattern theory is stated — “The document introduces patterns and presents them in a repository, or a catalogue, which is organized to help you locate the right combination of patterns that solves your problem”.

Examples of Design Patterns

Singleton

A Class have only one instance, it provides a global access point to it. Following code will explain the Singleton concept -

<?php
class Singleton {
public static function getInstance() {
static $instance = null;

if (null === $instance) {
$instance = new static();
}
return $instance;
}
protected function __construct() {
}

private function __clone() {
}

private function __wakeup() {
}
}

class SingletonChild extends Singleton {
}

$obj = Singleton::getInstance();
var_dump($obj === Singleton::getInstance());

$anotherObj = SingletonChild::getInstance();
var_dump($anotherObj === Singleton::getInstance());
var_dump($anotherObj === SingletonChild::getInstance());
?> …

Image for post
Image for post

Hello dear readers! welcome back to another edition of my tutorial on PHP. In this tutorial guide, we will be studying about the PHP Form Handling.

What is a Dynamic Website?

A dynamic website can be defined as a website that provides the functionalities that can be used to store, update, retrieve, and delete the data in a database.

What is a Form?

A form is simply a document that contains blank fields, that the user can fill the data or user can select the data. Generally the data will be stored in the database.

Example

The below example shows how a form can be used to perform some specific actions by using the post method…


Image for post
Image for post

Hello, dear readers! welcome back to another section of my tutorial on PHP. In this tutorial guide, we will be studying about how to send Emails using PHP.

PHP must be configured correctly in the php.ini file with the details of how your computer system sends email messages. Open the PHP.ini file available in /etc/ directory and then find the section headed [mail function].

The window users should make sure two directives are supplied. The first is known as SMTP that define your mail server address. The second directive is known as sendmail_from which defines your own email address.

The configuration for Windows OS should look something like this…


Image for post
Image for post

Hello dear readers! welcome back to another section of my tutorial on PHP. In this tutorial guide, we will be discussing about the PHP Variable and Data Types.

The paramount way of storing information in the middle of a PHP program is by using a variable.

The following below are the most important things that you need to know on PHP.

  • All variables in PHP are denoted with a leading dollar sign ($).
  • The value of a variable is the value of its most recent assignment.
  • Variables are assigned with the “=” operator, with the variable on the left-hand side and the expression to be evaluated on the right side. …

Image for post
Image for post

Hello dear readers! welcome back to another section of my tutorial on PHP. In this tutorial guide, we will be discussing about how to configure PHP in Apache server.

Apache makes use of httpd.conf file for global settings, and the .htaccess file for pre-directory access settings. Older versions of Apache split up the httpd.conf into three different files (access.conf, httpd.conf, and the srm.conf), and some developers still prefers this arrangement.

Apache server has a very powerful, but slightly complex configuration system of its own. Learn more about it from the official Apache website.

This tutorial describe settings in httpd.conf that has a direct impact on PHP and cannot be set elsewhere. If your installation is standard, then httpd.conf …


Image for post
Image for post

Hello dear readers! welcome back to another section of my tutorial on PHP. In this tutorial guide, we will be discussing about how to install PHP on Mac OS X System.

Mac users have the choice of either a binary or a source Installation. As a matter of fact, your Mac OS X might have come with the Apache and PHP already preinstalled. This is likely to be quite an old build, and it probably lacks so many of the common extensions.

However, if all you desire is a quick Apache, PHP, and MySQL setup on your laptop, this is certainly the easiest way to do that. All you need to do is to edit your Apache configuration file and turn on the Web server. …


Image for post
Image for post

Hello dear readers! welcome back to another section of my tutorial on Python. In this tutorial post, we will be studying about Assertions in Python.

What is an Assertion?

An assertion is a sanity-check that you can turn on or turn off when you are done with your program testing.

The easiest way to think of an assertion is to link it to a raise-if statement (or to be more accurate, a raise-if-not statement). An expression is tested and if the result comes up false, then an exception is raised.

Assertions in Python are carried out by the assert statement, the newest keyword to Python, it was introduced in version 1.5 …


Image for post
Image for post

Hello dear readers! Welcome back to another section of my tutorial on Python. In this tutorial guide, we are going to be studying about the Os walk() method.

The Python os walk() method generates the file names in the directory tree by walking the tree either top-bottom or bottom-top.


Image for post
Image for post

Hello dear readers! Welcome back to another section of my tutorial on Python. In this tutorial guide, we are going to be studying about the Os stat() method.

The Python os stat() method performs a stat system call on the given path.

Below is the list of members of stat structure -

  • st_dev — ID of the device containing file.
  • st_ino — inode number
  • st_mode — protection
  • st_nlink — the number of hard links
  • st_uid — user ID of owner
  • st_gid — group ID of owner
  • st_size — total size, in bytes
  • st_atime — the time of last access
  • st_mtime — the time of last…

About

Web Design Tutorialz

A tutorial blog that provides tutorials on Web Design, Programming, Java Technologies, Mobile App Development, Database, Machine Learning, etc.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store