Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
rowanp
Joined: Apr 09, 2004
# Posts: 19
|
Posted: 2005-Mar-25 07:57
Hi
I have noticed that many websites these days use scripts without any extension. For instance the following link, [link] uses a script called "search" but as you can see there is nothing that tells you which script it is written in. I have also seen others that do not even have the name of the script, but just something like, [link]
How is it possible to do this? Of course, just by deleting the extension of the file will make a web browser think that it is looking at a text file and display the script in text format.
Thank you
rowanp.
|
 |
Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1788
|
Posted: 2005-Mar-26 10:05
It all depends on the server configuration. If you intend to run a CGI script from your document root, then any file with no obvious recognizable extension, can be made to 'execute' by the server. So any file like your first link is recognized by the server to be parsed and the directives contained therein carried out.
The CGI file will contain in its first line the application or the executable file associated with it, called as 'Shebang'. For example, Perl scripts will invoke the Perl binary like so:
#!/usr/bin/perl
In your second instance, a mod_rewrite directive ( a singlarly delectable Swiss Army extension of the incredibly powerful Apache Server) extracts the parameters and sends it to the CGI script which does the processing.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|