Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C and C++

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-12-2007, 06:30 AM
evo4ever evo4ever is offline
Newbie
 
Join Date: Feb 2007
Posts: 1
Credits: 0
Rep Power: 0
evo4ever is on a distinguished road
Default Serverside Development: Ditching PHP for C++. Advice Needed!

Hello all, my first post here.

Ive been learning C++ for 6 months now and im comfortable that I know the language through and through now, including the STL. I what to go back to serverside development but I dont want to use PHP anymore, id rather use C++ to continue my exposure to solidify my C++ knowledge.

Is there any possible way to implement C++ code into webpages? Im aware that the STL has no such cl***es for serverside development. Are there any other third party APIs which give you access the server/client variables? EG: GET, POST, SERVER, SESSION, COOKIE?

The only way that ive got C++ apps runnning on apache is through the cgi-bin. But the issue ive got is that ive no access to the above vars! Help appreciated.

Last edited by evo4ever; 02-12-2007 at 06:37 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 02-12-2007, 08:19 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 7,330
Last Blog:
Tramp Variables
Credits: 1
Rep Power: 20
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

Of course you can use the CGI-BIN and C++ to create serverside scripts in C++.

Here is a tutorial: C++ CGI cl*** (1): An introduction

This site: Getting Started with CGI Programming in C shows how to get the form variables. Take a look at "How to process a simple form".



If you want to have the C++ CGI in your html directory instead of the CGI-BIN change your httpd.conf file to point the CGI-BIN to your html directory instead of the CGI-BIN. It will look something like this:

ScriptAlias /cgi-bin/ /usr/local/apache/share/cgi-bin



__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
Don't hesitate to ask any questions that you have! Check out our ASCII Calculator!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 4 end of life announcement Jordan Programming News 4 08-30-2007 09:55 AM
Help / Advice Needed - Barcode scanning icecauldron Software Development Tools 8 07-18-2007 05:17 PM


All times are GMT -5. The time now is 01:32 AM.

Contest Stats

Xav ........ 1322.18
MeTh0Dz|Reb0rn ........ 1053.7
morefood2001 ........ 879.43
John ........ 877.37
marwex89 ........ 869.98
WingedPanther ........ 830.24
Brandon W ........ 735.07
chili5 ........ 309.39
Steve.L ........ 239.84
dcs ........ 216.02

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads