chitownclone
Programmer
This is a simple issue, but I can't seem to figure out what I am doing wrong. I build an administration page that let's my client add new Loan Officer contact information. The admin program automatically generates an updated 'contact_us.html' page.
My problem is that I can only get the program to write a new 'contact_us.html' file to the cgi-bin directory. Its works, I just want the file in the main directory. How do I get a program in the cgi-bin to write a file to the main diretory?
open (DATA, ">C:/Websites/sitename.com/contactus.html");
print DATA "$variables\n";
Close (DATA);
I've tried chmod and.....
opendir(CONTACT, "C:/Websites/sitename.com/contact")...
but its not working.
Thanks for the assistance.
My problem is that I can only get the program to write a new 'contact_us.html' file to the cgi-bin directory. Its works, I just want the file in the main directory. How do I get a program in the cgi-bin to write a file to the main diretory?
open (DATA, ">C:/Websites/sitename.com/contactus.html");
print DATA "$variables\n";
Close (DATA);
I've tried chmod and.....
opendir(CONTACT, "C:/Websites/sitename.com/contact")...
but its not working.
Thanks for the assistance.