|
-
Jun 22nd, 2001, 03:37 PM
#1
Thread Starter
PowerPoster
micro$oft personal web server
I am using pws to create and run asp pages on my server but i have a question about cgi scripts.
PWS creates a directory called "cgi-bin" in its main directory.
I would like to know that can i create cgi web pages and check them on my server using pws if yes then how.
-
Jun 22nd, 2001, 04:10 PM
#2
Lively Member
You need to set the correct properties to the directory, to make it able to execute scripts in it.
I haven't tried this personally (I'm using IIS) but it should work.
One thing about PWS... if you're running a public server... Don't do that with PWS.
Write a . after the .asp-file and you'll get the source-code, and that's not always good 
For example:
http://localhost/test.asp.
gives you the full code of test.asp
I don't know i MS have changed it in a patch or something like that, but in 4.0 there was this bug/security hole.
-
Jun 22nd, 2001, 05:40 PM
#3
Thread Starter
PowerPoster
what?
Yes, I have pws version 4 and i have not downloaded the patch. I am using windows 98 so i cannot use IIS. but let us say if i have an asp page like this:
http://localhost/default.asp
then when somebody views the source code, will it show all the asp source code?
And back to my question, is it possible to execute cgi script (perl) using pws. If i want to program in cgi then which programming language do I use (perl, php, etc,.)
Thanks!
-
Jun 22nd, 2001, 05:42 PM
#4
Thread Starter
PowerPoster
yes another thing
Yes i tried that and it really shows you the source code. That sucks... Is it fixed the patch because i want to make my own web server on windows 98 (a public one)
-
Jun 22nd, 2001, 08:54 PM
#5
Hyperactive Member
CGI bin
Microsoft fixed that period bug a long time ago.
And, if you are using PWS to practice ASp you need not worry about your source being seen.
About the CGI bin, yes you can have there your own scripts or CGI programs but you know what? ASP gives you a easier and more effective way to program so that you do not really need CGI programs anymore. At least that is my opinion.
Top Tip: You can make friends and impress the opposite sex at geeky cocktail parties by saying "DB" instead of database. - Karl Moore
-
Jun 22nd, 2001, 09:56 PM
#6
Thread Starter
PowerPoster
yes i agree with you
Yes, ASP is a lot easier to program with because if you know visual basic then it becomes a lot easier. But because windows is becoming a crap now and you cannot program in asp in linux or any other operating system so if i know cgi programming then i can program in linux and other operating systems.
-
Jun 23rd, 2001, 12:21 AM
#7
Frenzied Member
Um.. this may or may not be an issue for you but.. PWS limits connections to 10 at a time. Once you reach 10 sessions your site would be effectively closed for new connections. It is not intended for use as a full blown web server. It's just intended to allow you to test and write code and for like a small (very) family access type web site.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jun 23rd, 2001, 04:42 PM
#8
Thread Starter
PowerPoster
Then what?
Then what do i use to create my own web server which allows the users to have unlimited access to my web server -- if i am running windows 98
-
Jun 23rd, 2001, 11:11 PM
#9
Frenzied Member
You don't. Windows98 is not designed to be used as a server. It will work fine for a few users at a time, but it doesn't take long to use up 10 connections.
Even Windows 2000 Professional has the same limitation on IIS. The only way to do it with unlimited connections (or at least unlimited based on your bandwidth and processor) is to install Windows Server (NT or 2000)
Strickly ASP speaking of course.. there are other products on the market that will act as a web server but they will not process ASP server side script.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jun 24th, 2001, 12:07 AM
#10
Thread Starter
PowerPoster
OK
Then is there any way to make a web server in windows 98 (SO which web programming language and server do i use for that eg: cgi)
-
Jun 24th, 2001, 04:11 PM
#11
Frenzied Member
I don't want to mislead you here. You can use PWS as your web server and it will work just fine. You just won't be able to have more than 10 users connected at one time. (That is 10 sessions active at a time..) If you use up all the sessions, you have to wait until they time out before any other connections are allowed. Like I said before it may or may not be an issue. If your planning a high traffic site, plan on purchasing (or otherwise obtaining) a copy of W2K Server.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jun 25th, 2001, 06:19 AM
#12
Black Cat
Apache should work on Win98, and you can download it for free.
If you want to use Perl on PWS, I'd suggest downloading ActivePerl from www.activestate.com . It'll install Perlscript for ASP, or depending on the file extension, you can use Perl for CGI or with ISAPI. You could also try PHP, which runs as CGI on PWS/IIS, free download from www.php.net .
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jun 25th, 2001, 11:14 AM
#13
Thread Starter
PowerPoster
OK, I got win2K pro
I got that but could not get win2k server so if I use apache with cgi(
By the way, are php and perl different programming languages used in cgi?
)
then will I be able to have more then 10 like high treffic on my web server?
-
Jun 25th, 2001, 11:47 AM
#14
Frenzied Member
You have lots of choices for a site using CGI or Perl. You don't have that much of a choice for one using ASP.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jun 25th, 2001, 11:54 AM
#15
Thread Starter
PowerPoster
So finally
So finally, Is is good if I:
--> Use the apache web server
--> Use Php as my CGI scripting language
-
Jun 25th, 2001, 01:33 PM
#16
Black Cat
You could use both Perl and PHP if you wanted to. CGI is a technology, not a language.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|