📁 File Manager Pro
Advanced File Management System
/
opt
/
alt
/
ruby22
/
lib64
/
ruby
/
gems
/
2.2.0
/
gems
/
ruby-lsapi-5.2
/
examples
Server Path:
/opt/alt/ruby22/lib64/ruby/gems/2.2.0/gems/ruby-lsapi-5.2/examples
📄 Create New File
Create File
📁 Create New Folder
Create Folder
⬆️ Upload File
Upload File
📄
lsapi_with_cgi.rb
Edit
Delete
Rename
📄
testlsapi.rb
Edit
Delete
Rename
✏️ Editing: testlsapi.rb
#!/opt/alt/ruby22/bin/ruby require 'lsapi' $count = 0; while LSAPI.accept != nil print "HTTP/1.0 200 OK\r\nContent-type: text/html\r\n\r\nHello World! \##{$count}<br>\r\n" ENV.each_pair {|key, value| print "#{key} is #{value}<br>\r\n" } $count = $count + 1 end
💾 Save Changes