accessing files

Discussion in 'HTML / PHP / JavaScript / CSS' started by FEGator, Jul 10, 2003.

  1. I wrote a perl/CGI program that opens a file and performs a search function, returning all entries that contain the specified word. I put it in the cgi-bin. I keep getting an error though that the file can't be opened. I used open(FH, "/filename") to access the files which I had put in the cgi-bin also. I was wondering where I need to put the files in order to access them or what the current directory is for programs located in the cgi-bin. If anyone could help out it would be greatly appreciated.

    Thanks,
    Stacy
     

Share This Page