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...
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
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
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...
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...
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...
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...
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...
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.
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...
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...
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...
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
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.