Right now i have 6 files:
Main.php = The login page
Info.php = The first page seen after login
ForgetPass1.php = The first page for password recovery
ForgetPass2.php = The first page for password recovery
functions.php = Holds all the php functions used in all websites including:
-logout()
-confirmUser()
-SQL_Connection()
-checkLogin()
-displayLogin()
-displayPassForm1()
-displayPassForm2()
-checkPassForm1()
-checkPassForm2()
-gentempPass()
-redirect()
-stripInjection
-mysql_prep
-onlyInt()
posts.php - Holds all the post checking and alittle javascript including
-post for login
-post for password recovery form 1
-post for password recovery form 2
Basically, i require functions.php and posts.php on all main, info, forgetpass1 and forgetpass2. Is it bad to have all php functions in one file and all posts in another file? Should i have a php file for each function? Should i have a folder in my directory with the seperated functions.php and posts.php? Would my server be one heavy load if I include A LOT of functions in functions.php and have it required(included) on every page even if im only using one or two functions?