Jump to content

jjmusicpro

Members
  • Posts

    290
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jjmusicpro's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Hey guys, i had an app that did a CURL call to log into facebook however it seems like they updated there login for there mobile site. Here is the HTML <form method="post" action="https://login.facebook.com/login.php?m=m&refsrc=http%3A%2F%2Fm.facebook.com%2Flogin.php&fbb=r01c1fe28&refid=9"><input type="hidden" name="lsd" autocomplete="off" /><input type="hidden" name="post_form_id" value="d90410be5a12934868b59878b1159a37" /><input type="hidden" name="charset_test" value="€,´,€,´,水,Д,Є" /><span class="mfss fcg">Email or Phone:</span><br /><input class="input" type="text" name="email" value="" /><br /><span class="mfss fcg">Password:</span><br /><input class="input" type="password" name="pass" /><br /><div><input type="submit" value="Log In" class="btn btnC" name="login" /> I have this below, but cant figure out how to update it with the new HTML above. $url="https://login.facebook.com/login.php?m=m&refsrc=http%3A%2F%2Fm.facebook.com%2F&fbb=rb8b9213c&refid=8"; $POSTFIELDS = 'charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&lsd=-H1sd&email='.urlencode($username).'&pass='.urlencode($password).'&login=Log+In'; Any help would be great!
  2. Figured it out, didnt see i had the extra <div> at the end preg_match('/<div class=\"c\"><strong>([^\<]*)<\/strong>/i', $result, $name);
  3. I cant get this to work for some reason... just kicks out blank... Code preg_match('/<div class=\"c\"><strong>(.*?)<\/strong><\/div>/i', $result, $name); echo $name[0]. " " .$name[1]; I even tried this preg_match('/<div class=\"c\"><strong>([^\<]*)<\/strong><\/div>/i', $result, $name); echo $name[0]. " " .$name[1]; HTML <div class="c"><strong>My Cool Name</strong> I want to get "My Cool Name" out of that...
  4. will CURL with with ajax? never tried it with it. Also, even if i request it via ajax, they still will have to wait for it to process, and it will bring back a "time out"... message But when i try on my stock xp machine, it processes until its done.... ? Maybe a browser setting?
  5. I have a page, that upon post, does some logic, this logic can take 1-30 minutes... Now sometimes I will get a "Page time out"....and others i wont... even if im requesting the same data. I used it successfully everytime on my stock xp, with ie8 But cant get it to work on my VISTA WIN7 x64 machins, and another xp machine, after about 1-5 min it says "page time out", then i test it on my stock xp machine, and it can run for 45 min, or runs until everything is finsihed and shows the page. Any ideas?
  6. keep in mind there are multiple <div class="mfsm"></div> on the page...thats why i couldnt look through it directlyl.
  7. So if i have <div class="mfsm">Email:</div></td><td valign="top"><div class="mfsm"><a href="mailto:Array">myemail@gmail.com</a></div> I want it to give me anything within the <div class="mfsm"></div> Now sometimes there might be an image in there like <div class="mfsm"><img src="/something/joe.jpg"></div> so i want that full thing "<img src="/something/joe.jpg">" thats what my reg exp tried to do before.
  8. When i try that above i get a wrong kick out. preg_match('|href="mailto:([^"]*)"|', $result, $email); echo $email[0]. " " .$email[1]. " " . $email[2]; Kick out below .href="mailto:Array" Array .href="mailto:Array" Array
  9. Is my ([^\<]*) is whats messing it up?
  10. Ok cool, here is one i tried doing myself, but having same problems. HTML - <div class="mfsm">Email:</div></td><td valign="top"><div class="mfsm"><a href="mailto:Array">myemail@gmail.com</a></div> Here is what i have, but its blank.. preg_match('|mail([^\<]*)<\/div><\/td><td valign=\"top\"><div class=\"mfsm\">([^\<]*)<|', $result, $email);
  11. To get rid of the <strong></strong> i just did a str_replace... but i assume there is better way to do this?
  12. That also gets the <strong></strong>, and i dont want that
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.