Jump to content

Search the Community

Showing results for tags 'protect pages'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 1 result

  1. Hi there, I am having an issue protecting sub-folders within sub-folders with PHP. I have been protecting pages with only short directories (doing fine), but now I am wanting to protect new directories with a number of sub-directories and that is where I am having troubles. NOTE: Links below are like this as they shorting on this site making it hard for you's to view then understand what I'm talking about. Example: PHP Login Script Location: mydomain. com/login/free/main.php Works Fine - Pages Protected: mydomain. com/login/free/members/free.php Does not work - Wanting Pages Protected: mydomain .com/login/free/members/free/archive/directory/2008.php (and branched out from there) This is the code I use on tops of all my pages, but the long one's do not work... <?php include("..../include/session.php"); if(!$session->logged_in){ header("Location: ..../main.php"); } else { ?> <!-- --> Only "../" works, not "..../" or "....../". Can anyone tell me why this is the case and what I am doing wrong. Thanks
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.