PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to do a simple blog in php and i am trying to read some text files from a directory named "articles". The idea is to loop through all text files and read and post their contents:
$Title="title";
$content="12435 454 25 43 543";
foreach (string file in directory)
{
//read from file
//assign file name to title
//assign file content to $content
}
//post everything on page
echo('<h2>$Title</h2>');
echo('$content');
echo('<hr>');
I am totally new to PHP even though i know some other programming languages like Java, C# and C++.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.