Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2006-10-15, 06:19 AM   #1
Mateusz
Screw you, guys. I'm going home.
 
Mateusz's Avatar
 
Join Date: Mar 2004
Location: Gliwice, Poland
Posts: 996
Send a message via ICQ to Mateusz
Try this - this function can be usefull for blacklist and recip checking as well
PHP Code:
if (eregi($new_url$old_url)) {do sth}
   else {do 
sth else}; 
Please note there will be problem if someone submited
http://mydomain.com/freesite1/freesite2/freesite3/
and
http://mydomain.com/freesite1/
was already in DB

I see no point in creating such directory structure for free sites and I guess nobody does

Last edited by Mateusz; 2006-10-15 at 06:27 AM..
Mateusz is offline   Reply With Quote
Old 2006-10-15, 07:38 AM   #2
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
Quote:
Originally Posted by Mateusz View Post
Please note there will be problem if someone submited
http://mydomain.com/freesite1/freesite2/freesite3/
and
http://mydomain.com/freesite1/
was already in DB
That is the sort of thing I am trying to prevent. It is not a freesite list, it is a directory listing domains (websites) not pages.

As far as I can see, your function will not do what I want it to.
I.e. if [url]http://mydomain.com/freesite1/ was in the DB, if they then submitted http://www.mydomain.com/freesite1/, http://web.mydomain.com/freesite1/, http://sub.mydomain.com/freesite1/ and http://another.mydomain.com/freesite1/ it wouldn't catch them.
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:53 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc