Forums Index > Mewsoft Products > Searchawy > .cgi file extensions
Focusman01 First Post Posted on: 07-03-10 05:59 PM
.cgi file extensions

Hello,

I read in the instalation instructions Open all *.cgi files only with any text editor and change the first line only in each file to point to perl
location on your server. which is #!/usr/bin/perl, but yet
#!C:\perl\bin\perl.exe also appears beanth it. It's the same with all the .cgi files.

Example below of the first two lines in each .cgi file.

#!/usr/bin/perl
#!C:\perl\bin\perl.exe

Seem like this is pointing to two different perl locations and would cause confusion in the software. Is this correct? or delete the second line#!C:\perl\bin\perl.exe ?

Thank you.
carrzkiss Reply #: 1 Posted on: 07-04-10 09:19 AM
Re: .cgi file extensions


Example below of the first two lines in each .cgi file.

#!/usr/bin/perl
#!C:\perl\bin\perl.exe

Seem like this is pointing to two different perl locations and would cause confusion in the software. Is this correct? or delete the second line#!C:\perl\bin\perl.exe ?

Thank you.



C:\ <-- Windows
If you do not use Windows Server, then just leave this line alone.
Or you may [Delete] it. It will not bother nothing rather it is there or not.

I run a WinNT4 Server, and I still have the
#!/usr/bin/perl
In the code.
Why mess with something that is not broken.
(A little humor their)

Take Care
Carrkiss
mewsoft Reply #: 2 Posted on: 07-04-10 07:57 PM
Re: .cgi file extensions

Only the first line in files is considered valid so do not worry about next lines, we leave these for different locations and systems.

Mewsoft Support
www.mewsoft.com