Refresh Problem?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Refresh Problem?

    On my toplist i have an automatic refresh on the link going out to the linked site!
    however there is 2 sites that are linked to certain pages but in there links they have %20 (space) in there link

    so it makes my auto refresh would look something simular to this:
    Code:
    echo "<meta http-equiv=\"refresh\" content=\"5; http://somesite.com/a%20space/somewhere.html\">";
    however its refreshing to only half the link: http://somesite.com/a
    and missing out the rest because of the %20 (space)

    Seeming i cant change the sites is there anyway to get this working?

    #2
    This is the only solution i can think of but it doesnt really solve the problem:
    Code:
    $site = "http://somesite.com/a%20space/somewhere.html";
    
    $doh = substr_count($site,"%20");
    if($doh<1){
    echo "<meta http-equiv=\"refresh\" content=\"5; $site\">";
    }
    
    echo "if page doesnt refresh in 5 seconds click <a href=\"$site\">here</a>
    ";
    Any better ideas?

    Comment


      #3
      might be stupid question...
      but really.. why do you need space(%20) in URL ??
      cant you just remove it and everything will work just fine
      It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
      ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
      ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
      キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

      Comment


        #4
        There not my url`s

        Comment


          #5
          problem solved with:

          Code:
          $site = str_replace(" ","%20",$site);
          It must have been converting it from html special charcter in database or somewhere.

          Thanks for your help inca lol

          Comment

          Working...
          X