1 |
jonen |
1.1 |
|
2 |
|
|
phpHtmlLib INSTALLATION |
3 |
|
|
|
4 |
|
|
|
5 |
|
|
Introduction |
6 |
|
|
============ |
7 |
|
|
|
8 |
|
|
I have tried to make the phpHtmlLib fairly easy to install |
9 |
|
|
and to use on anyone's current running site. There are a few assumptions |
10 |
|
|
I've made, but it shouldn't be a problem for 99% of the folks out there. I |
11 |
|
|
haven't tested the libs in a windows environment, as I don't have a M$ O.S. |
12 |
|
|
installed anywhere in my house. If you encounter any issues, please let me |
13 |
|
|
know. I welcome any and all feedback. |
14 |
|
|
|
15 |
|
|
Thanks and enjoy, |
16 |
|
|
Walt A. Boring IV |
17 |
|
|
waboring@buildabetterweb.com |
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
Installing the libs |
22 |
|
|
================================================ |
23 |
|
|
|
24 |
|
|
1. Overview for the impatient |
25 |
|
|
-------------------------- |
26 |
|
|
|
27 |
|
|
$ mv phphtmllib <your webdir DOCUMENT_ROOT> |
28 |
|
|
|
29 |
|
|
NOTE: in your script, set a global variable $phphtmllib to the |
30 |
|
|
location of your phphtml install. If you installed it into |
31 |
|
|
your DOCUMENT_ROOT, you would do |
32 |
|
|
<?php |
33 |
|
|
$phphtmllib = $_SERVER["DOCUMENT_ROOT"] . "/phphtmllib"; |
34 |
|
|
include_once("$phphtmllib/includes.inc"); |
35 |
|
|
?> |
36 |
|
|
|
37 |
|
|
2. Requirements |
38 |
|
|
------------ |
39 |
|
|
|
40 |
|
|
The following requirements exist for using phpHtmlLib : |
41 |
|
|
|
42 |
|
|
o PHP version 4.0.x |
43 |
|
|
|
44 |
|
|
|
45 |
|
|
3. Installing |
46 |
|
|
---------- |
47 |
|
|
|
48 |
|
|
1. Copy the entire phphtmllib directory into your website's source |
49 |
|
|
tree. I typically install it in DOCUMENT_ROOT/phphtmllib. |
50 |
|
|
You don't have to have it installed in the document root, but that is |
51 |
|
|
where I normally install it. |
52 |
|
|
|
53 |
|
|
2. In each script that uses the libs, you MUST set a global variable |
54 |
|
|
$phphtmllib to the path of your phphtmllib dir in your web tree. |
55 |
|
|
So, if you installed phphtmllib in your DOCUMENT_ROOT, like I do, |
56 |
|
|
then you set $phphtmllib = $_SERVER["DOCUMENT_ROOT"] . "/phphtmllib" |
57 |
|
|
I usually do this at the top of my scripts, or have a include file |
58 |
|
|
of defines and such that sets this. |
59 |
|
|
|
60 |
|
|
After that you should be able to include the main includes file |
61 |
|
|
include_once("$phphtmllib/includes.inc"); to include all of the files |
62 |
|
|
in the lib, or you can include each file that you need individually |
63 |
|
|
to save include processing. |
64 |
|
|
|
65 |
|
|
9. Contacts |
66 |
|
|
-------- |
67 |
|
|
|
68 |
|
|
o All the latest updates and news will be posted on phpHtmlLib's project |
69 |
|
|
website at http://phphtmllib.newsblob.com |
70 |
|
|
|
71 |
|
|
o You can always contact me by sending an email to: Walt Boring |
72 |
|
|
waboring@buildabetterweb.com |
73 |
|
|
|
74 |
|
|
|
75 |
|
|
Thanks for trying phpHtmlLib. |
76 |
|
|
Walt Boring IV |
77 |
|
|
|