/*
* Figures out if a string contains another string
* @return the result.
*/
final public function Contains($haystack, $needle){
return strpos($haystack, $needle);
}
..?
I'm not sure if you're a 'beginner', but your script lacks any structure. I don't see any classes, OOP, etc. I'm not sure how far you want this project to go.. but if it's 'far' I suggest you learn PHP from a reliable source(php.net, w3school, etc) because who ever taught you PHP is doing it wrong.
CBA to write up some big description so if you don't know what it is google the name I do have a few youtube videos up. Yes this is an uber edit.
Open sourced and you can get the database(Is it there..?) at http://github.com/Makarovich/lifeCMS
The folder is very dirty with experiments of mine...