Home > Paid Traffic Sources > POP / PPV / Redirect

Dynamic URL Insertion & Cleanup with CPVlab (3)


12-09-2011 06:45 PM #1 atherbys (Member)
Dynamic URL Insertion & Cleanup with CPVlab

I cannot find the thread that talked about this earlier after much searching...would anyone happen to have the link or know how to clean up Dest URL's like w.walmart.com/, .bestbuy.co, etc so that the would display correctly on a page dynamically through CPVlab?

CPVlab currently DOES have a feature/script that will echo the url, but it won't 'clean' the url, so if you are bidding on w.walmart.co, then your page displays:

Welcome w.walmart.co visitors...

Any help is appreciated. thanks!

Gary


12-09-2011 06:57 PM #2 invisible777 (Member)

I use something like this... not perfect, but cleans the URL up quite a bit:

[PHP]
<?php
$trimmedkeyword = preg_replace( '/('.

'w\\.|'.
'ww\\.|'.
'=|'.
'_|'.
'&|'.
'\/\/|'.
'\/.*\?.*$|'.
'\?.*$|'.
'\/|'.
'\.com.+$|'.

'\.com$|'.
'\.co$|'.
'\.c$|'.
'\.org$|'.
'\.net$|'.
'\.info$|'.
'\.fr$|'.

')/'
, '', $_GET['subid'] );
?>[/PHP]


12-09-2011 06:59 PM #3 jonemd (Member)

Gary,

I remember reading about this problem here . I'm sure that if someone has a better solution they'l be along soon. Hope it helps though buddy.

Jonathan


Home > Paid Traffic Sources > POP / PPV / Redirect