Jump to content
php.lv forumi

Rodas miotiska atstarpe <?php ?>


vitao.web

Recommended Posts

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 by vitao.web
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by vitao.web
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...