1. Flat File .txt + PHP Database Systems Tutorial - Displaying text file content

Flat File .txt + PHP Database Systems Tutorial - Displaying text file content

Listening Video

In this lesson series Adam Khoury demonstrates using .txt Flat File Database systems as an alternative to MySQL, XML, or other database systems. In part 1 you will learn 2 methods for displaying and accessing external text files within your PHP scripts.
Lesson Code
<?phpif (file_exists("file1.txt")) {
    
// Method 1 for displaying external text file data
    //include_once "file1.txt"; // Uncomment this line to use
    //Method 2 for displaying external text file data(preferred)
    
$myData file_get_contents("file1.txt");
}
echo 
$myData;?>

0 Response to "1. Flat File .txt + PHP Database Systems Tutorial - Displaying text file content"

Post a Comment