Announcement

Collapse
No announcement yet.

Making Perl "Config" Files... windows/apache

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Making Perl "Config" Files... windows/apache

    Alright, I've been looking for about an hour now on google for this answer and am getting a little frustrated. Here's the question:

    In *nix, you can simply do a:

    use "config.pm";

    And if it's in the same directory as the rest of your files, it wont complain, and use the file with all my local/global variables. I want to do the same thing for windows, using apache on windows for a intranet box, however i keep returning errors on there.

    Anyone know how to make an "include" or "config" file in active state perl/windows/apache?

    Thanks
    When you draw first blood you can't stop this fight
    For my own piece of mind - I'm going to
    Tear your fucking eyes out
    Rip your fucking flesh off
    Beat you till you're just a fucking lifeless carcass
    Fuck you and your progress
    Watch me fucking regress
    You were meant to take the fall - now you're nothing
    Payback's a bitch motherfucker!

    Slayer - Payback

  • #2
    Originally posted by IcEbLAze

    Anyone know how to make an "include" or "config" file in active state perl/windows/apache?

    Thanks
    All you need to do is add a line in the 'httpd.conf' that says:

    Code:
    Include myNewConfigFile.conf
    This will include the other file. If it is not in the directory that your 'httpd.conf' is in you can specify the absolute position:

    Code:
    Include C:/data/Apache/conf/myNewConfigFile.conf
    If you want to use this as a complete replacement for the 'httpd.conf' then make sure that the Include line is the only one in 'httpd.conf'

    I hope this helps.
    Jim

    Nothing to do, execpt hold on to nothing!!!

    Comment


    • #3
      Originally posted by alienSkull
      All you need to do is add a line in the 'httpd.conf' that says:

      Code:
      Include myNewConfigFile.conf
      I hope this helps.
      Hm, well it accepts .conf extensions, however it wont accept .pl or pm extensions. I think this is a finger in the right direction, however maybe i need to clarify a little more:

      the config file i want to include is to put all my variables from my perl scripts. i.e.

      my $blah = "foo";
      our $blahblah = "foofoo";

      basically a central "configuration" file for my program so i can change the variables all in one file.

      That's pretty much the gist of the file i want to be "included"; and when i run my perl scripts over apache to see. ive tried:

      do "config.pm";
      use "config.pm";
      require "config.pm";

      etc.

      I once had the server complain that it wasnt in the right path, so i tried putting the file into the path where the other module files are located, then i got an error saying that it couldnt open the file, however the permissions are set to 777.

      oh windows, why must you frustrate me :(

      Thanks for your help so far!
      When you draw first blood you can't stop this fight
      For my own piece of mind - I'm going to
      Tear your fucking eyes out
      Rip your fucking flesh off
      Beat you till you're just a fucking lifeless carcass
      Fuck you and your progress
      Watch me fucking regress
      You were meant to take the fall - now you're nothing
      Payback's a bitch motherfucker!

      Slayer - Payback

      Comment

      Working...
      X