
adolfo
Novice
Sep 20, 2001, 11:45 AM
Post #1 of 2
(343 views)
|
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 ~Adolfo~
|