Back to index

php5  5.3.10
urls.inc
Go to the documentation of this file.
00001 <?php
00002 $urls = array(
00003 // Parsable URLs:
00004 '64.246.30.37',
00005 'http://64.246.30.37',
00006 'http://64.246.30.37/',
00007 '64.246.30.37/',
00008 '64.246.30.37:80/',
00009 'php.net',
00010 'php.net/',
00011 'http://php.net',
00012 'http://php.net/',
00013 'www.php.net',
00014 'www.php.net/',
00015 'http://www.php.net',
00016 'http://www.php.net/',
00017 'www.php.net:80',
00018 'http://www.php.net:80',
00019 'http://www.php.net:80/',
00020 'http://www.php.net/index.php',
00021 'www.php.net/?',
00022 'www.php.net:80/?',
00023 'http://www.php.net/?',
00024 'http://www.php.net:80/?',
00025 'http://www.php.net:80/index.php',
00026 'http://www.php.net:80/foo/bar/index.php',
00027 'http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php',
00028 'http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php?lots=1&of=2&parameters=3&too=4&here=5',
00029 'http://www.php.net:80/this/is/a/very/deep/directory/structure/and/',
00030 'http://www.php.net:80/this/is/a/very/deep/directory/structure/and/file.php',
00031 'http://www.php.net:80/this/../a/../deep/directory',
00032 'http://www.php.net:80/this/../a/../deep/directory/',
00033 'http://www.php.net:80/this/is/a/very/deep/directory/../file.php',
00034 'http://www.php.net:80/index.php',
00035 'http://www.php.net:80/index.php?',
00036 'http://www.php.net:80/#foo',
00037 'http://www.php.net:80/?#',
00038 'http://www.php.net:80/?test=1',
00039 'http://www.php.net/?test=1&',
00040 'http://www.php.net:80/?&',
00041 'http://www.php.net:80/index.php?test=1&',
00042 'http://www.php.net/index.php?&',
00043 'http://www.php.net:80/index.php?foo&',
00044 'http://www.php.net/index.php?&foo',
00045 'http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI',
00046 'www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123',
00047 'http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123',
00048 'http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123',
00049 'http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123',
00050 'http://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123',
00051 'http://secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123',
00052 'http://secret:hid:out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123',
00053 'nntp://news.php.net',
00054 'ftp://ftp.gnu.org/gnu/glic/glibc.tar.gz',
00055 'zlib:http://foo@bar',
00056 'zlib:filename.txt',
00057 'zlib:/path/to/my/file/file.txt',
00058 'foo://foo@bar',
00059 'mailto:me@mydomain.com',
00060 '/foo.php?a=b&c=d',
00061 'foo.php?a=b&c=d',
00062 'http://user:passwd@www.example.com:8080?bar=1&boom=0',
00063 'file:///path/to/file',
00064 'file://path/to/file',
00065 'file:/path/to/file',
00066 'http://1.2.3.4:/abc.asp?a=1&b=2',
00067 'http://foo.com#bar',
00068 'scheme:',
00069 'foo+bar://baz@bang/bla',
00070 'gg:9130731',
00071 'http://user:@pass@host/path?argument?value#etc',
00072 'http://10.10.10.10/:80',
00073 'http://x:?',
00074 'x:blah.com',
00075 'x:/blah.com',
00076 'x://::abc/?',
00077 'http://::?',
00078 'x://::6.5',
00079 'http://?:/',
00080 'http://@?:/',
00081 'file:///:',
00082 'file:///a:/',
00083 'file:///ab:/',
00084 'file:///a:/',
00085 'file:///@:/',
00086 'file:///:80/',
00087 '[]',
00088 'http://[x:80]/',
00089 '',
00090 '/',
00091 
00092 // Severely malformed URLs that do not parse:
00093 'http:///blah.com',
00094 'http://:80',
00095 'http://user@:80',
00096 'http://user:pass@:80',
00097 'http://:',
00098 'http://@/',
00099 'http://@:/',
00100 'http://:/',
00101 'http://?',
00102 'http://?:',
00103 'http://:?',
00104 'http://blah.com:123456',
00105 'http://blah.com:abcdef',
00106 );
00107 
00108 
00109 ?>