Php – Page 2 – POFTUT

Category: Php

0

How To Use PHP file() and readfile() Functions To Read PHP File?

PHP programming language provides file() and readfile() functions in order to read a file. In this tutorial, we will learn how to use file() and readfile() functions in order to read text or similar ASCII files like PHP files. file() Function and Syntax file() function has a very basic syntax where some of the parameters are optional.

PATH is used to specify the path and file name we want...

0

Regex Space, Whitespace, Tab Usage Examples

When dealing with the text files such as log files, user list, server list etc we can use regex for formally structured files. Space, white-space, and tab are popular separating elements used in regex or CSV files. In this tutorial, we will examine how to use regex with space, whitespace, tab or no space, no whitespace and no tab. Example Text We will use the following text as an example.

...

0

Foreach Usage In PHP, JavaScript, Java, C#, Python Programming Languages with Examples

Loops are an important part of the programming languages. For and While loops are used for decades in different programming languages. Foreach provides similar functionality with a more elegant way by iterating over the given list. In this tutorial, we will examine foreach in different programming languages like PHP, JavaScript, Java, C# and Python. PHP Foreach PHP provides foreach in order to iterate over given arrays. There is two main usage...

0

Exec System Call For C and PHP Tutorial with Examples

exec() function is a function used to create and run processes in operating systems Linux, Windows and MacOS. exec() function has different useful variants like execve() , execl(), execlp() , execle() etc. General Syntax There are a lot of different exec() function variants.  Here are some of them syntax.

Example C Code During the exec()  function example we will use following C code for examples.

Compiling C Code...

1

HTTP Status 503 Error Code and How To Fix It?

Hypertext Transfer Protocol or HTTP  503 Service Unavaiable server error response code indicates that the server is not ready to handle the request. Also HTTPS protocol will use the same code for the same reason. In this tutorial we will examine the 503 error code causes, client and server side solutions. 503 Expressions HTTP 503 code can be expressed a little bit differently for different web servers. There are different...

0

HTTP 403 Forbidden Status Code and Fix Error

HTTP protocol uses HTTP status codes in order to provide information about the requests. There are different type of status codes like 100, 200, 300, 400 etc. All of them have different meaning and subcodes like 403. In this tutorial we will examine the 403 Forbidden Error Code . Example Response Here is some example response about HTTP 403 Forbidden. This code is compatible with all major browsers.

AND other...

How To Redirect HTML Web Page Into Another URL? 1

How To Redirect HTML Web Page Into Another URL?

HTML is a language used to build web pages. Web pages have a dynamic nature where it can change during time. One of the most popular change cases is redirecting given web page to another web page. This is simply called we page redirect. In this tutorial, we will examine the redirect process in different ways, languages, and technologies. HTML Redirect The most popular and basic for web page redirect...

4

Globally Unique Identifier (GUID) Generator For Linux, Windows, Java, PHP, C#, Javascript, Python

Globally Unique Identifier (GUID) is pseudo random string which consist of 32 letters, numbers (0-9) and 4 hyphens to separate letters. These letters are randomly generated. In probability theory this value is unique and can be used as secret and session cookie etc. Example GUID Following line provides a GUID. as we can see there is 4 dashes which selaret the values into 5 parts. First part consist of 6...

0

How To Install LAMP Stack On Linux, Ubuntu, Debian,Mint,Fedora

LAMP stack is a popular term in IT world. It is used to express multiple application package to server PHP applications. Here is the formula Linux+Apache+MySQL+PHP=LAMP . LAMP stack can be created by installing these components one by one. In this tutorial we assume that we have already installed the Linux distribution like Ubuntu, Debian, CentOS, Mint . Installing Apache or Httpd We will start by installing Apache web server. Apache...

0

PHP Glob() Function To Match Path, Directory, File Names with Examples

glob is a general term used to define techniques to match specified pattern according to rules related Unix shell. Linux and Unix systems and shells also supports glob and also provide function glob() in system libraries. In this tutorial we will look glob() function usage in PHP programming language. Exact String Search We will start with a simple example. We will look how to match exact string or file name with a absolute...

Enjoy this blog? Please spread the word :)