Recommend this page to a friend! |
Download |
Info | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-01-30 (8 months ago) | Not enough user ratings | Total: 101 | All time: 9,795 This week: 36 |
Version | License | PHP version | Categories | |||
simple-site-class 3 | MIT/X Consortium ... | 8 | HTML, Databases, Content management, P... |
Description | Author | |||||||||||||||||||||||
This package can be used to create database-driven Web sites. |
|
There are several ways to install this project
Download the ZIP file from GitHub. Expand it into the /var/www directory that Apache2 creates.
I have /var/www and my virtual hosts off that directory in my servers.
That way, the directory created when you unzip the download is readily available to all my virtual hosts.
If you have Apache or Nginx installed, root your project within your DocumentRoot ('/var/www/html' for Apache2 on Ubuntu).
Or, if you want to make a separate Apache virtual host with a registered domain name, you can make your new project in '/var/www'.
Create a directory `
mkdir myproject; cd myproject`
, this is your project root directory. Add the following to 'composer.json', just cut and past:
{
"require": {
"bartonlp/simple-site-class": "dev-master"
}
}
Then run `
composer install`
INPORTANT NOTE: you can disable the log function by either setting `
$_site->noTrack=true`
or adding `
"noTrack":true,`
to the mysitemap.json.
Doing either of those things will keep the SimpleSiteClass from using the logagent table to log visitors. This will also mean that some of the
example programs will not work.
First you will need to install mysql if you don't already have it. You will need to install the PHP extension for mysql. The SimpleSiteClass code runs with PHP 8, and it may not work with older versions of PHP.
Once you have mysql and the PHP extension you can set up mysql. These examples use a database called barton with user barton. There is a file in this directory called schema.sql. You can run it in mysql and create the table.
Now that the database is set up you can run the examples.
I have included a couple of examples to show how to use the SimpleSiteClass. They are in two seperate directories: IfComposer and IfDownloadedZip. If you set up your directory structure as:
and used composer to create a /var/www/vendor/bartonlp/simple-site-class directory, you should use IfComposer examples. If you downloaded the zip file from https://github.com/bartonlp/simple-site-class you should use the IfDownloadedZip directory.
In either case, from the examples directory in the downloaded location, do:
Then open your browser and enter:
or
Each example has links to the rest of the examples.
Note, that when running with the PHP server it does not use the apache .htaccess file.
You can run both sets of examples from a browser if you have the apache server running on your machine. The IfComposer examples should just work. In the IfComposer directory I have a .htaccess file which has the Header set for the site loader.
The IfDownloadedZip examples need to have the includes directory, from the zip file, moved to the directory above the examples
directory. Or, you can edit the examples and change the `
__DIR__ . "/../../`
, in the 'callback' function at the top of the file, to an absolute path.
Any questions can be directed to Barton Phillips at bartonphillips@gmail.com
Have fun
Examples SimpledbTables SimpleSiteClass Methods Additional Files Index
Barton Phillips : bartonphillips@gmail.com Copyright © 2023 Barton Phillips Project maintained by Barton Phillips Last Modified November 10, 2023
Files (98) |
File | Role | Description | ||
---|---|---|---|---|
docs (13 files, 4 directories) | ||||
examples (4 files, 5 directories) | ||||
includes (6 files, 1 directory) | ||||
.htaccess | Data | Auxiliary data | ||
CHANGES.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
index.html | Doc. | Documentation | ||
LICENSE | Lic. | License text | ||
mk-html-gitlog.sh | Data | Auxiliary data | ||
mysitemap.json | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
update-git-log.sh | Data | Auxiliary data |
Files (98) | / | docs |
File | Role | Description | ||
---|---|---|---|---|
fonts (5 files) | ||||
images (10 files) | ||||
javascripts (2 files) | ||||
stylesheets (6 files) | ||||
addscript | Data | Auxiliary data | ||
dbTables.html | Doc. | Documentation | ||
dbTables.md | Example | Example script | ||
examplereadme.html | Doc. | Documentation | ||
files.html | Doc. | Documentation | ||
files.md | Example | Example script | ||
index.html | Doc. | Documentation | ||
index.md | Data | Auxiliary data | ||
mk-new.sh | Data | Auxiliary data | ||
params.json | Data | Auxiliary data | ||
siteclass.html | Doc. | Documentation | ||
siteclass.md | Data | Auxiliary data | ||
_config.yml | Data | Auxiliary data |
Files (98) | / | docs | / | fonts |
File | Role | Description |
---|---|---|
copse-regular-webfont.svg | Data | Auxiliary data |
quattrocentosans-bold-webfont.svg | Data | Auxiliary data |
quattrocentosans-bolditalic-webfont.svg | Data | Auxiliary data |
quattrocentosans-italic-webfont.svg | Data | Auxiliary data |
quattrocentosans-regular-webfont.svg | Data | Auxiliary data |
Files (98) | / | docs | / | images |
File | Role | Description |
---|---|---|
background.png | Icon | Icon image |
body-background.png | Icon | Icon image |
bullet.png | Icon | Icon image |
code.png | Icon | Icon image |
hr.gif | Icon | Icon image |
octocat-logo.png | Icon | Icon image |
pattern.png | Icon | Icon image |
tar.png | Icon | Icon image |
top.png | Icon | Icon image |
zip.png | Icon | Icon image |
Files (98) | / | docs | / | javascripts |
Files (98) | / | docs | / | stylesheets |
File | Role | Description |
---|---|---|
github-dark.css | Data | Auxiliary data |
github-light.css | Data | Auxiliary data |
normalize.css | Data | Auxiliary data |
pandoc.css | Data | Auxiliary data |
styles.css | Data | Auxiliary data |
stylesheet.css | Data | Auxiliary data |
Files (98) | / | examples |
File | Role | Description | ||
---|---|---|---|---|
css (1 file) | ||||
IfComposer (8 files) | ||||
IfDownloadedZip (7 files, 1 directory) | ||||
images (15 files) | ||||
includes (3 files) | ||||
aboutwebsite.php | Example | Example script | ||
phpinfo.php | Aux. | Auxiliary script | ||
README.md | Doc. | Documentation | ||
schema.sql | Data | Auxiliary data |
Files (98) | / | examples | / | IfComposer |
File | Role | Description |
---|---|---|
.htaccess | Data | Auxiliary data |
example1.php | Example | Example script |
example2.php | Example | Example script |
example3.php | Example | Example script |
example4.php | Example | Example script |
example5.php | Example | Example script |
example6.php | Example | Example script |
mysitemap.json | Data | Auxiliary data |
Files (98) | / | examples | / | IfDownloadedZip |
File | Role | Description | ||
---|---|---|---|---|
includes (3 files) | ||||
example1.php | Example | Example script | ||
example2.php | Example | Example script | ||
example3.php | Example | Example script | ||
example4.php | Example | Example script | ||
example5.php | Example | Example script | ||
example6.php | Example | Example script | ||
mysitemap.json | Data | Auxiliary data |
Files (98) | / | examples | / | IfDownloadedZip | / | includes |
File | Role | Description |
---|---|---|
banner.i.php | Aux. | Auxiliary script |
footer.i.php | Example | Example script |
head.i.php | Example | Example script |
Files (98) | / | examples | / | images |
File | Role | Description |
---|---|---|
146624.png | Icon | Icon image |
apache_logo.gif | Icon | Icon image |
bestviewedwithmozillabig.gif | Icon | Icon image |
blank.png | Icon | Icon image |
blp-image.png | Icon | Icon image |
CIRCULA.gif | Icon | Icon image |
digitalocean.jpg | Icon | Icon image |
favicon.ico | Data | Auxiliary data |
linux-powered.gif | Icon | Icon image |
logo_jquery_215x53.gif | Icon | Icon image |
msfree.png | Icon | Icon image |
php-small-white.png | Icon | Icon image |
powered.gif | Icon | Icon image |
powered_by_mysql.gif | Icon | Icon image |
shirt3-small.gif | Icon | Icon image |
Files (98) | / | examples | / | includes |
File | Role | Description |
---|---|---|
banner.i.php | Aux. | Auxiliary script |
footer.i.php | Example | Example script |
head.i.php | Example | Example script |
Files (98) | / | includes |
File | Role | Description | ||
---|---|---|---|---|
database-engines (6 files) | ||||
autoload.php | Aux. | Auxiliary script | ||
getVersions.php | Example | Example script | ||
mysitemap.json | Data | Auxiliary data | ||
SiteClass.class.php | Class | Class source | ||
siteload.php | Class | Class source | ||
whatisloaded.php | Class | Class source |
Files (98) | / | includes | / | database-engines |
File | Role | Description |
---|---|---|
Database.class.php | Class | Class source |
dbMysqli.class.php | Class | Class source |
dbTables.class.php | Class | Class source |
ErrorClass.class.php | Class | Class source |
simple-helper-functions.php | Example | Example script |
SqlException.class.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.