[Overview] | Reference for unit 'dynpwu' (#powtils_main) |
uses |
Please see the pwumain docs for information on each function. There is no documentation for each dynpwu function since they are exactly the same as pwumain functions.
Each download package from source forge usually contains a precompiled DLL. However, if you wish to compile the DLL yourself, navigate into the lib/ directory that you extracted from the zip/gzip file and type 'make' in the lib/ directory.
#/path/library.soExamples of typical paths on line 1 of your config file are below.
Relative path:#../../pwu/pwu-1.6.0.0.soAbsolute path:#/home/yourname/cgi-bin/pwu/pwu-1.6.0.0.soSpecial server independent path inside public html (1.6.0.1 only):#$DOCROOT/pwu/pwu-1.6.0.1.soSimilar to above, but hidden from the public (not inside public_html/):#$DOCROOT/../pwu/pwu-1.6.0.1.so
Be warned that using $DOCROOT means the library won't be found when using the command line to test your cgi programs.
The DOCROOT macro is not available in version 1.5 or 1.6.0.0 and was only introduced in 1.6.0.1 and higher versions.
The DOCROOT macro is a good practice to use if you are tired of changing your relative paths each time you upload a program to some subdirectory in cgi-bin that is no longer correctly relative. It is also useful if you switch web servers and your absolute paths are changed.
The document root references your htdocs or html directory, not your CGI-BIN directory. Examples on typical servers of where DOCUMENT ROOT is located:
public_html/ www/ htdocs/ C:\program files\apache group\htdocs\You might be thinking that it would be better to store the library in a cgi bin directory so that it is hidden from the public. You can do that by relatively referencing where your cgi-bin is to document root.
Example, one directory back from public html:
#$DOCROOT/../cgi-bin/libs/pwu-1.6.0.1.soOr if cgi bin is located in your public html:
#$DOCROOT/cgi-bin/libs/pwu-1.6.0.1.so
The other option you have is to upload your library to a system directory, but system directories can become black holes with lots of forgotten files in them.