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.
>
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
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
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
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
* 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
* 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
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
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
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
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
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
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
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
> > 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...)
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
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
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
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" <
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 << >
"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
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
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$[
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
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
25 matches
Mail list logo