Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem ze stroną w php, Parse error
-luc sfn-
post
Post #1





Goście







Zapisalem sie do mediaplazy(firma sprzedająca dzwonki itp..) sciągnęlem gotową stronę w php przegralem ja na na moja stronę coś musiałem pomieszć pojawia sie ten error:
Cytat
Parse error: parse error, expecting `T_PAAMAYIM_NEKUDOTAYIM' or `'('' in /home/www/top10-dzwonki.info/_config/config.php on line 21

Warning: Cannot modify header information - headers already sent by (output started at /home/www/top10-dzwonki.info/_config/config.php:21) in /home/www/top10-dzwonki.info/index.php on line 3


tak wygląda index.php:
  1. <?php
  2. include '_config/config.php';
  3. header('location:'.$sDefaultLanguage.'/index.php');
  4. ?>


config.php:
  1. <?php
  2.  
  3. //VHOST : IMPORTANT TO SET
  4. $sVHost = 'szafranq'; // vhost (subdomain)
  5.  
  6. //OTHER GENERAL SETTINGS
  7. $sPageTitle = 'RapMobile'; // Text
  8. $sTitleOrLogo = 'RapMobile'; // Text or Image (Max. 245x60)
  9. $sDefaultLanguage = 'pl'; // Place your default language here
  10. $sHeaderColor = '1'; // 1 to 20 (Headers preview in \"preview/index.php\")
  11. $sShowHeaderDesign = '1'; // 1 = Show, 0 = Hide
  12. $iShowAdultContent = '1'; // 1 = Show, 0 = Hide
  13.  
  14. //META TAGS (for referencing)
  15. $sMetaDESCRIPTION = &#092;"Give a new look to your mobile !\";
  16. $sMetaKEYWORDS = &#092;"polyphonic ringtones, polyphonic, ringtones, nokia ringtones, motorola ring
    t
  17. nes, ring tones, ringing tones, polyphonic ringtones, poly ringtones, polyphonic
  18.  mobile tones, mobile melody, 8110 ringtones, 8210 ringtones, 3210 ringtones, 71
  19. 0 ringtones, 3310 ringtones, 6210 ringtones, Alcatel, Bosch, Ericsson, Maxon, Mi
  20. subishi, Motorola, Nec, Nokia, Panasonic, Philips, Sagem, Samsung, Siemens, Sony
  21.  Telital, Trium\";
  22. $sMetaOWNER = \"www.top10-dzwonki.info\";
  23. $sMetaAUTHOR = \"Mediaplazza\";
  24. $sMetaURL = \"http://top10-dzwonki.info/index.php\" ;
  25.  
  26. // ----------------------
  27. // Edit Display settings
  28. // ----------------------
  29.  
  30. $aDisplay = array(
  31.  
  32. //color
  33.  
  34. //font
  35. 'FontText' => 'Tahoma', // The text style (arial, tahoma, verdana, times, helvetica, sans-serif)
  36.  
  37. //size
  38. 'ContentSizeText' => '10', // The size of all non-link text (in pixel)
  39. 'MenuSizeText' => '11', // Menu Section : Value in pixels
  40. 'HeaderSizeText' => '11', // Titles Section : Value in pixels
  41. 'BoxSizeText' => '10', // Search Box Section : Value in pixels
  42.  
  43. //weight
  44. 'ContentWeightText' => 'normal', // All non-link text : normal or bold
  45. 'MenuWeightText' => 'normal', // Menu Section : normal or bold
  46. 'HeaderWeightText' => 'normal', // Section Titles : normal or bold
  47. );
  48.  
  49.  
  50. // ----------------------
  51. // Edit IFRAMES section
  52. // ----------------------
  53.  
  54. $aiFrame = Array(
  55.  
  56. //Not Editable
  57. 'BackgroundColor' => str_replace('#','',$aDisplay['ContentColor']),
  58. 'PagesFontColor' => str_replace('#','',$aDisplay['ContentColorText']),
  59. 'PagesFontColorOver' => str_replace('#','',$aDisplay['ContentColorTextOver']),
  60. 'TextFontColor' => str_replace('#','',$aDisplay['ContentColorText']),
  61. 'TextFontColorOver'  => str_replace('#','',$aDisplay['ContentColorTextOver']),
  62. 'FontFamily' => $aDisplay['FontText'],
  63. 'IconeColor' => $iIconeColor,
  64.  
  65. //Editable
  66. 'IconeColor' => 8, // 0 to 13 see the readme file for the color chart
  67. 'TextFontSize' => '10', // IFRAME Text Font size
  68. 'TextFontWeight' => 'normal',// IFRAME Text Font weight
  69. 'TextFontDecoOver' => 'underline', // IFRAME Text Decoration while mouseOver (underline or none)
  70. 'PagesFontSize' => '10', // IFRAME Page Font size
  71. 'PagesFontWeight' => 'normal', // IFRAME Page Font weight
  72. 'PagesFontDecoOver' => 'underline', // IFRAME Page Decoration while mouseOver (underline or none)
  73. 'RangChar' => '.', // IFRAME item sepsrator 
  74. 'BorderColor' => '000000', //IFRAME border color
  75.  
  76. );
  77.  
  78. ?>


Jako jezyk w config.php zaznaczylem pl
Cytat
$sDefaultLanguage= 'pl'


to jest index z katalogu pl
Cytat
<?
$sLanguage = 'pl';
include '../_config/header.php';
?>

/* To bylo nie potrzebne - hwao */

Przepraszam ze az tyle tego nawklejałem ale nie wiem, która informacja jest istotna do rozwiazania tego problemu. (IMG:http://forum.php.pl/style_emoticons/default/blink.gif)
Z góry dziękuje za pomoc..

--
moderowany by hwao
Go to the top of the page
+Quote Post

Posty w temacie
- luc sfn   Problem ze stroną w php   15.01.2005, 19:43:15
- - hwao   Zamykam Brak odpowiedniego BBCode, takie duze kody...   15.01.2005, 19:56:46


Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 13:02