Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-15-2007, 07:48 PM   #1
beanamid
Confirmed User
 
Join Date: Jan 2007
Location: NY
Posts: 382
Batch URL Encoder?

I need to encode a Ton of URLS for my trade script what's a good batch encoder???

Thanks in advance
__________________
Trade Links |Traffic With an Ok site with Good SE traffic
ICQ: 457 534 187
beanamid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 08:01 PM   #2
bDok
Confirmed User
 
bDok's Avatar
 
Join Date: Feb 2005
Location: SD/OC/LA
Posts: 1,917
write a quick perl script. probs would take a couple lines.
__________________
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Warriors come out to plaAAaayyy!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
bDok is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 08:19 PM   #3
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
make a form, and put a textarea into it, and name it "batchurl" then make encode.php and put this in it

PHP Code:
<?php
if($_POST['batchurl'] == true)
{
   
$newline explode("\n"$_POST['batchurl']);
   foreach(
$newline as $url)
   {
      echo 
urlencode($url) . "<br />\n";
   }
}
?>
make sure to make the form a POST not a GET and then just use the form to execute encode.php
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 08:40 PM   #4
beanamid
Confirmed User
 
Join Date: Jan 2007
Location: NY
Posts: 382
Quote:
Originally Posted by Jaysin View Post
make a form, and put a textarea into it, and name it "batchurl" then make encode.php and put this in it

PHP Code:
<?php
if($_POST['batchurl'] == true)
{
   
$newline explode("\n"$_POST['batchurl']);
   foreach(
$newline as $url)
   {
      echo 
urlencode($url) . "<br />\n";
   }
}
?>
make sure to make the form a POST not a GET and then just use the form to execute encode.php
Thanks a million I owe you one!
__________________
Trade Links |Traffic With an Ok site with Good SE traffic
ICQ: 457 534 187
beanamid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 08:58 PM   #5
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
Quote:
Originally Posted by beanamid View Post
Thanks a million I owe you one!
no problem!
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 09:01 PM   #6
beanamid
Confirmed User
 
Join Date: Jan 2007
Location: NY
Posts: 382
I think I missed somthing..
I make the form, and it looks like this:
<body>
<form action="/encode.php" method="post" enctype="application/x-www-form-urlencoded" name="batchurl"><textarea name="urls to encode" cols="50" rows="20" wrap="off"></textarea><input name="submit" type="submit" /></form>
</body>

I think I am missing somthing.....
__________________
Trade Links |Traffic With an Ok site with Good SE traffic
ICQ: 457 534 187
beanamid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 09:02 PM   #7
beanamid
Confirmed User
 
Join Date: Jan 2007
Location: NY
Posts: 382
never mind I had the name wrong thanks
__________________
Trade Links |Traffic With an Ok site with Good SE traffic
ICQ: 457 534 187
beanamid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 09:17 PM   #8
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
Quote:
Originally Posted by beanamid View Post
never mind I had the name wrong thanks
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 09:37 PM   #9
beanamid
Confirmed User
 
Join Date: Jan 2007
Location: NY
Posts: 382
last time I will bug you
could I add the lines:
/out.php?p=85&url=
to the php side
and even better would be to add the lines
<a href="/out.php?p=85&url=URLHERE" target="_blank"></a>
__________________
Trade Links |Traffic With an Ok site with Good SE traffic
ICQ: 457 534 187
beanamid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 09:39 PM   #10
beanamid
Confirmed User
 
Join Date: Jan 2007
Location: NY
Posts: 382
jaysin thanks for the help and I did signup for profitx under your code (not that I am making much yet)
__________________
Trade Links |Traffic With an Ok site with Good SE traffic
ICQ: 457 534 187
beanamid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 09:47 PM   #11
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
Quote:
Originally Posted by beanamid View Post
last time I will bug you
could I add the lines:
/out.php?p=85&url=
to the php side
and even better would be to add the lines
<a href="/out.php?p=85&url=URLHERE" target="_blank"></a>
you want the script to ouput that for each link?

Quote:
Originally Posted by beanamid View Post
jaysin thanks for the help and I did signup for profitx under your code (not that I am making much yet)
no worries, its not my refcode, its actually $tandman's who bought my sig, but he'll appreciate it, thanks!
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 10:51 PM   #12
beanamid
Confirmed User
 
Join Date: Jan 2007
Location: NY
Posts: 382
It would be great if I got this as the end result: (either in the source code or text)
<a href="/out.php?p=85&url=URLHERE" target="_blank"></a>


Thanks again
__________________
Trade Links |Traffic With an Ok site with Good SE traffic
ICQ: 457 534 187
beanamid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2007, 11:01 PM   #13
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Change your echo statement.

Code:
echo '<a href="/out.php?p=85&url=' . urlencode($url) . '" target="_blank"></a><br />' . "\n";
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2007, 07:18 AM   #14
beanamid
Confirmed User
 
Join Date: Jan 2007
Location: NY
Posts: 382
Quote:
Originally Posted by GrouchyAdmin View Post
Change your echo statement.

Code:
echo '<a href="/out.php?p=85&url=' . urlencode($url) . '" target="_blank"></a><br />' . "\n";
Thanks for the help.....
__________________
Trade Links |Traffic With an Ok site with Good SE traffic
ICQ: 457 534 187
beanamid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2007, 08:11 AM   #15
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
Quote:
Originally Posted by GrouchyAdmin View Post
Change your echo statement.

Code:
echo '<a href="/out.php?p=85&url=' . urlencode($url) . '" target="_blank"></a><br />' . "\n";
there ya go, sorry i didn't reply, i went to bed
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.