Pomoc - Szukaj - U¿ytkownicy - Kalendarz
Pe³na wersja: Problem ze stron± w php
Forum PHP.pl > Forum > Przedszkole
luc sfn
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. 'BackgroundColor' => '#FFA500', // Hexadecimal (#questionmark.gifquestionmark.gifquestionmark.gif) or Color Name
  32.  
  33. //color
  34. 'ContentColor' => '#EC780B', // Hexadecimal (#questionmark.gifquestionmark.gifquestionmark.gif)
  35. 'ContentColorOver' => '#F6A646', // Hexadecimal (#questionmark.gifquestionmark.gifquestionmark.gif) or Color Name
  36. 'ContentColorText' => '#FFFFFF', // Hexadecimal (#questionmark.gifquestionmark.gifquestionmark.gif)
  37. 'ContentColorTextOver' => '#FFFFFF', // Hexadecimal (#questionmark.gifquestionmark.gifquestionmark.gif)
  38. 'HeaderColorText' => '#000000', // Hexadecimal (#questionmark.gifquestionmark.gifquestionmark.gif)
  39.  
  40. //font
  41. 'FontText' => 'Tahoma', // The text style (arial, tahoma, verdana, times, helvetica, sans-serif)
  42.  
  43. //size
  44. 'ContentSizeText' => '10', // The size of all non-link text (in pixel)
  45. 'MenuSizeText' => '11', // Menu Section : Value in pixels
  46. 'HeaderSizeText' => '11', // Titles Section : Value in pixels
  47. 'BoxSizeText' => '10', // Search Box Section : Value in pixels
  48.  
  49. //weight
  50. 'ContentWeightText' => 'normal', // All non-link text : normal or bold
  51. 'MenuWeightText' => 'normal', // Menu Section : normal or bold
  52. 'HeaderWeightText' => 'normal', // Section Titles : normal or bold
  53. );
  54.  
  55.  
  56. // ----------------------
  57. // Edit IFRAMES section
  58. // ----------------------
  59.  
  60. $aiFrame = Array(
  61.  
  62. //Not Editable
  63. 'BackgroundColor' => str_replace('#','',$aDisplay['ContentColor']),
  64. 'PagesFontColor' => str_replace('#','',$aDisplay['ContentColorText']),
  65. 'PagesFontColorOver' => str_replace('#','',$aDisplay['ContentColorTextOver']),
  66. 'TextFontColor' => str_replace('#','',$aDisplay['ContentColorText']),
  67. 'TextFontColorOver'  => str_replace('#','',$aDisplay['ContentColorTextOver']),
  68. 'FontFamily' => $aDisplay['FontText'],
  69. 'IconeColor' => $iIconeColor,
  70.  
  71. //Editable
  72. 'IconeColor' => 8, // 0 to 13 see the readme file for the color chart
  73. 'TextFontSize' => '10', // IFRAME Text Font size
  74. 'TextFontWeight' => 'normal',// IFRAME Text Font weight
  75. 'TextFontDecoOver' => 'underline', // IFRAME Text Decoration while mouseOver (underline or none)
  76. 'PagesFontSize' => '10', // IFRAME Page Font size
  77. 'PagesFontWeight' => 'normal', // IFRAME Page Font weight
  78. 'PagesFontDecoOver' => 'underline', // IFRAME Page Decoration while mouseOver (underline or none)
  79. 'RangChar' => '.', // IFRAME item sepsrator 
  80. 'BorderColor' => '000000', //IFRAME border color
  81.  
  82. );
  83.  
  84. ?>


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. blink.gif
Z góry dziêkuje za pomoc..

--
moderowany by hwao
hwao
Zamykam
Brak odpowiedniego BBCode, takie duze kody wklejamy osobno spowoalnia to wysyzukiwarke (dajemy link).

w 21 lini pliku config.php masz blad (cos zle zapislem ale dales quote to nie bede liczyl ktora to 21 linia...).
Daj w index.php w 1 linijce
ob_start" title="Zobacz w manualu PHP" target="_manual()
i bedzie odbrze.
To jest wersja lo-fi g³ównej zawarto¶ci. Aby zobaczyæ pe³n± wersjê z wiêksz± zawarto¶ci±, obrazkami i formatowaniem proszê kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.