php - Removing empty lines with notepad++ causes T_Variable Syntax Error -
removing empty lines in notepad++
as described in thread above able remove empty lines notepad++. did try methods receiving weird t_variable syntax errors (mostly in line 1-6). there no error in lines , can not see 1 anywhere.
it happens when manually delete empty lines in areas of code (first 5 lines example). guessing encoding problem reencoding in utf-8, ascii etc. did not help.
those lines added when used online editor webhoster couple of months ago (1 empty line between lines there before).
i not it, maybe (thanks in advance!). file @ http://lightningsoul.com/index.php
and here first block of code:
<?php include("db/lg_db_login.php"); //require 'fb/facebook.php'; if (isset($_get['c'])) { $content = $_get['c']; } else { $content = ""; } if (isset($_get['sc'])) { $subcontent = $_get['sc']; } else { $subcontent = ""; } if (isset($_get['setlang'])) { $setlang = $_get['setlang']; } else { $setlang = "eng"; } $cat = $_get['cat']; // check if lightningsoul.de or .com $findme = '.de'; $posde = strpos($thisurl, $findme); // note our use of ===. == not work expected // because position of 'a' 0th (first) character. if ($posde === false) { $lang = "en"; } else { $lang = "de"; } include("db/pageturn_class.php"); $findstr = '/lightningsoulcom'; $isapp = strpos($thisurl, $findstr); // beachten sie die verwendung von ===. ein einfacher vergleich (==) liefert // nicht das erwartete ergebnis, da die position von 'a' die nullte stelle // (also das erste zeichen) ist /*if ($isapp == false) { $getstyle = "css/get_style.php"; } else { $getstyle = "css/get_style_small.php"; } */ ?> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
the problem in line 181 (notepad++?!) must have changed
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
to
<meta http-equiv="content-type" content="text/html; charset=windows-1250" />
that produced lots of errors 1 expect. found removing head part part.
Comments
Post a Comment