|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
cmd and html?
hi there,
yesterday i visited a site of which i viewed the code. the name of the page had a cmd extension in the addressbar but the code looked like common html. does anybody know what *.cmd files are and how they are generated? (googling didn't tell me the relation between cmd and html - uptill now) thnx in advance, greetings, grenouille. |
|
#2
|
||||
|
||||
|
You can call files whatever you want as long as your server is setup
to parse them correctly. I could call my files index.agent47 if I wanted to, as long as I added .agent47 to my server config file and told it to parse it as html / php or whatever... |
|
#3
|
||||
|
||||
|
Could have been some type of cgi script which runs a windows batch file.
Not sure why anyone would do that... |
|
#4
|
||||
|
||||
|
thnx for the replies.
Quote:
How do you do that? Quote:
? a batch file on MY pc? or the server? The site's of a big holding company in belgium. it looks ugly, so i want to persuade them to let me do a restyle. but i can't just ask "hey, what's that cmd thing all about?" ![]() thnx again, grenouille |
|
#5
|
||||
|
||||
|
What type of server are you running?
|
|
#6
|
|||
|
|||
|
the server on my pc (windows xp) is apache (with phpdev).
but that's just for testing purposes. my sites are hosted at hostbasket.be . it's called "shared hosting package" and it's a linux host. i guess i can't change the config file for that last one? greetz, grenouille |
|
#7
|
||||
|
||||
|
You might be able to do it with a .htaccess file, but I'm not sure.
You will be better off going to the Webserver config forum lower down on the index page, and asking your questions there... |
|
#8
|
|||
|
|||
|
okay, thanx for the advice.
greetz, grenouille |
|
#9
|
||||
|
||||
|
You can ignore my batch file remark...
It wouldn't be very useful, Agent47's suggestion is more likely the answer. In my idea above, the batch file would be on the server... the exact same way CGI executes bourne scripts on a Unix box. It would be ridiculous and impractical... but it *might* work =) I wouldn't worry too much about it... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > cmd and html? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|