LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Uploading files to webserver in perl ? (https://www.linuxquestions.org/questions/linux-software-2/uploading-files-to-webserver-in-perl-287263/)

zulfilee 02-07-2005 08:39 AM

Uploading files to webserver in perl ?
 
Server : Apache , OS -FC3.

I need a simple perl script that will upload files to my webserver.

I tried copying to tmp dir and moving but was not successful.Says permission denied

Any help would be great

Cheers
Z

megaspaz 02-07-2005 10:02 AM

why use perl at all for this? if you just need to copy over files from one computer to the other, you could just use scp. you can use perl to run the scp command if you want. if you really need to do something in perl and calling a scp isn't an option for you, you may want to look into the Net::FTP module from cpan. I don't see an install module, for this so you'll have to find the correct Net folder in /usr/lib/perlX (X probably is 5) and create an folder called FTP in there. copy the source to that FTP directory. then go ahead and write your perl code using all the FTP stuff you want.

zulfilee 02-07-2005 11:07 PM

Actually I am running a Apache webserver and I am developing a web site for managing software releases.

I`ve used perl for this.

Now when a user wants to upload a file to the web server I have to create a directory and put the file there

I need a perl script for this.
I tried using File::Copy and copy function but it is not working


Cheers
Z


All times are GMT -5. The time now is 06:23 PM.