vitalja Posted May 25, 2013 Report Share Posted May 25, 2013 Man ir problēma ar lapu dizainēšanu, problēma ir tāda, ka iclude fails izveido atstarpes. Atvērot pirmkodu tas izskatās kā " " Vai var kautkā izvairīties no šo atstarpju veidošanās. Quote Link to comment Share on other sites More sharing options...
codez Posted May 25, 2013 Report Share Posted May 25, 2013 nelieto aizverošo ?> pēc kura bieži ir kaudze ar atstarpēm Quote Link to comment Share on other sites More sharing options...
vitalja Posted May 25, 2013 Author Report Share Posted May 25, 2013 Bet vai tas nesabojās visu lapas drošību? Varbūt tās atstarpes var kautkādā viedā ignorēt? Quote Link to comment Share on other sites More sharing options...
marrtins Posted May 25, 2013 Report Share Posted May 25, 2013 Jā - vari droši ignorēt :D Quote Link to comment Share on other sites More sharing options...
vitalja Posted May 25, 2013 Author Report Share Posted May 25, 2013 Jā - vari droši ignorēt :D Nē, es ar vārdu ignorēt, gribēju pateikt, ka man vajag lai serveris tos ignorē. Man bija izdavies atrisināt šo problēmu iekš Google-Chrome un Opera izmantojot float, bet diemžēl Internet explorer pārlūkprogrammā šī problēma netiek atrisināta. Varbūt kāds zinās kāds ir iemesls šai problēmai? Quote Link to comment Share on other sites More sharing options...
F3llony Posted May 25, 2013 Report Share Posted May 25, 2013 Iemesls šai problēmai ir blīve starp krēslu un monitoru. Pateica tev, aizvāc aizverošos PHP tegus. Drošība... Quote Link to comment Share on other sites More sharing options...
vitalja Posted May 25, 2013 Author Report Share Posted May 25, 2013 Iemesls šai problēmai ir blīve starp krēslu un monitoru. Pateica tev, aizvāc aizverošos PHP tegus. Drošība... <html> <head> <?php $title="lapa"; include 'part/head.php'; ?> </head> <body> <div align="center"> <?php include_once 'part/header.php'; include 'part/content.php'; include 'part/footer.php'; ?> </div> </body> </html> Man atstarpes veidojas include() sākumā nevis beigās. Aizvācot "?>", </div> </body> </html> paliek iekš php koda. Quote Link to comment Share on other sites More sharing options...
marrtins Posted May 25, 2013 Report Share Posted May 25, 2013 Mja. Quote Link to comment Share on other sites More sharing options...
F3llony Posted May 25, 2013 Report Share Posted May 25, 2013 include_once 'part/header.php'; include 'part/content.php'; include 'part/footer.php'; Šajos failos aizvāc aizverošos PHP tegus vai tukšās rindas failu sākumā/beigās!!!! Quote Link to comment Share on other sites More sharing options...
blackhalt Posted May 25, 2013 Report Share Posted May 25, 2013 (edited) Un kā ar UTF BOM? Edited May 25, 2013 by blackhalt Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 25, 2013 Report Share Posted May 25, 2013 Lol, PHPisti... ;D Quote Link to comment Share on other sites More sharing options...
F3llony Posted May 25, 2013 Report Share Posted May 25, 2013 Nesāc šito topiku. A to es arī lol pythonistus varu pameklēt... 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.