in reply to File Open Problem

Your code suggests you're running this program as a CGI (i.e. from a webserver). If so, does the webserver run as a user with sufficient permissions to open the file, and is it logged in to the remote server?

Also, this looks like a windows shared directory, which has some issues IIRC; you might have better luck mounting the remote dir as a drive and then accessing the file as "G:/finder/users.txt".