Thursty
07-02-2007, 09:47 PM
Quick question from a newbie to HM... :o
Its been a long time since I have used Perl scripts & cgi, but it is kind of like riding a bike. I have written a couple web pages for collecting some basic information, my question is when it goes to write in the OUTFILE portion of my Perl scripts. They all seem to be writing to the cgi-bin. How can I change the location to another directory? IE a data directory
currently this is what I have been using-
open (OUTFILE, ">>xyz.dat");
HM says the The path to my site on the server would be:
/home/username/
Where "username" would be your username assigned when you signed up with Hostmonster.
I have tried-
open (OUTFILE, ">>/home/~mydomain/data/xyz.dat");
with no luck. :confused:
Any insight would be appreciated!
Thanks in advance!
-Thursty
Its been a long time since I have used Perl scripts & cgi, but it is kind of like riding a bike. I have written a couple web pages for collecting some basic information, my question is when it goes to write in the OUTFILE portion of my Perl scripts. They all seem to be writing to the cgi-bin. How can I change the location to another directory? IE a data directory
currently this is what I have been using-
open (OUTFILE, ">>xyz.dat");
HM says the The path to my site on the server would be:
/home/username/
Where "username" would be your username assigned when you signed up with Hostmonster.
I have tried-
open (OUTFILE, ">>/home/~mydomain/data/xyz.dat");
with no luck. :confused:
Any insight would be appreciated!
Thanks in advance!
-Thursty