Jul. 16th, 2008

alexkuklin: (Default)

Please note that parse_url seems not to produce always the same results when passing non-standard urls.

Eg. I was using this code since 2005 (both under PHP 4.3.10 and PHP 5.2.3) :

<?php
 $p = parse_url ( 'http://domain.tld/tcp://domain2.tld/dir/file' ) ;
 $d2 = parse_url ( $p['path'] ) ;
 echo $d2 ;  // returns '/dir/file'
?>


o_O

пыпых в своем репертуаре
руки отрывать за такое, имхо
alexkuklin: (Default)
КМ гениален.

ужаснуться )

Profile

alexkuklin: (Default)
alexkuklin

January 2020

S M T W T F S
    1234
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 25th, 2025 04:36 am
Powered by Dreamwidth Studios