I am new to xampp and am trying to set up a website for testing on a local xampp server. Up till now the site has been designed locally and uploaded to my webhost for testing.
But now I want to start adding some dynamic content and do testing locally. I have set up xampp on a Windows xp platform. I have configured my site to work via an alias in http.conf (the site is not in the /htdocs directory), and everything works except for my formmail.
When submitting the formmail Windows wants to download the .cgi script intstead of the server executing it. I assume this is because my script is in a /cgi-bin/ in my site directory and not in the proper xampp directory , correct? Having the script in my own /cgi-bin is how it works on my webhost server.
How can I set up the formmail and cgi script to work on the local server and still work when I upload to the remote server?
Also , the shebang line in the script is set up for linux (usr/bin/perl, on the remote) , how can I make it work in Windows without having to change the shebang line each time I upload to my webhost?
Thanks,
Joe.