free
This is our archive, please go to the main forum page for the latest discussions and news about free web hosting.


How do i get rid ofa part of a string?

DanBoland
November 23rd, 2000, 13:09
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
November 23rd, 2000, 13:56
$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.

DanBoland
November 23rd, 2000, 22:40
thanks, but thats not what i meant. But i found a better way to do what i wanted to do.





  
  News · Search free hosts · Free file hosting · Free image hosting · Reviews · Forums · Related Links · Advertising Info · Contact Us


Copyright © 1996-2008 Per Olof Sandholm. All rights reserved. Privacy Statement

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum