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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ArcAnjel

    .htpasswd perl script

    Thanks for not letting me give up on this. It wasn't working because of a binary transfer. Yeah, yeah go ahead and laugh, I deserve it... If anyone is curious or wants to criticize it, here is my script below: #!/usr/local/bin/perl require "cgi-lib.pl"; $PASS = '/.Admin/.htpasswd'; $valid =...
  2. ArcAnjel

    .htpasswd perl script

    Thanks for the suggestion, but it didn't work. I'm tired of looking for this. I am just going to make another password database.
  3. ArcAnjel

    .htpasswd perl script

    Hello all, I am trying to write a very simple password program (it isn't being used for any important data) that uses the .htpasswd file (so I don't have to maintain two password files for users). So I need a way to convert the password the user types in into the .htpasswd hash either before it...
  4. ArcAnjel

    Spam Folder Rules

    Hello, I ahve just setup a new spam filter, dspam, for our mail server. One of the features is the ability to forward missed messages back to the server to retrain the filter. So what I would like to do is have messages put into a specific folder (a spam folder) automatically redirected back...
  5. ArcAnjel

    Regular Expression Implementation

    Actually, you're almost right: if($xref_pn2 =~ /($in_pn2)/) { Thanks ALL!
  6. ArcAnjel

    Regular Expression Implementation

    For those interested here is the code. The HTML for presentation is replaced with <HTML>. #!/usr/local/bin/perl require "cgi-lib.pl"; &ReadParse(*input); $in_co = $input{Company}; $in_pn = $input{PN}; $in_pn2 = $in_pn; while($in_pn2 =~ m/(\.|\,|\+|\-|[a-z])/) { $in_pn2 =~ s/(\.|\,|\+|\-)//...
  7. ArcAnjel

    Regular Expression Implementation

    Sure thing! Currently the user can input the part number with almost any punctuation they want. The search copies the number and then removes the punctuation so only the alphanumerics are left. Then compares to the list. I will still ignore punctuation (because there is no telling how a user...
  8. ArcAnjel

    Regular Expression Implementation

    Actually, it isn't running on a SQL database. It is running out of a simple text file with a PERL script doing the searching. The text file is setup like: CompetitorsPN,OurPN CompetitorsPN,OurPN CompetitorsPN,OurPN etc... The script just reads a line, splits at the comma, compares the...
  9. ArcAnjel

    Regular Expression Implementation

    Hello folks, I'm sort of new at this, so bare with me. I have a search function on my website for a part number cross reference and I'd like to add the capability to use regular expressions in the search. Right now the user must type the search string almost exactly as it is in the database...
  10. ArcAnjel

    Change the history entry

    This explanation is a bit long, sorry. I have a index page with an iframe and a nav bar with links to other pages and links to change the content of the iframe. So when I go to one of the other pages then select one of the links that changes the content of the iframe, the iframe is on a...
  11. ArcAnjel

    Change the history entry

    I figured that was the case... I guess I'm back to square 1, a good site with a small, but annoying, bug. Thanks anyway.
  12. ArcAnjel

    Change the history entry

    Is there some way to specify what URL should be listed in the back button history list when you click on a link? Thanks!
  13. ArcAnjel

    Need Javascript to function differently if page loaded by back button

    As the subject says, I have a page that needs to run differently if the page is loaded by a link or if it is loaded by the back button on the browser. I want to test for this in the Javascript. Pseudocode: if (loaded by back button) { Do this; } else if { Do this instead; } Any ideas? -Carl

Part and Inventory Search

Back
Top