D DanBoland New Member Nov 23, 2000 #1 If i had a string like this: $a = "/home/name/public_html/dir/dir2/index.html"; how could i make $b = "/dir/dir2/index.html"; Any one know?
If i had a string like this: $a = "/home/name/public_html/dir/dir2/index.html"; how could i make $b = "/dir/dir2/index.html"; Any one know?
KapTinKiRk New Member Nov 23, 2000 #2 Code: $BaseDir = "/home/name/public_html"; $a = "$BaseDir/dir/dir2/index.html"; $b = "$BaseDir/dir/dir3/index.html"; If thats not what you mean, then be more specific.
Code: $BaseDir = "/home/name/public_html"; $a = "$BaseDir/dir/dir2/index.html"; $b = "$BaseDir/dir/dir3/index.html"; If thats not what you mean, then be more specific.
D DanBoland New Member Nov 24, 2000 #3 thanks, but thats not what i meant. But i found a better way to do what i wanted to do.