Jump to content

minihjalte

Member
  • Posts

    1
  • Joined

  • Last visited

Awards

This user doesn't have any awards

1 Follower

Profile Information

  • Member title
    Junior Member

minihjalte's Achievements

  1. <?php $url = "https://www.lectio.dk/lectio/518/SkemaNy.aspx?type=elev&elevid=IDHERE"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); $output = curl_exec($ch); curl_close($ch); $regexpattern = '((\btitle[=]\")(.{1,50}\n)?((\d{1,2})\/(\d{1,2})-(\d{4})\s(\d{2}):(\d{2})\s\btil\s(\d{2}):(\d{2}))\n(\bHold:.*?\n.*?\n.*?)?\n)'; preg_match_all($regexpattern, $output, $regexresults); echo '<pre>';print_r($regexresults);echo '</pre>'; ?> Gets infomation from Danish school sceduling website and outputs it in a usable format.
×