Hi, Guys:

   This may be a very dumb question, but I am having the problem of putting the 
variables on the url through Perl to get it to execute the following mkdir 
command.

#!/usr/bin/perl -w

use CGI qw(:standard -debug);
use CGI::Carp qw(fatalsToBrowser);

print "Content-type: text/html\n\n";

$id = param('id');
$filename = "/var/www/html/hello";
if (-e $filename)
{
      mkdir("/var/www/html/hello/$id", 0755) || print "Cannot create directory";
     mkdir("/var/www/html/hello/$id/test", 0755) || print "Cannot create 
directory";
    mkdir("/var/www/html/hello/$id/test2", 0755) || print "Cannot create 
directory";
 }

else {

    &createFile;
}

Basically, everything is working fine, except the fact that I have to do this 
through the Command line by pushing the value pairs to get my perl script to do 
things. I tried using http://192.168.10.63/file_linux.php?id=123, but it does 
not feed the id into the appropriate variable of where I want it to go to. Does 
anyone on the list know what is the simplest way for me to feed the variable 
into the url without extra hassle?

Thanks to anyone who can help.

Alice
======================================================
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
[EMAIL PROTECTED]

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to