vitao.web Posted August 6, 2010 Report Share Posted August 6, 2010 (edited) Labdien! Piedodiet, ka atkal uzplijos, bet kādēļ , ja es piemeram include menu, tad vinam augsa ir kaut kada mistiska atkape? vienalga tiklidz <?php require funkcija ?> tiek izveidoti , ta mistiska atstarpe paradas. kadel ta? Edited August 6, 2010 by vitao.web Quote Link to comment Share on other sites More sharing options...
sheps Posted August 6, 2010 Report Share Posted August 6, 2010 atstarpe kur? menu? konkrētāk formolē problēmu.. Quote Link to comment Share on other sites More sharing options...
vitao.web Posted August 6, 2010 Author Report Share Posted August 6, 2010 atstarpe kur? menu? konkrētāk formolē problēmu.. Respektīvi tiklidz izmantoju require funkciju , tad rodas atstarpe virs vinas.. PIEMERS <?php require "tiles/header.php";?> tad virs ta ielikta hedera bus atstarpe kaut kada nevieta :( Quote Link to comment Share on other sites More sharing options...
ArnisR Posted August 6, 2010 Report Share Posted August 6, 2010 Man agrāk bija līdzīga problēma, kad pirms iekļautā faila parādās "mistiska" atstarpe. Izrādās, ka tas fails tika saglabāts UTF-8 kodējumā kopā ar BOM simboliem - http://en.wikipedia.org/wiki/Byte_order_mark . Lai to novērstu, vajag mainīt editora uzstādijumus, lai failus saglabā bez BOM simboliem. Quote Link to comment Share on other sites More sharing options...
sheps Posted August 6, 2010 Report Share Posted August 6, 2010 (edited) ko izmanto kā editoru? ps: info tepat forumā ir par BOM.. pameklē tikai :) ja neesi dzirdējis neko par šito lietu tad tur buus diezgan labi pastaastīts.. Edited August 6, 2010 by sheps Quote Link to comment Share on other sites More sharing options...
vitao.web Posted August 6, 2010 Author Report Share Posted August 6, 2010 (edited) HTMLPad 2010 izmantoju. Itka visi faili saglabati ka utf-8 bez ta BOM. Itka agrāk tādas lietas nebija :( Tikko pamaniju ari to ka ieklaujot configuration.php failu ari rodas atstarpe.. Viss ir taja UTF-8 saglabats... kas pa vainu nezinu :( Edited August 6, 2010 by vitao.web Quote Link to comment Share on other sites More sharing options...
vitao.web Posted August 6, 2010 Author Report Share Posted August 6, 2010 Nevienam tiešām nenāk nekādas idejas prātā, kas varētu būt par vainu? Quote Link to comment Share on other sites More sharing options...
briedis Posted August 6, 2010 Report Share Posted August 6, 2010 Tiešām, VISUS failus pārbaudīji, vai ir UTF-8 bez BOM? Quote Link to comment Share on other sites More sharing options...
vitao.web Posted August 6, 2010 Author Report Share Posted August 6, 2010 Tiešām, VISUS failus pārbaudīji, vai ir UTF-8 bez BOM? Tiešām 3 x pārbaudīju... Citas idejas nav, kas varētu but pa vainu ? :( Quote Link to comment Share on other sites More sharing options...
briedis Posted August 6, 2010 Report Share Posted August 6, 2010 Pārbaudi vēlreiz... Quote Link to comment Share on other sites More sharing options...
vitao.web Posted August 6, 2010 Author Report Share Posted August 6, 2010 Pārbaudi vēlreiz... visi .php un .css .js ir ar UTF-8 pārbaudīju 5 x Quote Link to comment Share on other sites More sharing options...
vitao.web Posted August 6, 2010 Author Report Share Posted August 6, 2010 P.S a tas nevarētu būt tādēļ ka man css failā ir šādas rindiņas? Vnk nekad neesmu neko tadu meginajis. #header{background: url(../image/header.png);height: 170px;width: 100%; display: table;margin: 0px auto 0px auto;} Quote Link to comment Share on other sites More sharing options...
briedis Posted August 6, 2010 Report Share Posted August 6, 2010 Nu pag, tev tā mistiskā atstarpe kāda izskatās? Kā tukšumsibols vai kas? Vajag UTF-8 without BOM, nevis vienkārši UTF-8. Quote Link to comment Share on other sites More sharing options...
vitao.web Posted August 6, 2010 Author Report Share Posted August 6, 2010 Nu pag, tev tā mistiskā atstarpe kāda izskatās? Kā tukšumsibols vai kas? Vajag UTF-8 without BOM, nevis vienkārši UTF-8. Izpaužās ka 2 <br /> simboli aptuveni..maybe 3... Es tos kodejumus mainijis vairakas reizes nebus ta ta ista vaina :( Quote Link to comment Share on other sites More sharing options...
briedis Posted August 6, 2010 Report Share Posted August 6, 2010 Tu apskatīji source, kas tur reāli ir? Moš tur arī ir 2 br? :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.