PHP File read or database read?
I have a question for you. This is what I want to do.
If someone comes to a page on my site, they are redirected to a different section depending on if their name exists in a list. I have the URL params already set up to pull the value that I need. What I am missing though is a way to have the PHP code go and read a file and see if that person's name exists on the list. If it does exist on the list, then I want them to be redirected to a different page. If their name does not exist, then I want to continue on the page. Basically, break out.
Does anyone have an idea as to how this would look in the code to read from a file and then return a boolean operator to complete this function?
Is this easier to perform in a database?
Jean Paul a.k.a AdwordsMogul
PHPDevelopers.net - Top of the range PHP developers
⇉ Easy Link Saver - Are you tired of the pain of constantly searching for your affiliate links? ( Chrome extension - FREE )
Need a QR Code? Check out my QR Code Generator. It's FREE!
"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."