senior moment! i forgot what i was doing. i've already got the restore working so ignore what i said in last message. $db_file contains the complete path and filename that exists. i'm reading the cfg line by line to find the line that has $db_file_name = blah blah. once found i'm stripping out "$db_file_name = ", the quotation marks, and all spaces. i'm substituting the actual data path or script path for the related variable. so the final $db_file is the correct path and filename.
there is a sub that opens and displays the contents of the file and i put in the link to it to be sure it's actually opening the correct file.
here's the link i'm using to test that it's opening the file:
note file_data=$db_file. here's excerpt of the sub that displays the file data:
open (FILEVIEW, $view_file_data) or &cgierr ("unable to open: $view_file_data.\nReason: $!");
i.e. i'm still having the problem!
there is a sub that opens and displays the contents of the file and i put in the link to it to be sure it's actually opening the correct file.
here's the link i'm using to test that it's opening the file:
Code:
a href="$db_script_url?db=$db_setup&admin_view_file=1&uid=$db_uid&file_data=$db_file"Code:
$view_file_data = $in{file_data}; open (FILEVIEW, $view_file_data) or &cgierr ("unable to open: $view_file_data.\nReason: $!");
i.e. i'm still having the problem!