Teen Programmers Unite  
 

 

Return to forum top

perlscript?

Posted by have_dinner [send private reply] at October 20, 2001, 08:02:42 AM

hey guys,
waht's with perlscript? and vbscript? and stuff?? like, you can apparently put them in web pages.. but how??? and if you can embed the effectiveness of perl into a webpage... is that true?? anyoen able to clear this up?

Posted by Cobbs [send private reply] at October 20, 2001, 01:41:53 PM

Well, i know there's something called Mason and that lets you use perl in such a way as you would use php or asp.

Posted by gian [send private reply] at October 20, 2001, 03:00:21 PM

vbscript is an incarnation of the visual basic language intoa web language.

Posted by taubz [send private reply] at October 20, 2001, 05:33:59 PM

All of those are client-side scripting languages. However, only javascript is supported by all normal browsers. You use the SCRIPT tag in HTML files.

Perlscript is only available if you have it installed on your Win32 computer. It's from Activestate Perl, AFAIK.

What Cobbs is referring to is probably server-side. In that case, you need a web server that supports it.

Also, VB script isn't just a web lanuage. It has the power to be a good replacement for DOS batch... but Microsoft never bothered to develop it that way. It's run through the Windows Scripting Host, which is independent of Internet Explorer, more or less.

- taubz

Posted by grandsnafu [send private reply] at October 20, 2001, 08:08:43 PM

Any language that allows you to make pop-up advertisement windows should be abolished (or shot at by a firing squad).

Posted by have_dinner [send private reply] at October 21, 2001, 05:34:42 AM

php isn't client-side is it??? cos i'd be f***ed if i have been able to make one and view it... all i get is a blank page... asp... what's asp?? i know what it is, but is it client-side?

Posted by taubz [send private reply] at October 21, 2001, 11:14:14 AM

PHP and ASP are both server-side. They're really both the same thing, just one is made by Microsoft (ASP)... and maybe their syntaxes are different. But same purpose.

Things that end in -script are client side, I guess.

- taubz

Posted by gian [send private reply] at October 21, 2001, 05:21:59 PM

Ummmm, taubz.... vbscript _can_ be server side, and so can javascript, in the form of asp.

There are many, many languages that allow you to do exactly what PHP and ASP can, each with their own strengths and weaknesses.

Coldfusion - Excellent Db implementation.
PHP - Nice syntax
ASP - No idea what this is good for...
PERL - Powerful

You see? The list goes on.

(NB: The ones I listed are server side)

Posted by sphinX [send private reply] at October 21, 2001, 10:07:48 PM

have_dinner: there's a simple solution to that problem when developing with php, just setup a web server+php on the local machine -- i find apache+php+mysql is an excellent combination.

Posted by gian [send private reply] at October 22, 2001, 02:37:49 AM

True, true.

Posted by Cobbs [send private reply] at October 23, 2001, 04:48:08 PM

and if you have windows, get PHP Triad, it will install it all for you! It's somewhere on sourceforge...

Posted by have_dinner [send private reply] at October 23, 2001, 07:38:33 PM

omnihttpd i have running... it works goodly.. :)

Posted by sphinX [send private reply] at October 24, 2001, 01:53:55 AM

PHP Triad annoyed me, I found it easier to install things myself.

Posted by have_dinner [send private reply] at October 24, 2001, 07:43:49 AM

hey, if you run linux, and make the perl files executable and all, and run the web page... do you still need the websserver running?? or will it just process and return?

Posted by taubz [send private reply] at October 24, 2001, 02:46:45 PM

/me is confused. What does "run" a web page mean? Clearly if the webserver is not running you can't use a web browser to access web pages.... cause that's what the webserver does.

- taubz

Posted by gian [send private reply] at October 24, 2001, 09:36:50 PM

Taubz: #!/bin/perl I think he means to run it from the command line.

Posted by sphinX [send private reply] at October 29, 2001, 04:35:11 AM

well, perl scripts you can definately run from the command line, but why? you'd get all your html code as output, not a web page...not what i call an effective way of web development

Posted by gian [send private reply] at October 30, 2001, 09:19:13 PM

No.... I believe that he means that you can use it in place of shell scripts...

Posted by have_dinner [send private reply] at November 06, 2001, 09:12:30 PM

what i mean is... on linux, do you need the webserver running... don't worry though... i'll figure it out

Posted by gian [send private reply] at November 06, 2001, 10:40:18 PM

Simply: Yes, you do.

Complexly: No, you can get around it, but I have no idea why anyone would want to. Use plain old apache, leave it running. Simple.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.