hi, is there any way i can "transform" /us/abc.php?id=1 to /abc.php?id=1 or /somethingelse/abc.php?id=1
Thanks!
nothing to do with php, its your site directories.
oh, im sorry if I waren't to descriptive. Lets say I get first url from database, and i want it to display without first directory.
copy the file from the "us" directory to and duplicate it to any directorie(s) you want
http://www.php.net/manual/en/ref.strings.php
hai,
One way to get the file portion from your string is to use eregi_replace function.
try this
$file = eregi_replace('[\/]+\/', '', $url);
this will give abc.php out of us/abc.php.
I hope this is what you want..