Web Development Tutorials
//

Category: Programming

Programming

Read and Parse JSON files in PHP

Read and parse JSON files using the functions file_get_contents() and json_decode() in PHP. The function file_get_contents() will read the entire file into a string,…

April 5, 2023

Programming

Create JSON Files In PHP

Format the data values using the function json_encode(), and generate the JSON file with the use of the following functions, fopen(), fwrite(), and fclose()…

March 16, 2023

Programming

Differentiate bindParam From bindValue

The main difference between PDOStatement bindParam() and PDOStatement bindValue() is that when using the former, the variable is bound as a reference and will…

March 15, 2023

Programming

Use PHP PDOStatement bindValue

Use the PDO function PDOStatement bindValue() to bind a parameter to a specified variable name in PHP. Requirements: PHP PHP Data Objects PDO Drivers…

March 14, 2023

Programming

Use PHP PDOStatement bindParam

Bind a parameter to a specified variable name using the PDO function PDOStatement bindParam() in PHP. Prepare the statement using a named (:name) or…

March 13, 2023

Programming

Create PDFs In PHP With Header/Footer

Add header with logo and footer in creating PDF files in PHP using FPDF Library Class. Position the data to your desired area, choose…

March 12, 2023