What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [PHP] Regular expressions and Status2FTP

[PHP] Regular expressions and Status2FTP
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
O.P. RE: [PHP] Regular expressions and Status2FTP
Woops! Already solved! :P
code:
//Get the XML data and return it
function getXMLData($i) {
    global $content2;
    $data = str_replace(array("<Details>","</Details>"), "", $content2);
    $data0 = preg_replace("/^<Username>(.*?)<\/Username>(.*?)$/","\\1", $data);
    $data1 = preg_replace("/^(.*?)<PSM>(.*?)<\/PSM>(.*?)$/","\\2", $data);
    $data2 = preg_replace("/^(.*?)<Status>(.*?)<\/Status>(.*?)$/","\\2", $data);
    eval("return \$data$i;");
}
Heh... well, thanks for reading. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
06-25-2006 08:25 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[PHP] Regular expressions and Status2FTP - by Matti on 06-25-2006 at 08:17 AM
RE: [PHP] Regular expressions and Status2FTP - by Matti on 06-25-2006 at 08:25 AM
RE: [PHP] Regular expressions and Status2FTP - by Eljay on 06-25-2006 at 08:28 AM
RE: [PHP] Regular expressions and Status2FTP - by -dt- on 06-25-2006 at 08:29 AM
RE: [PHP] Regular expressions and Status2FTP - by Matti on 06-25-2006 at 09:16 AM
RE: [PHP] Regular expressions and Status2FTP - by Death.Knight on 11-06-2006 at 04:09 AM
RE: [PHP] Regular expressions and Status2FTP - by NiteMare on 11-06-2006 at 04:39 AM
RE: [PHP] Regular expressions and Status2FTP - by Eljay on 11-06-2006 at 05:30 PM
RE: [PHP] Regular expressions and Status2FTP - by NiteMare on 11-06-2006 at 05:32 PM
RE: [PHP] Regular expressions and Status2FTP - by Eljay on 11-06-2006 at 05:36 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On