You may also want to read:Forum Rules wrote: 11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.
Replacing text with smilies! Getting some error!
Moderator: General Moderators
Re: Replacing text with smilies! Getting some error!
- TildeHash
- Forum Commoner
- Posts: 43
- Joined: Fri Jul 16, 2010 7:17 am
- Location: Apple Valley, California
Re: Replacing text with smilies! Getting some error!
Conditional variable value.pHp_n0ob wrote:plz also xplain ?
Code: Select all
$variable = (condition) ? condition met : condition not met;Code: Select all
$variable = (5 > 4) ? 'yes' : 'no';stripslashes does what it's named. It removes backslashes from "POST" and "GET" data. If, for example, you post the following message:pHp_n0ob wrote:and striplashes...thanx for ur help anyway
[text]This is a "test" message.[/text]
Without stripslashes, PHP will echo that text as:
[text]This is a \"test\" message.[/text]
This is called "escaping special characters". I have no idea why PHP does it though.
- TildeHash
- Forum Commoner
- Posts: 43
- Joined: Fri Jul 16, 2010 7:17 am
- Location: Apple Valley, California
Re: Replacing text with smilies! Getting some error!
Most forums do use a database to store the posts, but it's not at all required:pHp_n0ob wrote:TildeHash wrote: Sorry, I don't use databases (especially not MySQL.)
and what if you'l have to store data...say u have to make a forum...then what? Where you'l store the data?TildeHash wrote:If it's one's own content for one's own site, then any form of separated file storage isn't called for. I do use flat files, but I don't store other people's content or information very often so there is no need for me to use a database nor flat files very often, either.
http://sourceforge.net/projects/flatfileforum/
http://www.myupb.com/sf_news/
http://code.google.com/p/smartbb-forum/
http://www.razorcms.co.uk/
I myself am writing a comment system called "HashOver" which uses individual XML files instead of any kind of database.
http://www.tildehash.com/comments.html