Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

1 more ?...how can i run the cgi's on windows platform?

Status
Not open for further replies.

spewn

Programmer
May 7, 2001
1,034
right now i've been uploading everything to my server and testing that way...but i want to go offline...help?

 
its easy peasy!

Firstly you need to install perl on your offline machine, then you need to hard wire any variables that you get from your form in your script (i.e. if you get fields from a form in html that you send to you script, without the html form you'll need to set those variables up in your perl script manually). then just run it from the command line..

i hope that helps and makes sense to you.. If you need any more help, just email me at heath@ttwin.com :) /-------------------------------------
| I always have been, and always will |
| be, a newbie :) |
\-------------------------------------
 
This is truely a CGI question. At some convinient point, this should be moved to the CGI forum. But, since the post is here already.....

Another approach,

Install Perl on your local box.
Install Apache on your local box ( - look in the 'httpd.conf' file for the locations of your 'server root' and 'scriptalias'
directories. The server_root is where you put dirs containing static html and
the scriptalias is where you put your cgi code. If you have trouble getting the CGI
stuff to work, check the apache docs. There should be a cgi howto at -
/Program Files/Apache Proup/Apache/htdocs/manual/howto/cgi.html or
some similar path. It addresses how to get CGI stuff going.

Get that much working. There is a faq452-653 in the CGI forum with some very simple examples.

Then, you can either write your Perl/CGI code to know pay attention to which host it is on, or, just write your code to run on your local box and, once it works, tweak the paths and such and move it to the server.

It is all free and waiting for you to learn how.

'just my 3 cents...


keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top