yeahz Posted September 17, 2010 Report Share Posted September 17, 2010 (edited) Parse error: syntax error, unexpected T_VARIABLE in .../item.php on line 1 <?php Te ar: Parse error: syntax error, unexpected '{' in .../contacts.php on line 1 <?php uz mana datora viss ok, uz nano.lv pārliku un errori pilns. Kas par vainu? Edited September 17, 2010 by yeahz Quote Link to comment Share on other sites More sharing options...
briedis Posted September 17, 2010 Report Share Posted September 17, 2010 Skaties tur, kur tiek inklūdoti tie faili. Moš shorttagus izmanto, bet nav ieslēgti uz hosta? Quote Link to comment Share on other sites More sharing options...
yeahz Posted September 17, 2010 Author Report Share Posted September 17, 2010 kas ir shorttagi? Quote Link to comment Share on other sites More sharing options...
yeahz Posted September 17, 2010 Author Report Share Posted September 17, 2010 ā, ja tu domā, <? un <?php, tad visur tiek izmantoti <?php Quote Link to comment Share on other sites More sharing options...
briedis Posted September 17, 2010 Report Share Posted September 17, 2010 nu parādi to vietu, kur tiek inklūdoti faili Quote Link to comment Share on other sites More sharing options...
yeahz Posted September 17, 2010 Author Report Share Posted September 17, 2010 index.php ($config['switch_folder'] = "switch") <?php include("header.php"); if (!isset($_GET['page'])) { include($config['switch_folder'] . "/index.php"); } else { if (file_exists($config['switch_folder'] . "/$_GET .php")) include($config['switch_folder'] . "/$_GET .php"); else include($config['switch_folder'] . "/404.php"); } include("footer.php"); ?> htaccess RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/\.]+)/?$ /index.php?page=$1 [QSA,L] # main config Rekur ir, viss notiek caur index.php un htaccessu. PS sākumlapa (switch/index.php) inklūdojas labi. Quote Link to comment Share on other sites More sharing options...
briedis Posted September 17, 2010 Report Share Posted September 17, 2010 Faili ir saglabāti UTF-8 without bom? Quote Link to comment Share on other sites More sharing options...
yeahz Posted September 17, 2010 Author Report Share Posted September 17, 2010 (edited) kolosāli, kāpēc pārmetot failus viņiem viss teksts pāriet vienā rindiņā? izmantoju filezilla. UP! problēma atrisināta, pie pārsūtīšanas bija jāizmanto Režīms: Binārs, nevis ASCII Edited September 17, 2010 by yeahz Quote Link to comment Share on other sites More sharing options...
Faks Posted September 17, 2010 Report Share Posted September 17, 2010 kolosāli, kāpēc pārmetot failus viņiem viss teksts pāriet vienā rindiņā? izmantoju filezilla. UP! problēma atrisināta, pie pārsūtīšanas bija jāizmanto Režīms: Binārs, nevis ASCII iesaku izmantot require vai require_once :) tada veida ir drosak :) 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.