0
INDEX
URL
1 | https: //prod-client.host.fr/client/files/2011/05/test.zip |
Domaine
1 2 | preg_match( '@^(?:https://)?([^/]+)@i' , $url , $matches ); $test = print_r( $matches , true); |
Valeur de $test :
1 | Array ( [0] => https: //prod-client.host.fr [1] => prod-client.host.fr ) |
Path
1 2 | preg_match( '@https://[^/]+/(.*)@i' , $row [ 'guid' ], $matches ); $test = print_r( $matches , true); |
Valeur de $test :
1 | # Array ( [0] => https: //prod-client.host.fr/test/files/2011/06/204x126.jpg.zip [1] => test/files/2011/06/204x126.jpg.zip ) |
DATE 01 Juin 2011