Reply
Invisible/visible include....
Old 05-09-2008, 02:11 PM Invisible/visible include....
Experienced Talker

Posts: 44
Location: Pula, Istra, Croatia
I am making a php project..its made with container with multiple include/require functions (including php pages).

I need that if visitor has a cookie (from my site) he sees different include, or include is visible only if visitor has cookie in his comp...

Cookie will be made with loging in...

If someone has any idea to make this more elegant please help.
shile is offline
Reply With Quote
View Public Profile Visit shile's homepage!
 
When You Register, These Ads Go Away!
     
Old 05-09-2008, 02:24 PM Re: Invisible/visible include....
VirtuosiMedia's Avatar
Webmaster Talker

Latest Blog Post:
Is SEO Testing Worthless?
Posts: 566
If you're using PHP 5, check out the autoload feature.
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 05-09-2008, 11:42 PM Re: Invisible/visible include....
Inet411's Avatar
Skilled Talker

Posts: 78
Name: programmer
Location: internet
Are you looking for another way or are you asking if thats the best way to do it. I see nothing wrong with setting a cookie on login and then with php checking if the cookie is set and including or not including a file. You'll want to have some form of verification on the cookie though because I personally edit my cookies all the time to see what I can get away with on others sites.
__________________
http://www.inet411.com

Inet411 is offline
Reply With Quote
View Public Profile Visit Inet411's homepage!
 
Reply     « Reply to Invisible/visible include....
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12085 seconds with 13 queries