Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

How do I create a new directory with a cgi script on my webserver?

by Anonymous Monk
on Mar 12, 2000 at 08:46 UTC ( [id://5246]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

  • Comment on How do I create a new directory with a cgi script on my webserver?

Replies are listed 'Best First'.
Re: How do I create a new directory with a cgi script on my webserver?
by Dominus (Parson) on Mar 17, 2000 at 03:36 UTC

    You use the mkdir function to make a new directory.

    If it's not working for you, you probably have one of several common problems: You aren't using the correct path, because your CGI program is not running in the place that you think it is, or perhaps your program doesn't havethe permissions you expect it to.

    For a list of problems of this type and how to diagnose or correct them, see this page

Re: How do I create a new directory with a cgi script on my webserver?
by fraterm (Scribe) on Jun 10, 2005 at 02:02 UTC
    The File::Path module is another helpful tool in the programmers arsenal to skin such a cat. Remember to use oct() in conjunction with your mkpath() if you have a custom mask you want to use that is set in a scalar value elsewhere, lest you get oddly (perhaps inaccessibly) permissioned directories as a result.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://5246]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (None)
    As of 2024-04-25 01:03 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found