FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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
Related topics
what can be done to save the local rock music scenes?
751 Useful Windows XP Files
Looking for easy FormMail Script
Perl CGI 500 Internal Server Error
Running a Perl script in the background
PERL problems
Perl how to encrypt your text file contents with Perl
how can i find the perl location?
cgi-bin help
How to password protect windows directories?
im installing a perl script in my website and..
Location of perl??
Multiple File Extentions in C#
How do I use perl and where do I place scripts?
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

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