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 gkittelson 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. LeonKl2

    .htaccess Rewrite Problem

    Hello, I am trying to redirect *all* requests made to my website to a single page and also pass on which page was originally requested. Currently I am trying to do something like: RewriteRule ^(.*) index.php?c=$1 However, what is passed on always seems to be "index.php". Any ideas? Thanks...
  2. LeonKl2

    Mod Rewrite by IP address to another directory

    Thanks for the tip. Where should I add this, in httpd.conf? Thanks
  3. LeonKl2

    Mod Rewrite by IP address to another directory

    Well, RewriteRule .* doesn't work because I need the (). However, now it passes on the information, but its always "index.php" even if I try accessing it using another filename or directory. Could there be a loop going on? Thanks
  4. LeonKl2

    Mod Rewrite by IP address to another directory

    Actually, I'm trying to do the same thing but also pass on the page that they were trying to reach. How do I do that? RewriteRule .* /foo/bar.php?c=$1 doesn't seem to work. Thanks
  5. LeonKl2

    How do I create an Email Reply script?

    Looks good, I'll check it out. So is this implemented in PHP or on on the prompt?
  6. LeonKl2

    How do I create an Email Reply script?

    I want to make a script that would, for example, if somebody emailed script@mydomain.com, it would save their name and email, and then reply to them with a message. I know how to do all of that except on thing: How to get the script to read the information from the message? So far, I've...
  7. LeonKl2

    Some emails sent from perl have messed up newlines.

    Hi, I have a small CGI script that I wrote that sends email using sendmail. Usually it works fine but for some email addresses the newlines end up doubling, or there are no newlines at all. Any idea why this could be happening or how to fix it? I have thought that maybe adding Content-Type...
  8. LeonKl2

    Can't find table error, even though table exists

    Thanks, adding main the from clause worked.
  9. LeonKl2

    Can't find table error, even though table exists

    I use the following query: SELECT * from ads where user!='$id' and ready=1 and category='$category' and main.id=user and main.credits>4; And it returns #1109 - Unknown table 'main' in where clause But the "main" table exists. What gives? I've tried it with other tables in the same database...
  10. LeonKl2

    Reading a lot of web pages consecutively

    Hi, I'm trying to write a program that will read the source code of some pages and get some information out of them. I wrote a simple program to do that but I'm getting a really weird bug. I'm inputting the URLs by just using Text1 and then I split that by newlines into an array and I have...
  11. LeonKl2

    How can I make it so that only one instance of my application can run?

    I need to make sure that the user can't start 2 or more copies of my program at the same time. How do I do this? Or alternatively, is there any way for a running program to be able to read info from the command line? So instead of it opening another copy of my program with this command line...
  12. LeonKl2

    How do I create an autoresponder with PHP?

    I have my site hosted on Red Hat Linux. I'm not sure what MTA is.
  13. LeonKl2

    How do I create an autoresponder with PHP?

    I need my PHP script to be able to recieve emails at something@mydomain.com and then reply to them with a pre-defined message. I see programs online that do this all of the time. I just need to know how to make one.
  14. LeonKl2

    How do I keep a PHP script running after I close the page?

    I'm pretty sure its possible. Because the way the autoresponder does it, is it starts sending the emails as I'm watching the page and displays the email addresses that it has sent to, but then after a little while the page freezes. Is there any other way to do it in Perl possibly? Or how do I...
  15. LeonKl2

    How do I keep a PHP script running after I close the page?

    I'm trying to make a PHP script do something similar to a mailer program that I used. It was written in PHP and I would tell it to email my list and then close the page. It would email the list and about 15 minutes or so later I would recieve an email that it was completed. I'm trying to make...
  16. LeonKl2

    4 gigs of space missing

    Gunny, thanks for tip. I did that and it still gave me the same result, however.
  17. LeonKl2

    4 gigs of space missing

    I read it and I'm not sure how it applies.
  18. LeonKl2

    4 gigs of space missing

    Theres a bunch of weird junk sitting on my harddrive and its taking up space but I can't find it to delete it. I have a 20 gig harddrive, and supposedly I only have 150 megs of room left. But when I view the C drive and I select everything, it only adds up to 15 gigs. How do I actually free up...
  19. LeonKl2

    Frame relocation problem

    I have a page thats inside of a frame with a Javascript that onClick makes the other frame go to a different page. However, when I try it I always get an "Access is denied" error. What does that mean? Is there a way for me to work around it? Thanks
  20. LeonKl2

    How to find where PHP Javascript is called from?

    Rob, You got my idea exactly. And I could have sworn $_SERVER['HTTP_REFERER'] should work. I tried it but it didn't. I think that this is because my firewall is blocking the referer from my browser. Maybe I'll try it out again and see if I can turn it off. Thanks, Leon

Part and Inventory Search

Back
Top