Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Include ?, nie odczytuje czy co ?
NiktUs
post 27.06.2004, 14:23:08
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
bregovic
post 27.06.2004, 14:52:15
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 winksmiley.jpg


--------------------
Prank - for the fun. Mac - for the simplicity. Deviantart - for the kick.
Life is ours, We live it our way -- Metallica
Go to the top of the page
+Quote Post
NiktUs
post 27.06.2004, 16:16:38
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 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 27.06.2004, 16:41:13
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. ?>


--------------------
Prank - for the fun. Mac - for the simplicity. Deviantart - for the kick.
Life is ours, We live it our way -- Metallica
Go to the top of the page
+Quote Post
NiktUs
post 27.06.2004, 16:58:31
Post #5





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

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


dalej niedziala sad.gif
Go to the top of the page
+Quote Post
bregovic
post 27.06.2004, 17:07:19
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?


--------------------
Prank - for the fun. Mac - for the simplicity. Deviantart - for the kick.
Life is ours, We live it our way -- Metallica
Go to the top of the page
+Quote Post
NiktUs
post 27.06.2004, 18:42:14
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 27.06.2004, 19:43:26
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


--------------------
PHP Developer

"Nadmiar wiedzy jest równie szkodliwy jak jej brak" Émile Zola
Go to the top of the page
+Quote Post
bregovic
post 27.06.2004, 20:09:46
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?


--------------------
Prank - for the fun. Mac - for the simplicity. Deviantart - for the kick.
Life is ours, We live it our way -- Metallica
Go to the top of the page
+Quote Post
kicaj
post 27.06.2004, 20:14:19
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...


--------------------
PHP Developer

"Nadmiar wiedzy jest równie szkodliwy jak jej brak" Émile Zola
Go to the top of the page
+Quote Post
NiktUs
post 27.06.2004, 21:11:15
Post #11





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

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


kicaj 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 smile.gif bede wdzięczny
Go to the top of the page
+Quote Post
kicaj
post 27.06.2004, 23:17:45
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...


--------------------
PHP Developer

"Nadmiar wiedzy jest równie szkodliwy jak jej brak" Émile Zola
Go to the top of the page
+Quote Post
NiktUs
post 28.06.2004, 19:30:29
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ć sad.gif znowu ten bład z T_String
Go to the top of the page
+Quote Post
Ive
post 30.06.2004, 23:41:47
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
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 28.06.2025 - 20:48