Hosting Solutions
mobile_logo Table of Contents

Flat File Text Database System Display Content

In this 2 part video series we demonstrate using .txt flat file database systems as an alternative to MySQL, XML, or other database systems. In this part 1 you will learn 2 methods for displaying and accessing external text files within your PHP scripts. <?php if (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; ?>

PHP Videos


Website Design Theme Application PHP Cookies CSS TutorialPDO Prepared Statements PHP TutorialPDO Tutorial Connect Database and Query ExampleActive Page Link Button Highlight TutorialGeoPlugin Tutorial Get User Location Information IP DetectionHashtag System and Regex PHP Programming TutorialPagination MySQLi Google Style Paged Results TutorialActive Clickable Link Function preg_replace Programming TutorialGet Favicon From Web Site Link Access External FilesRandom String Generator PHP Function Programming TutorialForce File Download Dialog In Browser TutorialCheck User Sign Up Name Ajax PHP Social Network TutorialFlat File Text Database System CMS Edit Content TutorialFlat File Text Database System Display ContentExperience Level Evaluation Programming TutorialStagger and Limit Dynamic Output in a While Loop Google AdsTwitter Dynamic Goodies Widget TutorialDynamic Google Maps Location TutorialPrepared Statements PHP mysqli Tutorial