/* VRx_Fparse - parse URL and filespec to pull out componenet bits */ /* Breakdown: 1) http://example.com/path1/path2/path3/file.ext VRx_e_protocol = http VRx_e_full = http://example.com/path1/path2/path3/file.ext VRx_e_dirpath = http://example.com/path1/path2/path3/ // always ends w slash VRx_e_fqdn = example.com VRx_e_fqdnpath = com/example VRx_e_docroot = /f1/home/sexton/www/com/example VRx_e_filepath = path1/path2/path3/file.ext // no leading slash VRx_e_path = /path1/path2/path3 // starts with and never ends with, slash VRx_e_dir = path3 // no slashes, ever VRx_e_filename = file.ext VRx_e_file = file VRx_e_ext = ext VRx_e_script = script name 2) /f1/home/sexton/www/home.html VRx_i_full = /f1/home/sexton/www/net/killi/images/b/BIV/image29t.jpg VRx_i_path = /f1/home/sexton/www/net/killi/images/b/BIV // starts with, never ends with, slash VRx_i_dir = BIV VRx_i_dirpath = /b/BIV VRx_i_filename = image29t.jpg VRx_i_file = image29t VRx_i_basename = image29 VRx_i-sizechar = t VRx_i_ext = jpg VRx_i_typ = 0 // 0 = data, 1 = symlink to file 2 REL hyperlink, 3 hyperlink Actual program output Aug 2014: VRx_i_full = /f1/home/sexton/www/net/killi/images/b/BIV/image29x.jpg VRx_i_path = /f1/home/sexton/www/net/killi/images/b/BIV VRx_i_filename = image29x.jpg VRx_i_dir = BIV VRx_i_dirpath = /b/BIV VRx_i_file = image29x VRx_i_basename = VRx_i_sizechar = VRx_i_ext = jpg */