Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-31-2014, 06:28 PM   #1
brackebuschtino
Member
FlashFXP Registered User
 
Join Date: Feb 2012
Location: /dev/null
Posts: 40
Default New module not available in script. How to add new modules?

Hello,

i am trying to process an HTML string (parse information) with a TCL script. Since i found the module html not being available i downloaded the latest tcllib and extracted the html module as well as its dependency ncgi into the /lib/tcl8.5 folder. However, calling ::html::html_entities gives me the error

Quote:
invalid command name "::html::html_entities" while executing ...
What am i missing?
brackebuschtino is offline   Reply With Quote
Old 06-03-2014, 01:13 AM   #2
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

Did you actually take the whole package or just the file? The package provide stuff is needed for TCL to find the library. Did you 'require' the package (I think that's the syntax). I'd take a look at nxTools or ioNiNJA to get an idea of how different authors did things. Poking around the other script files in the lib dir can be interesting as well. And don't forget the tcl website or download the TCL helpfiles/documentation which makes searching locally easier (activestate has a pre-built tcl you can grab the docs out of and open in window's help viewer).

The doc/iTCL.txt file contains the commands and variables added to plain TCL to support ioFTPD specific things, but everything in regular TCL is available for use with the version ioFTPD shipped with.
Yil is offline   Reply With Quote
Old 06-03-2014, 05:23 AM   #3
brackebuschtino
Member
FlashFXP Registered User
 
Join Date: Feb 2012
Location: /dev/null
Posts: 40
Default

Quote:
Did you actually take the whole package or just the file?
Actually i took the whole package (i refer to package as the folder named 'html' under 'modules'), but dropped the *.man, *.test and changelog files. The remaining files under /lib/tcl8.5/html are html.tcl and pkgIndex.tcl.
If this is not correct or incomplete, please point me.

In fact its confusing in which folder under /lib to put the extra modules in to since there seem to be different tcl versions considered (i guess). For instance under /lib/tcl8/8.4/platform are files, under /lib/tcl8/8.5 are files and under /lib/tcl8.5. It throws the question why there are two separate tcl8.5 folders and which one to use.

I will check the sources you mentioned
brackebuschtino is offline   Reply With Quote
Reply

Tags
folder, html, htmlhtml_entities, module, script

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:45 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)