Title: PHP Include
Last modified: August 20, 2016

---

# PHP Include

 *  [mwoodcoc](https://wordpress.org/support/users/mwoodcoc/)
 * (@mwoodcoc)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/php-include-6/)
 * I am creating a site where most of my pages will be password protected, and those
   pages will not be viewable unless a customer has purchased a membership and signed
   up using their email and creating a password. In order to allow thousands of 
   people access to password protected pages while using a password and username
   they created (thousands of people with thousands of different passwords), we 
   wanted to add the following php include:
 * <?php
    include(“/home/public_html/checkuser.php”); ?>
 * I was wondering if there would be any issues if i were to put this on every page
   I want password protected. Maybe it would not work or affect the functionality
   of the pages. Any help would be appreciated.
 * Thanks,
    Max

Viewing 1 replies (of 1 total)

 *  [Andrew Bartel](https://wordpress.org/support/users/andrew-bartel/)
 * (@andrew-bartel)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/php-include-6/#post-3351544)
 * Since you’re using WordPress, why not just put the contents of checkuser.php 
   into your functions.php file, or better yet, create a plugin?

Viewing 1 replies (of 1 total)

The topic ‘PHP Include’ is closed to new replies.

## Tags

 * [php include](https://wordpress.org/support/topic-tag/php-include/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Andrew Bartel](https://wordpress.org/support/users/andrew-bartel/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/php-include-6/#post-3351544)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
