|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-10-11 22:54 UTC] onionman at home dot se
Snapshot used: php4-win32-200210120200.zip This simple script parses an ftp-url: <?php $url = "ftp://gandalf:mellon@www.moria.com/foo/bar/index.php?page=news"; $parts = parse_url($url); echo '<pre>'."\n"; echo print_r($parts)."\n"; echo '</pre>'."\n"; ?> When i run the script i get this output: Array ( [scheme] => ftp [host] => www.moria.com [user] => gandalf [pass] => mello [path] => /foo/bar/index.php [query] => page=news ) 1 Note the cropped password value... it is cropped by one charachter... last snapshot i tested (2002-10-06) did not have this behaviour. BTW: What does the 1 that is output after the value pairs mean? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 10:00:01 2025 UTC |
I just tried this snap: php4-win32-200210121400.zip The result is different, but still incorrect: Array ( [scheme] => ftp [host] => ww.moria.com [user] => gandalf [pass] => :mellon@ [path] => /foo/bar/index.php [query] => page=news ) host & pass values are wrong... /OnionMan