PHP Classes

File: examples/IfComposer/.htaccess

Recommend this page to a friend!
  Classes of Barton Phillips   Simple Site Class   examples/IfComposer/.htaccess   Download  
File: examples/IfComposer/.htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple Site Class
Simple Site Class
Author: By
Last change: I had to make some changes to let the examples work. I added if(!function_exists()) around each of the class functions.
modified: docs/examples.html
modified: examples/IfComposer/.htaccess
modified: examples/IfComposer/example1.php
modified: examples/IfComposer/example2.php
modified: examples/IfComposer/example3.php
modified: examples/IfComposer/example4.php
modified: examples/IfComposer/example5.php
modified: examples/IfComposer/mysitemap.json
modified: examples/IfDownloadedZip/example1.php
modified: examples/IfDownloadedZip/example2.php
modified: examples/IfDownloadedZip/example3.php
modified: examples/IfDownloadedZip/example4.php
modified: examples/IfDownloadedZip/example5.php
modified: examples/IfDownloadedZip/mysitemap.json
modified: examples/README.md
modified: includes/database-engines/ErrorClass.class.php
modified: includes/database-engines/SqlException.class.php
modified: includes/database-engines/dbAbstract.class.php
modified: includes/database-engines/dbMysqli.class.php
Date: 3 months ago
Size: 686 bytes
 

Contents

Class file image Download
# For Examples # If you have /var/www/vendor and have copied the examples directory to /var/www/html # then you can use $_site = require_once(getenv("SITELOADNAME")); Otherwise, you will need the full # path in the require_once. See the examples in IfComposer directory. Options +Indexes Require all granted # NOTE your apache must have mod_env, mod_headers and mod_rewrite Header set Access-Control-Allow-Origin "*" Header set Access-Control-Expose-Headers: Content-Length # Set the environment variable for the siteloader. SetEnv SITELOADNAME /var/www/vendor/bartonlp/simple-site-class/includes/siteload.php setEnv SITECLASS_DIR /var/www/vendor/bartonlp/simple-site-class/includes