Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*///////////////////////////////////
- replace stuff from old version to this stuff
- ///////////////////////////////////*/
- $percent = array(1 => "20%", 2 => "40%", 3 => "60%", 4 => "80%", 5 => "100%");
- $page = file_get_contents("http://www.horoscope.com/us/horoscopes/general/horoscope-general-daily-today.aspx?sign=".$sign);
- $horo = trim(explode('</p>',explode('<p class="mobile">', explode('</b> - ', $page)[1])[0])[0]);
- $chances = explode('text-right">', explode('<div class="row non-mobile">', explode('ratings">', $page)[1])[0]);
- array_shift($chances);
- foreach($chances as $i=>$chance) $chances[$i] = explode('</h4>', explode("<h4>", $chance)[1])[0]." ".$percent[explode('-stars', explode('ratings/', $chance)[1])[0]];
- //
- //
- ?>
Add Comment
Please, Sign In to add comment