I'm getting freakin annoyed!!


Jim Oaks

Just some guy with a website

Founder / Site Owner
Administrator
💻 TRS Socials
Article Contributor
TRS Event Participant
TRS 20th Anniversary
TRS 25th Anniversary
VAGABOND
TRS Banner 2010-2011
TRS Banner 2012-2015
GMRS Radio License
Joined
Aug 2, 2000
Messages
15,893
Points
7,601
Age
58
City
Nocona
State - Country
TX - USA
Other
2005 Jaguar XJ8
Vehicle Year
2021
Vehicle
Ford Ranger
Drive
4WD
Engine
2.3 EcoBoost
Transmission
Automatic
Total Lift
3.5-inches
Tire Size
295/70/17
I have been trying all day to set up a search feature for the main part of the site. There are a lot of pages on this site and re-enabling a search would be great!

The only real search I could find was from:

http://www.scriptarchive.com/readme/search.html

I can't get the damn thing to work!

I use to have entropysearch.cgi:

http://web.archive.org/web/20040804232921/www.therangerstation.com/search.htm

but I don't know where it came from....

Here's what I'm working with:

Code:
[SIZE=2]
# Define Variables #
$basedir = '/home/scriptarchive/';
$baseurl = 'http://www.scriptarchive.com/';
@files = ('*.html');
$title = "Matt's Script Archive";
$title_url = 'http://www.scriptarchive.com/';
$search_url = 'http://www.scriptarchive.com/demos/search/search.html';
# Done #
[/SIZE]
 
Sorry I can't help you, Jim, but the new website is really looking great. There's still stuff to be done, but you guys are doing a hell of a good job. Saw this when I just popped on:

Threads: 517, Posts: 3,080, Members: 599, Active Members: 599

600 members tonight, fo sho. That's in only 6 days. Hang in there, dude!
 
go goof off or sleep some and come back to it later. then the problem will seem to fix its self.
 
Ok, this is the only thing that I can think of that could possibly be off:

Code:
[SIZE=2]#!/usr/bin/perl
[/SIZE]

I can't verify the perl location.
 
......well.....that's right.
 
Do you have shell (command prompt) access on the server?

If so, run "which perl", and it'll spit out the path to the perl executable so you can verify that. That is, if it's a UNIX variant.

What's the error you're getting exactly?
 
Make sure you script is set up with execute permissions as well. On the command prompt, type "chmod +rx /where/the/script/is/located/search.pl"

If you don't have shell access, you can do it through most FTP programs. Find the script, and there should be some option to "set permissions" or something.
 
Can you post a snippit from the Apache error log after *trying* to run the script? It should lend some clues...

Haha, anyone else up for some late night perl hacking?
 
sure ... soon as I get my ubuntu issue solved
 

Sponsored Ad

TRS Events & Gatherings

Latest posts

Featured Rangers

Want to see your truck here? Share your photos and details in the forum.

TRS Latest Video

Official TRS Merchandise

Follow TRS On Instagram


Product Suggestions

Back
Top