SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    psycho
    Join Date
    May 2000
    Location
    London
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.hiphopmusic.co.uk/images/...pics/james.gif

    how would i take from that string "james.gif" and put it into a new var.

    thanks
    james

  2. #2
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't quite understand - do you want the var to contain the entire URL?

  3. #3
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $url = "http://www.hiphopmusic.co.uk/images/contactpics/james.gif";

    $data = explode("/", $url);

    $var = $data[count($data) - 1];
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •