New Member
- Joined
- Jan 15, 2003
- Messages
- 872
- Best answers
- 0
I am wondering if there are anyone here that knows php to code a publishing system.
Anyone know of anyone that is one?
Anyone know of anyone that is one?
a publishing what ?TimTheEnchantor said:I am wondering if there are anyone here that knows php to code a publishing system.
Anyone know of anyone that is one?
You'll probably only need Apache and MySQL, but it's still the best way to go in my opinion.http://www.apachefriends.org/en/xampp-windows.html said:Apache HTTPD 2.0.52, MySQL 4.0.21, PHP 5.0.2 + 4.3.9 + PEAR + Switch, MiniPerl 5.8.3, mod_ssl 2.0.51, Openssl 0.9.7d, PHPMyAdmin 2.6.0 pl1, Webalizer 2.01-10, Mercury Mail Transport System for Win32 and NetWare Systems v4.01a, FileZilla FTP Server 0.9.3, SQLite 2.8.15, ADODB 4.52, Zend Optimizer 2.5.3. For Windows 98, 2000, XP.
That's possible, but you'll be dealing with file streams... alot.SaiyanPrideXIX said:I have a huge interest in this too. All the wbesites I build are plagued by two main issues: the people always want to update them by themselves, and they always want to "learn html" from me.
I always wanted to build a nice simple system where their web page would have folders and they could place numbered text files or picture files, and the php would parse them and set them up in such a way that they could just make updates by putting new material in said folders. Is that even possible?
<?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "$file\n";
}
}
closedir($handle);
}
?>
<?php
// try to connect to the database server and store the result
$dbcnx = @mysql_connect('localhost', 'mysql_username', 'mysql_pass');
// did we connect?
if (!$dbcnx)
{
die("Unable to connect to database server at this time.");
}
// try to select the database
if (! @mysql_select_db('database_name'))
{
die("Unable to locate the specified database at this time.");
}
// select everything (*) from the `random` table
$query = "SELECT * FROM `random`";
// send the query, and store into a variable whether it has legal syntax or not
$result = @mysql_query($query);
if (!$result)
{
print('Error performing query: ' . mysql_error());
}
// let's be fancy and count how many things we output
$counter = 0;
// read this as, "while there is data to get, fetch the next row in the table
// I use mysql_fetch_object() because I prefer using -> over ' '
while ( $row = mysql_fetch_object($result) )
{
// lets say the table has a TEXT field called "text"
// display it and hop down two lines
echo $row->text . "<.br><.br>";
// add 1 to our counter
$counter++;
}
echo "We outputted " . $counter . " rows from the database!";
?>