JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
clean up my urls
[wfpl.git] / INSTALL
1 Installing WFPL
2 ===============
3
4 Just unpack the file somewhere that php has access to. It's recomended to have
5 php at ``inc/wfpl/`` relative to your site php files, so you can use
6 wfpl_main() and files from metaform without modification.
7
8
9 Metaform
10 ========
11
12 Metaform is a code generator. Specifically, it generates the files that for a
13 web page with a form (which, optionally saves to a database, emails, etc.)
14
15 You are free to use the installation of metaform here:
16
17 https://jasonwoof.com/metaform/
18
19 However, if you'd like to run your own (possibly modified) version, read on for
20 how to set up your own:
21
22
23 Installing Metaform on apache (OPTIONAL)
24 =========================================
25
26 Note: metaform is a code generator. It is NOT required to use wfpl. It is a
27 tool for auto-generating code for your site which makes use of wfpl.
28
29 You'll need some directives in your .htaccess:
30
31         php_flag register_globals off
32         php_flag magic_quotes_gpc off
33         AddDefaultCharset UTF-8
34         RewriteEngine  on
35         RewriteRule    .*\.tgz$  /metaform/index.php
36
37 And a PHP file with:
38
39         require_once(__DIR__.'/'.'inc/wfpl/metaform.php);
40         metaform_main();