Ok, in my small bit of trining in perl scripts, I have failed to discover how I can create and open files in a different path than the directory the script is in. I need this because I want to create html pages witha cgi script and save them to my documents directory f my server. This should be simple to do, but I don't know how, and it will be very helpful.
You need to make sure that the directories are read/writeable. ie. CHMOD the directories so the script can write to them.
ok, but then how do I reference a different directory is it the "../" to move up the directory structure?
It probably would have been quicker to simply test it yourself than wait for an answer here.
is it the "../" to move up the directory structure
But the answer is yes.
open FH, '../file' or die $!;
not related, but I don't want to start a new thread
Alright my mission is to create a script that will generate a calendar based on data entered into a form. My next problem is how can I create a page that can create a new form for each month. Is there a time function that would let me determine what month it is? Or would it be better to just begin with one calendar and from there define all the months.
Is there a time function that would let me determine what month it is?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)