Regular expression i htaccess regex, PCRE, POSIX, upotreba Apache .htaccess , mod_rewrite |
|
Alati teme | Način prikaza |
29. 07. 2007. | #28 |
Predrag Supurović
Grand Master
Datum učlanjenja: 24.01.2006
Lokacija: Užice
Poruke: 791
Hvala: 3
200 "Hvala" u 12 poruka
|
Samo da dopunim:
Kôd:
// // function url_root () // Return root level of site // This works if function is called from script which is in the root of the site, // or if script is included by other script which is in the root. // function url_root() { $m_result = "http://" . $_SERVER['HTTP_HOST'] . str_replace('\\', '/', dirname ($_SERVER['SCRIPT_NAME'])); if (substr($m_result, -1,1) !== "/"){ $m_result .= '/'; } return $m_result; } Imas srece sto se i ja bas bakcem sa istim problemom. Ideja sa <base href= > koja je izneta ovde mi se bas potrefila tako da mi je sad stvar mnogo jednostavnije od umetanja apsolutnih putanja za ama bas sve na strani.
__________________
Peđina beležnica (blog) - www.uzice.net - wireless.uzice.net - www.vokabular.org - www.vodic.net - forum.uzice.net |
|
|
Slične teme | ||||
Tema | Početna poruka teme | Forum | Odgovori | Poslednja poruka |
Double float problem - resen, ali ima dodatni problem :0 | ljtruba | (X)HTML, JavaScript, DHTML, XML, CSS | 34 | 23. 08. 2008. 02:28 |