FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Save file on local floppy (perl)

 


tester9
Hi, I am from germany. So I am sorry for all the mistakes I will write Smile

And here is my problem: I have created a website in perl. Now I want to save a file (something like a cookie) on a local floppy (my harddisk) in the windows folder (C:/Windows/Temp/cookie.txt). The code, I have written looks like so:

open (DATEI,">C:/Windows/Temp/cookie.txt");
foreach my $i (@daten)
{
print DATEI $i;
}
close DATEI;

I have tested it on my local Apache, and there it works!?
But if I start the script at the net (it works with no errors) it does not create the file. Also if i create the file manually, its not beeing written...
My question is: how can I save a file on a local harddisk from the internet?

And please: do post my mistakes, a better english will help communicating in future, i am sure! Laughing
tester9
Isn't there anbody who knows an answer concerning my problem?

It was:

Hi, I am from germany. So I am sorry for all the mistakes I will write Smile

And here is my problem: I have created a website in perl. Now I want to save a file (something like a cookie) on a local floppy (my harddisk) in the windows folder (C:/Windows/Temp/cookie.txt). The code, I have written looks like so:

open (DATEI,">C:/Windows/Temp/cookie.txt");
foreach my $i (@daten)
{
print DATEI $i;
}
close DATEI;

I have tested it on my local Apache, and there it works!?
But if I start the script at the net (it works with no errors) it does not create the file. Also if i create the file manually, its not beeing written...
My question is: how can I save a file on a local harddisk from the internet?

And please: do post my mistakes, a better english will help communicating in future, i am sure! Laughing
Bondings
I don't think writing to a file on your hard disk is possible from the internet, definately not like you are currently doing it.
tester9
Thx a lot for your helpings...
I have found an answer myself- There IS a soloution to write on hard disk using a binary found in cpan.org!
See ya
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.