Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Include ?, nie odczytuje czy co ?
NiktUs
post
Post #1





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 4.08.2003

Ostrzeżenie: (0%)
-----


czesc chce wstawic w ten kod < ? include("wczytaj.php"); ?>

  1. <meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\"><?
  2. $indexloaded=1;
  3. include(&#092;"config/config.php\");
  4. include(&#092;"$dir[func]/global.php\");
  5. include(&#092;"$dir[func]/loginforms.php\");
  6.  
  7. force_login();
  8.  
  9. $tablehead=table_head(&#092;"show\",\"100%\",\"\",\"left\");
  10. $tablefoot=table_foot(&#092;"show\");
  11.  
  12. $bannerhead=table_head(&#092;"show\",\"488\",\"80\",\"left\");
  13. $bannerfoot=table_foot(&#092;"show\");
  14.  
  15. $out[body]=$out[body].&#092;"
  16. <center>
  17. $bannerhead
  18. $out[banner]
  19. $bannerfoot
  20.  
  21. <br>
  22. $tablehead
  23. &nbsp; &nbsp;<strong><font class='catfont'>$site[longname] Forum</font></strong><br>
  24. <hr class='catfont' size='1'>
  25.  
  26. tu chce to wstawic !! ale sie nieda pomozcie !! np <? include(&#092;"wczytaj\"); ?>
  27.  
  28. $tablefoot\";
  29.  
  30.  
  31.  
  32. include(\"$dir[curtheme]\");

nie wiem juz sam oco chodzi nie odczytuje tego czy co zadnych bledow nie pokazuje
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 13)
bregovic
post
Post #2





Grupa: Zarejestrowani
Postów: 562
Pomógł: 15
Dołączył: 8.08.2003
Skąd: Denmark/Odense

Ostrzeżenie: (0%)
-----


to powinno wygladac tak:
  1. <meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\">
  2. <?php
  3. $indexloaded=1;
  4. include(&#092;"config/config.php\");
  5. include(&#092;"$dir[func]/global.php\");
  6. include(&#092;"$dir[func]/loginforms.php\");
  7.  
  8. force_login();
  9.  
  10. $tablehead=table_head(&#092;"show\",\"100%\",\"\",\"left\");
  11. $tablefoot=table_foot(&#092;"show\");
  12.  
  13. $bannerhead=table_head(&#092;"show\",\"488\",\"80\",\"left\");
  14. $bannerfoot=table_foot(&#092;"show\");
  15.  
  16. $out[body]=$out[body].&#092;";
  17. print '<center>';
  18. print $bannerhead.$out[banner].$bannerfoot;
  19.  
  20. print '<br>'.$tablehead.'&nbsp; &nbsp;<strong><font class=\"catfont\">'.$site[longname].' Forum</font></strong><br><hr class=\"catfont\" size=\"1\">';
  21.  
  22. include(&#092;"wczytaj.php\");
  23.  
  24. print $tablefoot&#092;";
  25.  
  26. include(&#092;"$dir[curtheme]\");
  27. ?>


generalnie musisz stary poczytac ciut o podstawach php jak i standardach html (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
Go to the top of the page
+Quote Post
NiktUs
post
Post #3





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 4.08.2003

Ostrzeżenie: (0%)
-----


nie dziala to dalej wyswietla ten blad (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
Kod
Parse error: parse error, unexpected T_STRING in c:\usr\krasnal\www\liga\news.php on line 26


Ten post edytował NiktUs 27.06.2004, 16:17:31
Go to the top of the page
+Quote Post
bregovic
post
Post #4





Grupa: Zarejestrowani
Postów: 562
Pomógł: 15
Dołączył: 8.08.2003
Skąd: Denmark/Odense

Ostrzeżenie: (0%)
-----


na 25 linii kodu powinno byc
  1. <?php
  2. print $tablefoot;
  3. ?>

zamiast
  1. <?php
  2. print $tablefoot&#092;";
  3. ?>
Go to the top of the page
+Quote Post
NiktUs
post
Post #5





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 4.08.2003

Ostrzeżenie: (0%)
-----


dalej niedziala (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
Go to the top of the page
+Quote Post
bregovic
post
Post #6





Grupa: Zarejestrowani
Postów: 562
Pomógł: 15
Dołączył: 8.08.2003
Skąd: Denmark/Odense

Ostrzeżenie: (0%)
-----


a zadnych errorow nie daje?
Go to the top of the page
+Quote Post
NiktUs
post
Post #7





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 4.08.2003

Ostrzeżenie: (0%)
-----


daje ten error
Kod
Parse error: parse error, unexpected T_STRING in c:\usr\krasnal\www\liga\news.php on line 26

juz nie wiem oco chodzi nie wpisze include to dziala ale chce wywolac przez ten plik
Go to the top of the page
+Quote Post
kicaj
post
Post #8





Grupa: Zarejestrowani
Postów: 1 640
Pomógł: 28
Dołączył: 13.02.2003
Skąd: Międzyrzecz/Poznań

Ostrzeżenie: (0%)
-----


  1. <?php
  2. print '<center>';
  3. print $bannerhead.$out[banner].$bannerfoot;
  4.  
  5. print '<br>'.$tablehead.'&nbsp; &nbsp;<strong><font class=\"catfont\">'.$site[longname].' Forum</font></strong><br><hr class=\"catfont\" size=\"1\">'; //tu przed \" dodalem 
  6.  
  7. include(&#092;"wczytaj.php\");
  8.  
  9. print $tablefoot; //tu tez usunalem
  10.  
  11. include(&#092;"$dir[curtheme]\");
  12. ?>

Problem tkwil w cudzyslowach w kodzie HTML

Ten post edytował kicaj_ 27.06.2004, 19:46:49
Go to the top of the page
+Quote Post
bregovic
post
Post #9





Grupa: Zarejestrowani
Postów: 562
Pomógł: 15
Dołączył: 8.08.2003
Skąd: Denmark/Odense

Ostrzeżenie: (0%)
-----


ale jesli zamykam string uzywajac ' to wewnatrz stringu moge uzyc " bez \ - czy sie myle?
Go to the top of the page
+Quote Post
kicaj
post
Post #10





Grupa: Zarejestrowani
Postów: 1 640
Pomógł: 28
Dołączył: 13.02.2003
Skąd: Międzyrzecz/Poznań

Ostrzeżenie: (0%)
-----


Cytat(bregovic @ 2004-06-27 21:09:46)
ale jesli zamykam string uzywajac ' to wewnatrz stringu moge uzyc " bez \ - czy sie myle?

Skopiuj, wklej, odpal plik i zobacz...
Go to the top of the page
+Quote Post
NiktUs
post
Post #11





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 4.08.2003

Ostrzeżenie: (0%)
-----


kicaj (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) dziala ale nie w ramkach bo te zmienne to byly ramki configi itd wez to zrob tak jak jest napoczatku i wplec tam twoj kod (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) bede wdzięczny
Go to the top of the page
+Quote Post
kicaj
post
Post #12





Grupa: Zarejestrowani
Postów: 1 640
Pomógł: 28
Dołączył: 13.02.2003
Skąd: Międzyrzecz/Poznań

Ostrzeżenie: (0%)
-----


  1. <?php
  2. $indexloaded = 1;
  3.  
  4. include( &#092;"config/config.php\");
  5. include( $dir[func].&#092;"/global.php\" ); //zmienna moze byc poza cudzyslowami
  6. include( $dir[func].&#092;"/loginforms.php\" );
  7.  
  8. force_login();
  9.  
  10. $tablehead = table_head( &#092;"show\", \"100%\", \"\", \"left\" );
  11. $tablefoot = table_foot( &#092;"show\" );
  12.  
  13. $bannerhead = table_head( &#092;"show\", \"488\", \"80\", \"left\" );
  14. $bannerfoot = table_foot( &#092;"show\" );
  15.  
  16. $out[body] = $out[body]; //tu jakis cudzyslow usunalem, nie wiem po co on byl!?
  17.  
  18. echo &#092;"<center>\" . $bannerhead . $out[banner] . $bannerfoot; //uzywj echo zamist print, tak jest zalecane
  19.  
  20. echo &#092;"<br />\" . $tablehead. \"&nbsp; &nbsp;<strong><font class=\"catfont\\">\" . $site[longname] . \" Forum</font></strong><br><hr class=\"catfont\" size=\"1\">\"; //najbardziej przerobiona linika
  21.  
  22. include( &#092;"wczytaj.php\" );
  23.  
  24. echo $tablefoot; //niewiadomo skad byl tu cudzyslow!?
  25.  
  26. include( $dir[curtheme] ); //jezeli jest to zmienna to nie uzywaj cudzyslow
  27.  
  28. ?>
Pozmienialem i zrobilem powyzszy kod bardziej czytelnym...
Go to the top of the page
+Quote Post
NiktUs
post
Post #13





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 4.08.2003

Ostrzeżenie: (0%)
-----


znowu niedziala juz nie wiem jak to naprawić (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) znowu ten bład z T_String
Go to the top of the page
+Quote Post
Ive
post
Post #14





Grupa: Zarejestrowani
Postów: 352
Pomógł: 1
Dołączył: 17.07.2003
Skąd: Kazanów

Ostrzeżenie: (0%)
-----


a zamieniałeś te wszystkie & # 0 9 2 ; na \ ? bo może oto się rozchodzi ;] poza tym podaj jak wygląda cały ten błąd bo może jest tam napisane w której linni jest błąd
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 14:45