jam Posted August 11, 2005 Report Share Posted August 11, 2005 ir ceļš $dir = $_SERVER['DOCUMENT_ROOT'] . '/usr_img/-PORTFOLIO-/dizains/'; ir nosacījums if(!is_dir($dir)) die('Error: <b>'.$dir.'</b> is an invalid directory.'); diemžēl šis nosacījums piepildās, kāpēc? arī opendir($dir) to nevar attaisīt. Lokāli uz windouzes strādā kā vajag, bet visu pārkopējot uz linuxveidīgā, nefiga! a bet ko lai dar? Link to comment Share on other sites More sharing options...
bubu Posted August 11, 2005 Report Share Posted August 11, 2005 Un ko echo $dir; saka? Link to comment Share on other sites More sharing options...
jam Posted August 11, 2005 Author Report Share Posted August 11, 2005 Un ko echo $dir; saka? 20788[/snapback] rāda pavisam pilnu ceļu home/private/XXX/home/XXX/htdocs/usr_img/-PORTFOLIO-/dizains/ Link to comment Share on other sites More sharing options...
v3rb0 Posted August 11, 2005 Report Share Posted August 11, 2005 home nav /home Link to comment Share on other sites More sharing options...
jam Posted August 11, 2005 Author Report Share Posted August 11, 2005 (edited) home nav /home 20790[/snapback] sorry, nenokopējās. rāda ar visu / tb rāda pilno ceļu kā vajaga ar / sākumā, bet diru nevar nolasīt. Edited August 11, 2005 by jam Link to comment Share on other sites More sharing options...
v3rb0 Posted August 11, 2005 Report Share Posted August 11, 2005 LiElIe un mAzIe burti pareizi - atskiribaa no win linuks skataas uz burtu case? Link to comment Share on other sites More sharing options...
Analgiins Posted August 11, 2005 Report Share Posted August 11, 2005 iespeejams, ka uz wondozes nestraadaa, jo $_SERVER['DOCUMENT_ROOT'] satur pilnu celju, resp., D:\public_html\path\to\dir tieshi tas D: arii nepatiik Link to comment Share on other sites More sharing options...
jam Posted August 11, 2005 Author Report Share Posted August 11, 2005 iespeejams, ka uz wondozes nestraadaa, jo $_SERVER['DOCUMENT_ROOT'] satur pilnu celju, resp., D:\public_html\path\to\dirtieshi tas D: arii nepatiik 20793[/snapback] Uz windozes tieši strādā Link to comment Share on other sites More sharing options...
Analgiins Posted August 11, 2005 Report Share Posted August 11, 2005 (edited) ui, sajaucu! (kas man shodien ir? :)) a ko uz linuxveidiiga izvada tas DOCUMENT_ROOT ah, ja redzu Edited August 11, 2005 by Analgiins Link to comment Share on other sites More sharing options...
jam Posted August 11, 2005 Author Report Share Posted August 11, 2005 LiElIe un mAzIe burti pareizi - atskiribaa no win linuks skataas uz burtu case? 20792[/snapback] atradu vainu. daudz skatoties kodā bija aklums piemeties uz vienu lieku foldera nosaukumu :))) Paldies Link to comment Share on other sites More sharing options...
Toms Posted August 11, 2005 Report Share Posted August 11, 2005 (edited) kameer daudzi sho lasa: Kaa labaak - <link href="..styles/styles.css" rel="stylesheet" type="text/css" /> VAI <link href="http://adrese.lv/mape/styles/styles.css" rel="stylesheet" type="text/css" /> edit: Ar domu, lai nav jaaliek dazhiem failem ar ../ Edited August 11, 2005 by Toms Link to comment Share on other sites More sharing options...
bubu Posted August 11, 2005 Report Share Posted August 11, 2005 <link href="/direktoria/styles/styles.css" rel="stylesheet" type="text/css" /> Link to comment Share on other sites More sharing options...
Toms Posted August 11, 2005 Report Share Posted August 11, 2005 bubu, kāpēc? Tad man būs divi mainīgie: $strStyle = '<link href="/styles/styles.css" rel="stylesheet" type="text/css" />'; UN $strStyleUp = '<link href="../styles/styles.css" rel="stylesheet" type="text/css" />'; Bet vareetu iztikt bez manīgajiem veinkārši norādot ar pilnu lapas adresi... (es ar require('header.php')) Link to comment Share on other sites More sharing options...
Analgiins Posted August 11, 2005 Report Share Posted August 11, 2005 es daru shitaa: vispirms <base href="http://adrese.lv/mape/styles/"> un peec tam <link href="styles.css" rel="stylesheet" type="text/css" /> Link to comment Share on other sites More sharing options...
Toms Posted August 11, 2005 Report Share Posted August 11, 2005 <base href="http://adrese.lv/mape/styles/"> <link href="styles.css" rel="stylesheet" type="text/css" /> nav ērtāk aizstāt ar <link href="http://adrese.lv/mape/styles/styles.css" rel="stylesheet" type="text/css" /> Ja tas tiek izmantots visos failos headerī. Lai apakšfailiem nebūtu jāizmaina headeris ar šo ../ Link to comment Share on other sites More sharing options...
Recommended Posts