Re: How to change frame url to be absolute?

  •  02-20-2010, 8:50 AM

    Re: How to change frame url to be absolute?

    I dont know how u implemented this, i guess that not good, cause it is not working, so i decided to write own function.
     
    I replaced this in include file

    1. $this->FilesPath=dirname($this->GetWebPath(__FILE__)); 

     with this:
    1. $aURI = explode('/'$_SERVER['SCRIPT_NAME']);  
    2. array_pop($aURI);  
    3. $sURI = implode('/'$aURI);  
    4. $sURI .= '/';  
    5. $sURL = 'http://' . $_SERVER['HTTP_HOST'] . $sURI;  
    6.     $this->FilesPath=$sURL.$this->FilesPath; 
     and now everything is working
View Complete Thread