codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  How to change the location?  choon at 06:52 on Monday, October 09, 2006
 

Hi, I'm newbie in Perl and trying an online testing game by using freecode.

I have installed Active PERL in windows XP IIS and no problem to run "Hello World" testing script. The ActivePerl has created C:\PERL after installed.

I have copy an online testing program in C:\PerlTest and all the html and *.pl are in this directory.

Below is part of contents of test.pl to process the multiple choice in test.htm.

$answerFile = "/usr/www/users/mhughes/perltest/answers.txt";
$logFile = "/usr/www/users/mhughes/perltest/testlog.htm";
$logFileUrl = "http://www.flashlightbrown.com/perltest/testlog.htm";
$testUrl = "http://www.flashlightbrown.com/perltest/test.htm";
$graphFile = "/usr/www/users/mhughes/perltest/graphlog.htm";
$graphFileUrl = "http://www.flashlightbrown.com/perltest/graphlog.htm";


My question is how to change the location path to run my online test?

1) Ex: "/usr/www/users/mhughes/perltest/answers.txt" change to ?

2) http://www.flashlightbrown.com/perltest/graphlog.htm to http://localhost/perltest/graphlog.htm ?

3) Is that compulsary to create a folder call "cgi-bin?

4) Must I name the cgi file to XXX.cgi?

I would be appreciated if someone could assist me on this simple problem.

Tq.

Regards,

Choon





  Re: How to change the location?  S_Flex at 11:48 on Monday, October 09, 2006
 

I would reccommend to use Perl with Apache.
This site has a download that will install Perl light, Apache, SQL and many other server software stuff.
http://www.apachefriends.org/en/index.html
Stick with the active Perl you first had becase it should have more modules, if you want to make sure your not running the Perl vesion XAMPP has in it just reinstall the first Active Perl version you had.

All you really need at this point is Apache running there are other program in that install you'll probly never use.

With XAMPP the main directory is C:\Program Files\xampp
your cgi-bin is C:\Program Files\xampp\cgi-bin
The server Home directory is C:\Program Files\xampp\htdocs

This may help you without having to do the above.

Windows Perl Paths are like this.
what windows uses ---> C:\PerlTest
what Perl use in windows ---> C:/PerlTest
All Back slashs becomes a forword slash

Sorry I dont know how to make IIS work with a cgi-bin, But I bet there is a help file for in some where.
if you need more help just ask.

Flex








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Script won`t play in Internet Explorer
•  How to write into the STDIN?
•  Parsing XML with Ajax & PHP.. more of a JS question really
•  Re: Help: Trouble with z-Index and SELECT lists
•  enable listbox by selecting the radio button and redirect the page based on the selected index
•  Problem creating the xml from blog...
•  mouse click coordinates on a quicktime movie
•  Help : How to Sign Java Scipt....
•  check for folder on another server


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2006