[AOLSERVER] Uploading file - problem!

2003-01-14 Thread Durga
I am trying to upload the file onto aolserver( v3.5.0, SunOS 5.7 ). I have
successfully uploaded the file to destination directory, but NOT able to
display back onto web page when the same file is Word doc. However, I don't
have problem with regular *.txt file, I am able to view/display back on the
web.

Here is the code I have:

set localfile[ns_queryget localfile]
set fileloc  [ns_queryget localfile.tmpfile]


exec /usr/bin/cp [ns_queryget localfile.tmpfile] $dirpath$upname


Any ideas?

-Durga



[AOLSERVER] Modules for AS4.0

2003-01-14 Thread Brett Schwarz
Has the module interface changed in 4.0? I am trying to compile a C
module I wrote for AS3.5. It compiles fine, but when I try to start AS,
I get undefined symbol error:

[14/Jan/2003:15:20:51][14736.1024][-main-] Warning: modload: could not
load /usr/local/aolserver40/bin/nsresult.so:
/usr/local/aolserver40/bin/nsresult.so: undefined symbol: Ns_DbGetRow
[14/Jan/2003:15:20:51][14736.1024][-main-] Fatal: modload: failed to
load module '/usr/local/aolserver40/bin/nsresult.so'

For 4.0, do I have to explicitly link in the object that has
Ns_DbGetRow. I am not really familiar how AS loads modules...

Anyways, has anyone run any modules for 4.0?

Thanks,

--brett

--
Brett Schwarz
brett_schwarz AT yahoo.com