Previous Thread
Next Thread
Print Thread
Rate Thread
#18353 03/17/04 07:10 AM
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
OP Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
Ok, I've asked on the IRC, and even asked SR/Paradox to make me a program, both got sidetracked and I'm still at square one...

What I need is a program (quick and easy so long as it works) to convert a list of email addresses that are return delimited to make them comma delimted.

Example from:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

Example to:
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]

It has to be capable of converting a list of 3000 users. I need it ASAP for a friend of mine's site, when he changed hosts he went from using one type of mailing list to MajorDomo through his webhost.

Anyone care to help? It has to be easy enough for a complete newb to use :glances at Kevin:... Basically all it need to do is have a convert button with input boxes for both lists (to/from filename) and possibly a ratio box to define what type of conversion (may it be from comma delimted to return delimted, or vice versa). It has to leave the original file untouched.


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#18354 03/17/04 10:37 PM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
How is this for simple.

Code
 
<Form action="this_script.php?cmd=process" Method=POST>
Paste email addys here

<textarea></textarea>
<input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
$emails = ereg_replace( "
", ",", $remarks );
echo "$emails";
}
?>
 

#18355 03/17/04 11:01 PM
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
OP Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
heh, keep in mind kevin is a newb... In any case, SR got something done for me smile .


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#18356 03/17/04 11:22 PM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
I edited the code.

#18357 03/17/04 11:33 PM
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
OP Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
I have to say it... it doesn't work :x...

http://www.UnderGroundNews.com/kevin.php

Code
<Form action="kevin.php?cmd=process" Method=POST>
Paste email addys here

<textarea></textarea>
<input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
$emails = ereg_replace( "
", ",", $remarks );
echo "$emails";
}
?>


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#18358 03/18/04 10:39 AM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
Must I type out every piece of code I offer. the name attribute is missing in the text area tag. See code below for final(give or take an error or two) laugh

Code
 
<Form action="this_script.php?cmd=process" Method=POST>
Paste email addys here

<textarea name="remarks">
</textarea>
<input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
$emails = ereg_replace( "
", ",", $remarks );
echo "$emails";
}
?>
 

#18359 03/18/04 08:17 PM
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
OP Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#18360 03/19/04 11:34 PM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
Code
 
<Form action="this_script.php?cmd=process" Method=POST>
    Paste email addys here
        

    <textarea name="remarks"></textarea>
    <input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
    $emails = ereg_replace("
",",",$remarks);
    $emails = ereg_replace(" ","",$emails);
        echo "<textarea>$emails</textarea>";
}
?>
Try that. I even made it easier to copy them all. I just took out all spaces :rolleyes:

#18361 03/20/04 12:27 AM
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
OP Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#18362 03/20/04 12:50 AM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
Try it now..

#18363 03/20/04 01:30 AM
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
OP Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
Now exports to a text box as:

wink ... Back to the seperate lines and the comma in wrong place heh...


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#18364 03/20/04 02:56 AM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
Okay I got tired of posting fixes to code I never tryed. I actually tested this. It is butt simple. Drop the email addys in and copy off the page. The source will show the emails addys with the return charater still. However the HTML will dissplay them flat. Just copy and paste into whatever system.

Code
 
<Form action="test.php?cmd=process" Method=POST>
    Paste email addys here
	 

	<textarea name="remarks"></textarea>
	<input type="submit" value="submit">
</form>
<?
//******************************************
//**    add extensions below as needed    **
//******************************************
if($cmd == "process"){
    $emails = ereg_replace(".com",".com,",$remarks);
	$emails = ereg_replace(".net",".net,",$emails);
	$emails = ereg_replace(".org",".org,",$emails);
	$emails = ereg_replace(".us",".us,",$emails);
	$emails = ereg_replace(".biz",".biz,",$emails);
	$emails = ereg_replace(".tv",".tv,",$emails);	

 echo "$emails";
	}
?>
 

#18365 03/20/04 05:09 AM
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
OP Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
Not bad at all, all but the final string having a comma, but hey that's fine wink ...


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#18366 03/20/04 05:30 AM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
yea.. He has to make 1 manual change. But if the list is long enough that seems mighty simple.

#18367 03/20/04 08:45 PM
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
OP Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
Lol indeed wink ...


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner

Link Copied to Clipboard
Member Spotlight
Phatal
Phatal
Houston, TX
Posts: 298
Joined: April 2004
Forum Statistics
Forums41
Topics33,840
Posts68,858
Average Daily Posts1
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Where and how do you torrent?
by danni75 - 03/01/24 05:58 AM
Animation,
by JohanKaariainen - 08/15/19 01:18 AM
Blackbeard.....
by Gremelin - 10/03/18 07:02 PM
my old account still exists!
by Crime - 08/10/18 02:47 PM
Okay WTF?
by HenryMiring - 09/27/17 01:45 AM
The History Thread...
by Gremelin - 08/11/17 12:11 PM
My friend NEEDS your HELP!
by Lena01 - 07/21/17 12:06 AM
I'm having fun with this guy.
by gabithompson730 - 07/20/17 01:50 AM
I want to upgrade my phone
by gabithompson730 - 07/20/17 01:49 AM
Doom 3
by Cyrez - 09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666 - 08/22/14 09:21 AM
AIM scene 99-03
by lavos - 09/02/13 08:06 AM
Planetside 2
by Crime - 03/04/13 07:10 AM
Beta Testers Wanted
by Crime - 03/04/13 06:55 AM
Hello Everyone
by Gremelin - 02/12/12 06:01 PM
Tracfone ESN Generator
by Zanvin Green - 01/18/12 01:31 PM
Python 3 issue
by Testing - 12/17/11 09:28 PM
tracfone airtime
by Drache86 - 07/30/11 03:37 AM
Backdoors and the Infinite
by ZeroCoolStar - 07/10/11 03:52 AM
HackThisZIne #12 Releaseed!
by Pipat2 - 04/28/11 09:20 PM
gang wars? l33t-wars?
by Gremelin - 04/28/11 05:56 AM
Consolidate Forums
by diggin2deep - 04/21/11 10:02 AM
LAN Hacking Noob
by Gremelin - 03/12/11 12:42 AM
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Cyrez 1
Girlie 1
unreal 1
Crime 1
Powered by UBB.threads™ PHP Forum Software 7.7.5