Hey experts! 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.
PHP File read or database read?
12
Hey experts!
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?
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?
- freehugs
- [1] reply
- chipsgear
- AdwordsMogul
- [1] reply
- dudeontheweb
- st8ic
- ShiftySituation
- ussher
- iaxia
- [1] reply
- newbie365
- [1] reply
Next Topics on Trending Feed
-
12