Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums
Members
Pages
Search
Help
Register
Login
Home
Home
»
U++ Library support
»
U++ Library : Other (not classified elsewhere)
»
Web CGI
Show:
Today's Messages
::
Show Polls
::
Message Navigator
E-mail to friend
Re: Web CGI
[
message #27076
is a reply to
message #27025
]
Thu, 24 June 2010 20:13
mirek
Messages:
13975
Registered:
November 2005
Ultimate Member
ikeuchi wrote on Mon, 21 June 2010 15:04
Hi everyone.
I wrote this topic only to demonstrate how easy is to develop WEB CGI with U++.
The code is simple and I really needed it for a project.
Best Regards!
#include <Core/Core.h>
#include <Oracle/Oracle8.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
Oracle8 oracle;
String raw_get = getenv("QUERY_STRING");
String id_code;
id_code = raw_get.Mid(3, 12);
oracle.Open("user/
pwd@server
:1521/sid", false, NULL);
Sql sql(oracle);
sql.Execute("SELECT ADD_TEXT FROM SOMETABLE WHERE ADD_ENTITY = 'TASK' AND ADD_CODE = '" + id_code + "'");
sql.Fetch();
Cout() << "Content-type: text/html\n\n";
Cout() << "<html><head></head><body>";
Cout() << "<pre style=\"font-family:verdana;size:10\">" + sql[0].ToString() + "</pre>";
Cout() << "</body></html>";
}
The only possible problem here is that "oracle.Open" can take quite a long time in certain circumstances.
I am looking forward to somebody trying FastCGI...
Mirek
Report message to a moderator
[
Message index
]
Web CGI
By:
ikeuchi
on Mon, 21 June 2010 21:04
Re: Web CGI
By:
Mindtraveller
on Tue, 22 June 2010 09:04
Re: Web CGI
By:
mirek
on Thu, 24 June 2010 20:13
Re: Web CGI
By:
koldo
on Mon, 30 August 2010 09:01
Re: Web CGI
By:
jeremy_c
on Tue, 31 August 2010 04:57
Previous Topic:
[FIXED] X11 GLCtrl broken again ?
Next Topic:
navigate does not always work correctly
Goto Forum:
- Community
U++ community news and announcements
PR, media coverage, articles and documentation
U++ Webs: Functioning, Layout , Design, Features and Structure of these forums, homepage etc.
Coffee corner
Newbie corner
U++ based job offers
- Developing U++
U++ Developers corner
External resources
Releasing U++
UppHub
Bugs (& fixes)
Documentation
U++ TheIDE and Library: Releases and ChangeLogs
Mac OS
Android
- U++ Library support
U++ Library : Other (not classified elsewhere)
U++ Core
Look and Chameleon Technology
U++ Libraries and TheIDE: i18n, Unicode and Internationalization
U++ SQL
U++ MT-multithreading and servers
U++ Callbacks and Timers
U++ Widgets - General questions or Mixed problems
TopWindow&PopUp, TrayIcon
Menus&Toolbars
StatusBar&InfoCtrl
Splitter
TabCtrl
Slider&ProgressIndicator
ArrayCtrl, HeaderCtrl & GridCtrl
TreeCtrl
RichText,QTF,RTF...
LineEdit, EditFields, DocEdit
Draw, Display, Images, Bitmaps, Icons
FileSel&FileList, Path
CalendarCtrl
Skylark
ScatterDraw & ScatterCtrl
Archive
- U++ TheIDE
U++ TheIDE: Other Features Wishlist and/or Bugs
U++ TheIDE: Compiling, Linking, Debugging of your packages
U++ TheIDE: Installation, Compiling and Running of theide
U++ TheIDE: CodeEditor, Assist++, Topic++
U++ TheIDE: Packages
U++ TheIDE: Layout (Forms) Designer
U++ TheIDE: Icon designer
- Extra libraries, Code snippets, applications etc.
U++ users applications in progress and useful code snippets, including reference examples!
U++ Esc Interpreter, Esc Macros and templates
C++ language problems and code snippets
Applications created with U++
OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc
-=]
Back to Top
[=-
[
Syndicate this forum (XML)
] [
] [
]
Current Time:
Tue May 07 03:51:17 CEST 2024
Total time taken to generate the page: 0.02664 seconds