If you have time, you can try to access my server
http://brianyip.no-ip.com:8000/cgi-bin/gamble/gamble.pl
Above is the perl script file that I want to run. However, it seems that IIS
cannot locate the file. But when I allow the directory listing
http://brianyip.no-ip.com:8000/cgi-bin/gamble/ , I am able to see those file
there. However, once I run it, it say file not found. Even if some of the
.dat file inside the same directory, i am not able to read the content also.
But if I change the extension to .html, it can successfully be read.
I am woundering where have I set it wrong.
Can any one help?
Thanks!
Load the IIS Manager, right click your website, click properties, go to the
HTTP Headers tab, at the bottom you will see something about Mime types.
Click the button to add a Mime type, then add the extension ".pl" and the
content type of text. Do the same for .dat, and see if it works.
--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.
"BY" <b...@by.com> wrote in message
news:O$sMJ0pXD...@tk2msftngp13.phx.gbl...
--
Brian
"Jonathan Maltz [MS-MVP]" <jma...@mvps.org> wrote in message
news:OxSGKGtX...@tk2msftngp13.phx.gbl...
That's the build I'm running as well
--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.
"BY" <b...@by.com> wrote in message
news:%23MNjDtt...@TK2MSFTNGP12.phx.gbl...
Thanks for your help anyway.
--
Happy Everyday
No trouble
"Jonathan Maltz [MS-MVP]" <jma...@mvps.org> wrote in message
news:%23wK0oMu...@TK2MSFTNGP09.phx.gbl...
--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.
"Be Yond" <n...@no.com> wrote in message
news:OSe7qt0X...@tk2msftngp13.phx.gbl...
If I set the system just as you said, leave the files that need to be
editted in a directory that isn't accessible via the web, does it mean apart
from the f:\Inetpub\wwwroot\...?
Isn't it I need to specific the absolute path inside the scirpt file?
THanks so much
--
Happy Everyday
No trouble
"Jonathan Maltz [MS-MVP]" <jma...@mvps.org> wrote in message
news:ec%23An20X...@TK2MSFTNGP09.phx.gbl...
--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.
"Be Yond" <n...@no.com> wrote in message
news:egYsGG1X...@TK2MSFTNGP10.phx.gbl...
Happy Everyday
No trouble
"Jonathan Maltz [MS-MVP]" <jma...@mvps.org> wrote in message
news:uuUv4Q1X...@TK2MSFTNGP12.phx.gbl...
--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.
"Be Yond" <n...@no.com> wrote in message
news:OzacP55X...@TK2MSFTNGP10.phx.gbl...
Will these kind of problem exist if I use apache?
Thanks.
--
BY
"Jonathan Maltz [MS-MVP]" <jma...@mvps.org> wrote in message
news:OgRUlN6X...@TK2MSFTNGP09.phx.gbl...
I haven't touched Apache in well over a year (and that was with Linux -
Apache on Windows I haven't touched in much longer) so I couldn't tell you
--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.
"BY" <B...@ys.com> wrote in message
news:eHZBXw7X...@TK2MSFTNGP12.phx.gbl...
--
Happy Everyday
No trouble
"Jonathan Maltz [MS-MVP]" <jma...@mvps.org> wrote in message
news:%23dGtVE8...@TK2MSFTNGP09.phx.gbl...
--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.
"Be Yond" <n...@no.com> wrote in message
news:eUZnPabY...@TK2MSFTNGP12.phx.gbl...
F:.
│ iisstart.htm
│ pagerror.gif
│
└─cgi-bin
├─gamble
gamble.pl
stat.dat
winNum.dat
I am running the gamble.pl.
I try to use <*> in the script to list the file of that folder, in UNIX, the
gamble.pl, stat.dat and winNum.dat should be shown. However, in IIS, it
shows only the gamble folder.
I used absolute path for file handle in the past. But now, after discovering
this, I used "gamble//stat.dat" to access the file and it runs smoothly.
That's what I want to say.
--
Happy Everyday
No trouble
"Jonathan Maltz [MS-MVP]" <jma...@mvps.org> wrote in message
news:eGTnPdbY...@TK2MSFTNGP09.phx.gbl...
--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.
"Be Yond" <n...@no.com> wrote in message
news:enSHPffY...@TK2MSFTNGP12.phx.gbl...