PDA

View Full Version : Script Installs


DarkWizard
07-15-2001, 04:23 PM
Anyone needing CGI, PHP and/or JavaScript installs let me know.

busybod
08-05-2001, 08:41 PM
Hi there. I am using Dreamweaver to create my site. I have a form that I would like to have the responses sent to my email account. Any suggestions?

themens
08-16-2001, 04:45 AM
You seem to be the man when it comes to installing carts and catalogs so I was wondering what you thought was the best free to very cheap program available and what it would tajke to get you to do it.
By the way hows the logo thing going?
I would really like to be able to add several items at a time rather than singularly. if at all possible.
please get with me as soon as you can.

mytouch
12-02-2001, 02:50 AM
Follow up to Help Ticket Request: 47407

When I try to execute the cgi script I get a 404-File Not Found Error
_______________________________________
Here is the path I am using to my cgi script located in my cgi-bin

<FORM METHOD="POST" ACTION="http://mytouch.org/home/mytouch/public_html/cgi-bin/web-search.cgi">

My cgi file permission located in the cgi-bin is set to 775 as per my install instructions


The install instuction that for this script are:

The only set-up necessary is in the main-search.htm
--------------------------------------------------------------------

In the main-search.htm change the FORM tag to point to your
web-search.cgi.

EXAMPLE: <FORM METHOD="POST" ACTION="/cgi-bin/web-search.cgi">

----------------------------------------------------------------------

I have the program HTML pages set-up in frames. You can set-up your search page in any way you like. The drop-down list for the seperate databases can be replaced with radio buttons.

Located at:
http://www.rlaj.com/scripts/search-the-net/

----------------------------------------------------------------------

Here is a copy of the cgi file:

/usr/bin/perl

### *** IMPORTANT *** ###

### *** Make sure the path to PERL above is correct *** ###

###########################################################
# RLAJ.COM Search The Web #
# Script name - web-search.cgi #
# Written by Ranson Johnson - Email ranson@rlaj.com #
# Version 1.0 #
###########################################################

### *** IMPORTANT *** ###

### *** If FTP'ing this file, be sure to send in ASCII format *** ###


# This is a very simple to set-up program for searching the web. There is one
# cgi script that does all the work. No configuration of the script is
# necessary. Just place the script anywhere on your site that you can run
# cgi's and chmod the web-search.cgi to 775 to make it executable by the
# server.

# In the main-search.htm change the FORM tag to point to your
# web-search.cgi.

# EXAMPLE: &lt;FORM METHOD="POST" ACTION="/cgi-bin/web-search.cgi"&gt;



### *** DO NOT CHANGE ANYTHING BELOW *** ###

&parse;

$FORM{'query'} =~ s/\s/\%20/g;

if ($FORM{'site'} eq 'altavista') {

print "Location: http://www.altavista.digital.com/cg...=web\&kl=XX\&q=$FORM{'query'}\n\n";

}

if ($FORM{'site'} eq 'excite') {

print "Location: http://www.excite.com/search.gw?trace=a&search=$FORM{'query'}\n\n";

}

if ($FORM{'site'} eq 'infoseek') {

print "Location: http://www2.infoseek.com/Titles?qt=$FORM{'query'}&col=WW&sv=IS&lk=noframes&nh=10\n\n";

}

if ($FORM{'site'} eq 'lycos') {

print "Location: http://www.lycos.com/cgi-bin/pursuit?query=$FORM{'query'}&matchmode=and&cat=lycos\n\n";

}

if ($FORM{'site'} eq 'yahoo') {

print "Location: http://search.yahoo.com/bin/search?p=$FORM{'query'}\n\n";

}

if ($FORM{'site'} eq 'webcrawler') {

print "Location: http://webcrawler.com/cgi-bin/WebQu...=25&searchText=$FORM{'query'}\n\n";



}

exit;

sub parse {

local (*FORM) = @_ if @_;
local ($i, $key, $val);

# Read in text
if (&LocalMethGet)
{
$FORM = $ENV{'QUERY_STRING'};
}
elsif (&LocalMethPost)
{
read(STDIN,$FORM,$ENV{'CONTENT_LENGTH'});
}

@FORM = split(/[&;]/,$FORM);

foreach $i (0 .. $#FORM)
{
# Convert plusses to spaces
$FORM[$i] =~ s/\+/ /g;

# Split into key and value
# splits on the first =
($key, $val) = split(/=/,$FORM[$i],2);

# Convert %XX from hex numbers to alphanumeric
$key =~ s/%(..)/pack("c",hex($1))/ge;
$val =~ s/%(..)/pack("c",hex($1))/ge;

# Associate key and value
# \0 is the multiple separator
$FORM{$key} .= "\0" if (defined($FORM{$key}));
$FORM{$key} .= $val;
}
return scalar(@FORM);

} # End sub parse


sub LocalMethGet
# from Steven Brenner's cgi-lib.pl v1.14
# true if this cgi call was using the GET request, false otherwise
{
return ($ENV{'REQUEST_METHOD'} eq "GET");
}

sub LocalMethPost
# from Steven Brenner's cgi-lib.pl v1.14
# true if this cgi call was using the POST request, false otherwise
{
return ($ENV{'REQUEST_METHOD'} eq "POST");
}

----------------------------------------------

Thanks for the help!

P.S. Do you think it is possible there isn't a perl modual (5) on my server...this might explain why my script is not working. I tried using the link to Perl in your help page however I received a 404-File Not Found Error.

--------------------------------------------------------------------

bilalak
12-02-2001, 05:31 PM
Originally posted by themens
You seem to be the man when it comes to installing carts and catalogs so I was wondering what you thought was the best free to very cheap program available and what it would tajke to get you to do it.
By the way hows the logo thing going?
I would really like to be able to add several items at a time rather than singularly. if at all possible.
please get with me as soon as you can.


I think TEP Exchange Project is the best and most easiet to manipulate
it takes 2-3 hours to install and some days to create a new layout :)

There is a script to add multiple items at a time using cvs files but u have to upload this pics manually

:)

bilalak
12-02-2001, 05:33 PM
Originally posted by mytouch
Ok, I have a cgi question for you? This is the first cgi script I have ever installed, when the script is executed I get a 404-File Not Found Error. Is my path incorrect? My permissions are set to 755 as required by the install instructions.

/home/mytouch/public_html/cgi-bin/web-search.cgi

this is an internet web search form script which can be found at http://gmi.mytouch.org

Customer service keeps giving me very simple answers that are completely missing my question.

Thanks!

error 404 has to do with wrong names or missing files
check if u have renamed a script or u have not upload it at ll :)

snipes
12-10-2001, 01:34 PM
Hey, I DO need some help installing the Exchange Project's shopping cart - it involves some mySQL and PHP which I'm not too familiar with. Let me know if you can help. Thanks!

muzamil
12-28-2001, 09:32 AM
Hey. There.

I am looking for help with installation of a cgi script for a mailing list, however, since my host is an NT Host, I am having some difficult with it.

Please email me @ muzamil@mac-nut.com, and I will email you with more details. My site is www.mac-nut.com. and i don't have any money to offer, besides credit.

Sincerely,

Muz Akram

witzbold
12-30-2001, 05:44 AM
mytouch er anyone else..

the 404 is because it cannot find something, and the first line in your .cgi isn't typical syntax. I don't know if it must be this way, but it is how I've always seen it.
you have
/usr/bin/perl
shouldn't it be
#!/usr/bin/perl
?
this is the path to the perl program, maybe the 404 is sayin it can't find that because the first line has invalid syntax?

maybe wrong, just a thought. :)