note 35040 deleted from function.ereg by rioter
| From: | rioter@php.net | Date: | Sun, 17 Aug 2003 03:28:21 +0000 |
| Subject: | note 35040 deleted from function.ereg by rioter | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54526@lists.php.net to get a copy of this message | ||
Note Submitter: Josh Mckay
----
How would I do this in PHP?
Its a special bit of perl code I written to
weed out URL's out of sites with referrals.. I'm
basically trying to do away with porn through elimination
of money making incentives.. Basically I'm cheating the sleeze
bags here.. I take the input, strip the URL out
of any URL lines, then I dump the output, with the changes
made.. Anyone like to help me write up
Page filters for this?
while (<STDIN>) {
#if ($_ =~ /["']http[^=]+=(http[^?&]+)[^"']+["']/) { print $1; }
$_ =~ s/["']http.+=(http[^?&]+)[^"']+["']/'$1'/gi;
print $_;
}
PS- I heard Penthouse went out of business, I think
we can put the whole porn industry out of business, I'm thinking about constructing such a site
specifically for this purpose..
Anyone who wants to join me, just put
KILLPORNNOW in your webpage. I'll find you..