|
-
Jun 24th, 2001, 12:05 AM
#1
Thread Starter
PowerPoster
starting php scripts!
I am new to programming cgi and I am using windows 98. First I would like to know that which programming language do i use the create server side scripts like cgi OR asp?
. Which programming language do i use to run and write the cgi scripts like php, perl, etc.,?
. Let us say that i want to run a php web page on windows 98 then what do i need and who do i run thatt on my windows 98 computer?
. And lastly which programming language the the most sercure one?
Thnaks a lot!
-
Jun 24th, 2001, 10:50 AM
#2
Which programming language do i use to run and write the cgi scripts like php, perl, etc.,?
not sure I follow. you can't use php, perl, asp to write cgi. cgi is almost the same as perl. in fact you need perl installed to run cgi.
Let us say that i want to run a php web page on windows 98 then what do i need and who do i run thatt on my windows 98 computer?
ok this is fun, I am doinf it right know. first you need perl on your win98, goto activeperl.com and download the latest version then go to Apache and download the win32 version from there. you don't have to use Apache, as there are other ones that will work, can't remember the names at this moment. then install both of them and your on your way. read very closely to the documentation for Apache to get it setup on your computer. it is not very hard though. you could also download PHP and install it for Apache, that is really easy. goto php.net and download it from there. then you will have to change some settings in Apache to get it to run php.
And lastly which programming language the the most sercure one
that would have to be up to you. I have heard (rumor) that ASP is easy to hack but I don't have any proof, I think it is really user preference.
-
Jun 24th, 2001, 10:36 PM
#3
Thread Starter
PowerPoster
Thanks
Thanks a lot, I will try that!
-
Jun 25th, 2001, 08:32 PM
#4
Thread Starter
PowerPoster
so
so i dont need php to run cgi scripts.
And what scripting language people use to make search engines, guest books, counter etc.,?
Can you please tell me how to install perl because i dont know how to configure in with apache
Thanks alot
-
Jun 25th, 2001, 09:36 PM
#5
no you don't need php to run cgi. all you need is perl. I will check when I get home and tell you what you need to change.
as far as writing counters, guestbooks, etc that could be done in anything, cgi, perl, php, asp. as far as search engines like yahoo, I think those are compiled programs. you can however make search engines to search your site with any of the scripts above.
-
Jun 26th, 2001, 01:06 PM
#6
ok first you need to change this line
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
to point to the directory you will be using to run teh scripts.
then on this line
This should be changed to whatever you set DocumentRoot to.
<Directory "C:/Program Files/Apache Group/Apache/htdocs">
then on this line
# To use CGI scripts:
AddHandler cgi-script .cgi .pl
you need to uncomment if it is commented, just delete the # sign
then in your scripts you need to have this on the first line
#!c:/perl/perl
or what ever directory you installed the perl module in.
I think that was it, let me know if you have anymore problems
-
Jun 26th, 2001, 06:06 PM
#7
Thread Starter
PowerPoster
hi I found a web site!
I found a web site that tells me exactly what i need - installing php, perl, mysql, and making it possible to run with apache. I tested my first perl script yesterday!
If you want to check it out then here is the web page:
http://www.lameindustries.org/tutori...s/apache.shtml
Thanks a lot for comming with me so far!
-
Jun 26th, 2001, 06:09 PM
#8
Banned
CGI is an interface, as the name suggests. Perl is the most common language for making use of CGI, but any program with access to stdin/stdout can be used (C++, Perl, VB, Pascal)
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
|