Re: [PHP] HTML and PHP output to PHP variable

2004-07-12 Thread Maris
Thanks a lot Miroslav, will try this construction! :) "Miroslav Hudak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hello! > > use output buffering... > > ob_start(); >//... your code here >$_contents = ob_get_contents(); >ob_end_clean(); > ?> > > regards, > m. >

Re: [PHP] HTML and PHP output to PHP variable

2004-07-12 Thread Miroslav Hudak (php/ml)
hello! use output buffering... regards, m. Maris wrote: Hi! Let's say my index.php consists of the following: PHP says Hello World"; ?> HTML says Hello World ..some other HMTL output.. My question is: how can I make the whole index.php generated output put in one PHP variable? It is also importan

[PHP] HTML and PHP output to PHP variable

2004-07-12 Thread Maris
Hi! Let's say my index.php consists of the following: PHP says Hello World"; ?> HTML says Hello World ..some other HMTL output.. My question is: how can I make the whole index.php generated output put in one PHP variable? It is also important that it is done from the same index.php file. Thank

Re: [PHP] html and php in the same document

2003-07-24 Thread John W. Holmes
Miles Thompson wrote: At 04:09 PM 7/24/2003 +, Curt Zirzow wrote: * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > * Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): > > If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways

Re: [PHP] html and php in the same document

2003-07-24 Thread Miles Thompson
At 04:09 PM 7/24/2003 +, Curt Zirzow wrote: * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > * Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): > > If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to include php into an

Re: [PHP] html and php in the same document

2003-07-24 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > * Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): > > If php and html are to be included in the same document, does the document > > extension always have to be .php ? Are there ways to include php into an html > > document without changing the exten

Re: [PHP] html and php in the same document

2003-07-24 Thread Curt Zirzow
* Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): > If php and html are to be included in the same document, does the document extension > always have to be .php ? Are there ways to include php into an html document > without changing the extension? Apache, IIS, Other? If apache: AddType applic

[PHP] html and php in the same document

2003-07-24 Thread Bill Pilgrim
If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to include php into an html document without changing the extension? Thanks, Bill - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-us

RE: [PHP] HTML and PHP

2003-06-09 Thread Jaap van Ganswijk
At 2003-06-04 15:59 -0400, Edward Peloke wrote: >you would have to use echo or print statements... Yes. After a while I stopped mixing PHP and HTML parts and started writing everything in PHP using echo and print statements. That way the code is much more regular and flexible. Greetings, Jaap

[PHP] Re: New word proposition (was: Re: [PHP] HTML and PHP)

2003-06-05 Thread Shawn McKenzie
HAH! I love it! -Shawn "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Clode? I like it. Really, who wants to say "closing php tag", "terminating php > tag", or whatever you say. Why not start calling it a clode? What does > everyone else think? > > The only issue i

Re: [PHP] New word proposition (was: Re: [PHP] HTML and PHP)

2003-06-05 Thread Michael A Smith
Sounds good to me... On Wed, 2003-06-04 at 12:49, Evan Nemerson wrote: > Well since you seem to be in favor of confining usage to PHP, what about > "phode"- that way there's no association with the bullshit notices on > commercial advertisements that mean nothing since the address is always > ei

[PHP] New word proposition (was: Re: [PHP] HTML and PHP)

2003-06-05 Thread Evan Nemerson
Clode? I like it. Really, who wants to say "closing php tag", "terminating php tag", or whatever you say. Why not start calling it a clode? What does everyone else think? The only issue is if a "closing php tag" (or should it be a more general "closing tag", with php being able to serve as a mo

RE: [PHP] HTML and PHP

2003-06-05 Thread Edward Peloke
you would have to use echo or print statements... -Original Message- From: Christian Ista [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 3:48 PM To: [EMAIL PROTECTED] Subject: [PHP] HTML and PHP Hello, Look the code below. Is it an obligation to multiply the number of . There

[PHP] HTML and PHP

2003-06-05 Thread Christian Ista
Hello, Look the code below. Is it an obligation to multiply the number of . There is no other way ? not possible to use only an open php tag () ? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML and PHP?

2001-04-14 Thread Jason Caldwell
> > Just make sure you don't indent the closing marker or the parser will miss > > it! YES!! -- I struggled with that one for a long time... (at least a couple of hours, before I said, hmmm... let me [for giggles] remove the TABS before the closing marker... -- bam... Parser Error went away...)

Re: [PHP] HTML and PHP?

2001-04-14 Thread Brian Clark
Hi Les, @ 2:09:01 PM on 4/14/2001, Les Neste wrote: > I think the echo approach is pretty handy if you want a subroutine > to spit out a common chunk of HTML which is less than an entire > page. And the here-doc marker lets you just paste existing HTML in > place without having to escape all the

Re: [PHP] HTML and PHP?

2001-04-14 Thread Les Neste
I think the echo approach is pretty handy if you want a subroutine to spit out a common chunk of HTML which is less than an entire page. And the here-doc marker lets you just paste existing HTML in place without having to escape all the quotation marks. To me, this is a Good Thing. At 01:56 PM

Re: [PHP] HTML and PHP?

2001-04-14 Thread Brian Clark
Hi Steve, @ 11:34:26 PM on 4/13/2001, Steve Werby wrote: ... > echo << > Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to > test for yourself? ;-) > And you can use whatever marker (the 'STOP' above and below) you choose. > Just make sure you don't indent the closing

Re: [PHP] HTML and PHP?

2001-04-13 Thread Jason Caldwell
actually just test this... don't need slashes... it works GREAT! thanks. ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9b8it7$npq$[EMAIL PROTECTED]">news:9b8it7$npq$[EMAIL PROTECTED]... > oh... that rocks! > > would i have to still add the slashes? > > /n, /" -- etc? > > "Les Neste" <

Re: [PHP] HTML and PHP?

2001-04-13 Thread Jason Caldwell
oh... that rocks! would i have to still add the slashes? /n, /" -- etc? "Les Neste" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Cool. Does that work with echo too, do you know? > > At 06:19 PM 4/13/2001 -0700, DanO wrote: > >try this: > > > > >print << >

Re: [PHP] HTML and PHP?

2001-04-13 Thread Steve Werby
"Les Neste" <[EMAIL PROTECTED]> wrote: > Cool. Does that work with echo too, do you know? Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to test for yourself? ;-) And you can use whatever marker (the 'STOP' above and below) you choose. Just make sure you don't indent t

Re: [PHP] HTML and PHP?

2001-04-13 Thread Patrick Dunford
On 13 Apr 2001 17:39:49 -0700 AD in php.general, Jason Caldwell said: >Is there a utility that I can use that will take a bunch of HTML and >encapsulate it in the PRINT command? > >i.e. > >PRINT("{html stuff}\n"); > >?? > >I have a ton of HTML pages that I want to make dynamic, but dread having

Re: [PHP] HTML and PHP?

2001-04-13 Thread Les Neste
Cool. Does that work with echo too, do you know? At 06:19 PM 4/13/2001 -0700, DanO wrote: >try this: > >print << > >jldsfajlf;dsajfl;dkfl;dsa > > >EOP; >?> > >AFAIK it is the easiest way to do multi-line printing! > >DanO > > >""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message >9b868e$2ca$[

Re: [PHP] HTML and PHP?

2001-04-13 Thread DanO
try this: jldsfajlf;dsajfl;dkfl;dsa EOP; ?> AFAIK it is the easiest way to do multi-line printing! DanO ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9b868e$2ca$[EMAIL PROTECTED]">news:9b868e$2ca$[EMAIL PROTECTED]... > Is there a utility that I can use that will take a bunch of H

[PHP] HTML and PHP?

2001-04-13 Thread Jason Caldwell
Is there a utility that I can use that will take a bunch of HTML and encapsulate it in the PRINT command? i.e. PRINT("{html stuff}\n"); ?? I have a ton of HTML pages that I want to make dynamic, but dread having to type the PRINT command in front of every line of html, and let alone having at