Duplicating php files

Okay, lol, I will stick on here. :slight_smile:

Hi, I thought I would get this one out of the way quickly.

I have got this so far:

<?php $url = "http://www.blu-byte.co.cc/members/profile/Admin/profile.php"; echo "explode("/",$str)"; ?>

How would I then take the correct part of the array and store it in a variable. I guess it is quite simple.

[php]

<?php $url = "http://www.blu-byte.co.cc/members/profile/Admin/profile.php"; $name = explode("/",$url,-1); $name = end($name); echo $name; ?>[/php]

Would the output of that be ‘Admin’?

yes Admin
why don’t you test it

I just did! It works! Thanks so much! Anything I can do? Since I have just wasted like 1 hour of ur life :confused:

Sponsor our Newsletter | Privacy Policy | Terms of Service