Created
February 22, 2016 06:57
-
-
Save Stichoza/f16411779d8be88c212a to your computer and use it in GitHub Desktop.
[TextBar] Show container tracking status (cma-cgm)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = file_get_contents('http://www.cma-cgm.com/ebusiness/tracking/search?SearchBy=Container&Reference=CONTAINER_NUMBER'); | |
$exp = explode('class="date-current"', $data); | |
$exp = explode('data-move="status', $exp[1]); | |
preg_match('/(.+\>)(.+)(\<.+)/', $exp[1], $matches); | |
echo $matches[2]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment