Message Board in PHP with MySQL
Re:Message Board in PHP with MySQL
Well there is 2 main ways in PHP cookies, or sessions. Although there is other methods you could devise if you know what your doing.
http://us2.php.net/manual/en/function.setcookie.php This is info on how to use setcookie(); use this function to either set a cookie or delete a cookie. If you want a specific example of using it just ask.
http://us2.php.net/manual/en/function.setcookie.php This is info on how to use setcookie(); use this function to either set a cookie or delete a cookie. If you want a specific example of using it just ask.
Re:Message Board in PHP with MySQL
Please do note that sessions are the php nice-ness layer on top of cookies, so effectively, you always use cookies in this way.Chris Cromer wrote: Well there is 2 main ways in PHP cookies, or sessions. Although there is other methods you could devise if you know what your doing.
http://us2.php.net/manual/en/function.setcookie.php This is info on how to use setcookie(); use this function to either set a cookie or delete a cookie. If you want a specific example of using it just ask.
You can log an IP as being some user, and treat all unlogged IP's as not logged in.
Re:Message Board in PHP with MySQL
Actually, PHP sessions uses 2 different methods, it can store the session id in the url OR a cookie. So even if cookies are off it will work by having the id in the url... but if cookies are on then it won't need to use the sessions in the url.Please do note that sessions are the php nice-ness layer on top of cookies, so effectively, you always use cookies in this way.
That won't work for people with random ip's.You can log an IP as being some user, and treat all unlogged IP's as not logged in.
Re:Message Board in PHP with MySQL
Hmm, I heard from other people, that work with PHP, that I have to include:
at the start of each page that wants to use cookies.
Is that correct ?
Code: Select all
<? session-start ?>
Is that correct ?
Re:Message Board in PHP with MySQL
Why don't you check the _FREE_ php manual pages about that? They include some info on those functions.DennisCGc wrote: Hmm, I heard from other people, that work with PHP, that I have to include:at the start of each page that wants to use cookies.Code: Select all
<? session-start ?>
Is that correct ?
Most notably not with NAT setups.That won't work for people with random ip's.
Note that you can disable putting session ID's in urls, thereby increasing the security slightly (not much, just capture the cookie). It does prevent logging the session id's on your computer.
Re:Message Board in PHP with MySQL
Actually it should be this:
But that's only if you want to use sessions, not cookies.
Code: Select all
<?php session_start(); ?>
Re:Message Board in PHP with MySQL
I was testing out the SMF (YaBBSE ) and was going through it. Thats why no questions so far. Its really good. I will be back with a lot more questions later.
Anway is there a special field type for passwords in MySQL
Anway is there a special field type for passwords in MySQL
Only Human
Re:Message Board in PHP with MySQL
Well you just need to create a field type that is large enough to store the maximum length of the passwords... if you use md5 for instance a varchar with a 32 byte length would work since all the hashes from md5 are 32 bytes long.
And yeah, SMF is awsome(although I am biased because I worked on YaBBSE... and am part of the SMF mod development team) it's a shame the mega-tokyo forum can't be upgraded to SMF though because it requires PHP 4.1.0... and this site is running an older version of PHP than 4.1.0.
And yeah, SMF is awsome(although I am biased because I worked on YaBBSE... and am part of the SMF mod development team) it's a shame the mega-tokyo forum can't be upgraded to SMF though because it requires PHP 4.1.0... and this site is running an older version of PHP than 4.1.0.
Re:Message Board in PHP with MySQL
He doesn't have access to upgrade PHP... and his host won't upgrade it.
Re:Message Board in PHP with MySQL
heres a GOOD FlatFile board:
http://pblang.drmartinus.de/
http://pblang.drmartinus.de/
Re:Message Board in PHP with MySQL
Nobody is looking for a flatfile board. This is about PHP/MySQL message boards.
Re:Message Board in PHP with MySQL
At the beggining of the topic there wwas a disc. about it.i would post it there,nut i was kinda late...
Re:Message Board in PHP with MySQL
He didn't ask for a flatfile board. He asked if it was better to store data in flatfiles or a database(MySQL) he is creating a message board, not looking for one. You should read it more thouroughly.
Anyway, if he had asked for a flatfile bulletin board, I would have already chimed in and told him about the original YaBB which is flatfile.
Anyway, if he had asked for a flatfile bulletin board, I would have already chimed in and told him about the original YaBB which is flatfile.
Re:Message Board in PHP with MySQL
This is a sort of the end of the line (sigh) for my project. I've started modifying the existing board software instead of writing the thing from scratch. Its more fun modifying it and their is more professional anyway. I will be popping it up now and then when I've got another related doubt or idea.
So I'm off to try something else...(presumably web related I'm thinking of Java)
Thanks Chris for all your help so far.
So I'm off to try something else...(presumably web related I'm thinking of Java)
Thanks Chris for all your help so far.
Only Human