how does a script work exactly?
I know that there are all types of scripts, but I was curious about what types there are.
1. what are the main types of scripts (including scripting languages)
2. do you run them like an exe or what?
disclaimer: been 4 years since I did any web programming
server-side: Perl (most popular), C, Tkl, just about any Unix scripting language.
That's pretty basic info I gave you. As I have said, it's been a long time since I last touched web programming.
You could look into informit.com's free library of articles and books (Que, Sam's, etc.) for indepth tackling of this subject.
Yes and no....
For the most part, radbasa is correct (in regards to scripting in relation to the web).. though a minor point: C and is not a scripting language, but can be compiled and run as a CGI for web use.
Though, there are many other scripting uses that came before the web and have no relation to it... the most fundimental of which is shell scripting... much like DOS's batch files (as radbasa mentioned), though usually with somewhat more powerful capabilities.
The main difference between a script and a compiled program is basically when certain things happen..
Languages such as C, Pascal, VB, Assembly, etc, are compiled at build time into machine code and you are left with the executable. This executable for all intents and purposes can not be modified unless you change the code and recompile.. though it can be distributed and executed without the code.
A scripting language such as Perl, or a shell script (bash, ksh, sh, etc) is run through an interpriter of sorts at execution time and the expressions contained in the script are then evaluated. Most scripting langages resemble batch files, though tend to offer more powerful features often contained in a more powerful compiled language. The script is not compiled, and the code/script file is distributed as the executable but requires the interpritor to be present on the machine the script is to be executed on (a perl script requires the perl binaries, c shell script requires the c shell to be install, etc). Shell scripts are for the most part a unix thing... Perl is mostly unix also, though has been gaining alot of Windows users in recent years. Windows scripting host is a Windows specific scripting langauge with alot more power than just batch files.. though i hear people swearing at it enough to avoid it.
Also, alot of applications use proprietary scripting languages for internal uses... but thats a whole other story
I tried to simpify the above and some of the terminology my not be exactly correct.. though for the most part, I think you'll get the idea.
New Security Features Planned for Firefox 4
Another Laptop Theft Exposes 21K Patients' Data
Oracle Hits to Road to Pitch Data Center Plans
Microsoft Preps Array of Windows Patches
Microsoft Nears IE9 Beta With Final Preview
Simplified Analytics Improve CRM, BI Tools
Android Passes RIM as Top Mobile OS in 2Q
VMware Updates Hyperic System Management
File Monitoring Key to Enterprise Security
LinkedIn Snaps Up SaaS Player mSpoke