CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Im tired!!!!



Sep 20, 2001, 11:45 AM

Post #1 of 2 (879 views)
Im tired!!!! Can't Post

Im tired, I made a script that uploads files via http, I know my lines of code are ok, well I compare them with a script that somebody made before....
My problem is that the script uploads a zero byte file to the web server.... I cannot understand why this happends!!! .
I use this routine:
open (FILE, ">/www/dir/new.txt");
while (bytes = read($PcPathToFile,$data,1024)){
print FILE $data;
chmod 0777, "/www/dir/new.txt";
Please help me folks, I cannot find the error!
I chmod my "dir" 777
Thanx in advance



Sep 26, 2001, 12:59 AM

Post #2 of 2 (844 views)
Re: Im tired!!!! [In reply to] Can't Post

Maybe it's a good idea to the some standard modules? There are a lot of things to mention you about with interprocess comminucation (perldoc perlipc).


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives