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%)
-----


Chodzi mi o coś takiego:

  1. <? $zmienna='?> ala ma kota <?';?>


Coś niby:
  1. <?
  2. if ($a==$a){
  3. ?>
  4. takiś kod HTML
  5. <?}?>


Musze mieć coś w takiej formie, bo cała stronę zapisuje po kolei w plikach do $zmiennej.=''; a później ją wyświetlam.

Ten post edytował expert 7.06.2010, 16:47:13
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: 14.10.2025 - 22:25