I heard that you can program/script websites using C++, does it mean like with PHP? And where can I find more information about it and how do I try it? I have apache server.. PHP.. MySQL and got a lot of practice in PHP+MySQL..
I heard that you can program/script websites using C++, does it mean like with PHP? And where can I find more information about it and how do I try it? I have apache server.. PHP.. MySQL and got a lot of practice in PHP+MySQL..
what does signature stand for?
There is a tutorial called Getting Started with CGI Programming in C by Jukka K. Korpela (at http://www.cs.tut.fi/~jkorpela/forms/cgic.html), and I'm sure you can use it to figure out how to write CGI programs in C++.
You're better off using Perl. There's no real benefit to using C++; it's slightly worse than PHP for this kind of thing, which is bad itself.
oh.. thanks.. another question.. what can PHP that Perl (or CGI) cant?..
what does signature stand for?
PHP has some "features" like changing the contents of your strings without telling you about it (on some installations but not on others). I recommend avoiding it at all costs. (The language does not have arrays. How's that for interesting?)
"CGI" is not a programming language; it stands for Common Gateway Interface.
» The language does not have arrays. How's that for interesting?
oh really?
there's nothing wrong with PHP. it's closer to C++ than Perl, and easier to deal with (because you don't need CGI). I've never heard (or experienced) any strings changing without me changing them...
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
These are hashes, not arrays. Try doing a foreach on an 'array'. It will be in the order you inserted the elements, not in any kind of sensible order.Originally Posted by major_small
There's a lot wrong with PHP. Some installations insert slashes into strings input from a form; others don't.there's nothing wrong with PHP. it's closer to C++ than Perl, and easier to deal with (because you don't need CGI). I've never heard (or experienced) any strings changing without me changing them...
Being closer to C++ than Perl is bad -- it's closer in terms of lack of features, farther in terms of efficiency.
Not that Perl is the ultimate programming language...
Last edited by Rashakil Fol; 07-18-2005 at 02:05 PM.
that is the code from the site scripter, not the language itself.Originally Posted by Rashakil Fol
with php, you have to escape special characters or they will be interpreted and executed. inserting \ makes the characters only be ther ascii value. the problem lies with not removing them when displaying the contents.
I don't think you know what I am refering to, or you're simply not communicating this knowledge. These are PHP's "magic quotes."Originally Posted by Jaqui
From http://docs.php.net/en/security.magicquotes.html:
Assuming it to be on, or off, affects portability. Use get_magic_quotes_gpc() to check for this, and code accordingly.
yup, and when the site isn't scripted accordingly you get the \ in the output that Rashakil was mentioning.
that's what I meant by its the coders fault, not a language fault.
personally, I preffer to have them off, making more work for coding, simply as then it's a consistent platform.
( and the last time I checked to docs, also recommended for magic quotes )
Originally Posted by Jeff Henager
Eh, it does have arrays, they are represented as hashes and arrays at the same time. If you use a subscript operator to access an element, you will get it back in the order you saved it in, just like an array.
True PHP does have problems, but so does pretty much every other language, or quirks that you have to deal with. You can always shut off magic quotes and the like by calling ini_set (if I remember that function call correctly) and change the behavior as you see fit.
All in all this thread did get derailed...
So to the original question you can do web programming with C++, either through CGI (which can support a lot of different languages) or asp or the like.
ASP really sucks though. If you're going to use a scripting language, use PHP or ASP.NET.
---------------------------------------Edited---------------------------------------
Also, I've heard scripting languages are faster than CGI. Just something I thought I'd throw in...