Results 1 to 2 of 2

Thread: need help replacing Str replace url with another url address

  1. #1
    Join Date
    May 2007
    Posts
    23
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Post need help replacing Str replace url with another url address

    ok i am ready runnng a script using someting like
    PHP Code:
    http://dl1.hostname.net/stream/6fd7f25ef86cfcdd92c560ad8e7d6f3e/1245802950/61591093/SAKKU%201_chunk_1.wmv 
    PHP Code:
    $a http://dl1.hostname.net/stream/6fd7f25ef86cfcdd92c560ad8e7d6f3e/1245802950/61591093/SAKKU%201_chunk_1.wmv 
    $a generates this link above but before it gets generated i want to replace the

    PHP Code:
    $aonly part of the url from /streamto /download
    how would i do this is it something like this
    PHP Code:
     $astr_replace("/stream/ ""/download/"$a); 
    i need help thanks questions how would i do this in to a php code
    replacing above url /stream/ with /download/

    in php code plz help

  2. #2
    Join Date
    Jul 2008
    Posts
    199
    Thanks
    6
    Thanked 58 Times in 57 Posts

    Default

    PHP Code:
    $a str_replace('/stream/''/download/'$a); 

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
  •