Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Zapis textu do zmiennej po za obszarem php
expert
post
Post #1





Grupa: Zarejestrowani
Postów: 211
Pomógł: 4
Dołączył: 29.10.2008

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


Witam,

mam taki kod:
  1. <?
  2.  
  3. $centertresc.='<iframe src="mapagoogle" width="100%" height="500" frameborder="0" scrolling="no" style="background-color: white; background-image: url(\'images/loadingmap.gif\'); background-position: center; background-repeat: no-repeat;"></iframe><br>
  4. <div style="width: 100%; height: 150px; overflow: auto;"><ul id="pasekBoczny"><!-- pasek boczny --></ul></div>';
  5.  
  6. ?>


Czy da się zrobić tak, aby móc zapisywać tekst do zmiennej poza obaszarem php, np.
  1. <?
  2.  
  3. $centertresc.='
  4. ?>
  5. <iframe src="mapagoogle" width="100%" height="500" frameborder="0" scrolling="no" style="background-color: white; background-image: url(\'images/loadingmap.gif\'); background-position: center; background-repeat: no-repeat;"></iframe><br>
  6. <div style="width: 100%; height: 150px; overflow: auto;"><ul id="pasekBoczny"><!-- pasek boczny --></ul></div>
  7.  
  8. <?
  9. ';
  10.  
  11. ?>


Pozdrawiam.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
expert
post
Post #2





Grupa: Zarejestrowani
Postów: 211
Pomógł: 4
Dołączył: 29.10.2008

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


Super, dzięki.

  1. <?ob_start();?>
  2.  
  3. test <b>buforowania</b>
  4.  
  5. <?
  6. $bufferContent = ob_get_contents();
  7. ?>


Ten post edytował expert 7.06.2010, 17:30:58
Go to the top of the page
+Quote Post

Posty w temacie


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: 18.10.2025 - 09:37