Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't open a file into CGI STDIN

Status
Not open for further replies.

blackcat99

Programmer
Feb 13, 2005
7
CA
Hi, I'm reposting this... since I've narrowed it down to being unable to open a file into STDIN for CGI

eg. open(STDIN,"$data_file") fails

...this statement works on my local computer server BUT not my web server for some reason??

its being issued immediately after $data_file is successfully uploaded/ created using mega-upload 1.45.

I desperately need something that works to upload large files from a client browser to my server

see: CGI open of tmpfile: Permission denied thread

if you can help - I'd really appreciate it... thanks
 
It could be a permission problem. Make sure the file and the subdir where the file sits are accessable to everyone.
 
No, I'm able to open the file using a regular filehandle (FH) and print a copy of the data.

.... just can't open the file into STDIN (which is needed to access the data via CGI.pm)

is access to STDIN controlled by the shell??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top