Hi bug-apl,

Is there something weird about how I'm using CF_APPEND? I'm having trouble tracking down the error because it only appears when run as a cgi script, as opposed to directly called at the command line. This script works, and sucessfully loads the page, but I recieve an 'Internal Server Error' if the line with CF_APPEND is uncommented (assume /var/cf/message.cf exists and already has a few items ) . Is it possible this is more related to my server configuration? 

#!/usr/local/bin/apl --script 
0 0 ⍴ ⍎')COPY 5 HTML'
0 0 ⍴ ⍎')COPY /usr/local/lib/apl/wslib5/iso-apl-cf/iso_cf.apl'
⍝QS←,⊃1↑⌽,⎕ENV'QUERY_STRING'
QS←'tbox=ly+gjewobhear09g&submitButton=click'
cf∆dl←CF_DEFAULT_LIBRARY '/var/cf'
cf∆path←'message.cf'
cf∆tn←CF_OPEN cf∆path
⍝cf∆idx←QS CF_APPEND cf∆tn
cf∆idx∆val←CF_READ cf∆tn,3
cf∆cls←CF_CLOSE cf∆tn
xTITLE←'Title'
xDESCRIPTION←'Desc'
yBODY←(,¨'{}') ⎕INP 'END-OF-⎕INP' 

END-OF-⎕INP
HTML∆emit HTML∆Document
)off

-Alex

Reply via email to