View Full Version : cgi question
not-so-new to html
06-02-2000, 09:38 PM
I want to put an order form on my site, so I bought a book to help me. The problem is, the book has scripts for a UNIX server, and the server I use is Windows 98 or NT, I'm not sure which. Is this going to create a problem if I use the books scripts?
Jacob
06-02-2000, 11:26 PM
Dear Sir,
You will run into a lot of problems trying to debug a script meant for a unix environment to work on a windows server. Although it is possible, I do-not recommend it.
One big difference with perl on a windows machine is the way the paths are handled. In a unix script the paths are somthing like:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>
$path = "/usr/home/path";
[/code]
Where as in windows the path needs to look like:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>
$path = "c:\\windows\\system";
[/code]
And there are a lot more things that are different for windows.
I suggest reading some tutorials in programming in a windows environment if thats where you plan on doing a lot of your work. Otherwise, I suggest getting access to a unix shell somewhere. Which may be the easiest, as a lot of books are written for unix servers.
Hope this helps!
------------------
Jacob Wheeler
Co-Founder / Web Engineer
Big Resources Network
jacob@bigresources.net
ICQ: 390147
Henrik
09-03-2000, 03:50 AM
Ok, A little late but whatever.
Perl is almost 100% platform independent. Basicly, the only thing that's not platform independant is filesystem functions. However, some of the external programs(such as smpt-servers) used in perl-scripts for UNIX might not even exists for windows. That could be a major rewriting issue. But for basic perl code, it should be about 99% platform independant, since perl is designed to be used on many different platforms.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.