RE: [PHP] How is code in PHP interpreted, from 1st line to last? i do nt think so
| From: | Darren Gamble | Date: | Thu, 28 Mar 2002 15:59:40 +0000 |
| Subject: | RE: [PHP] How is code in PHP interpreted, from 1st line to last? i do nt think so | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90549@lists.php.net to get a copy of this message | ||
Good day,
Please keep this conversation on the list.
As my message says, no, in HTML you don't have text and images together.
The image is retrieved from the server by the client in a completely
different request.
The "main" request basically says "An image goes here. Go ask over there to
go get that image."
============================
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-----Original Message-----
From: Moschitz Martin [mailto:Martin.Moschitz@arcs.ac.at]
Sent: Thursday, March 28, 2002 8:58 AM
To: 'Darren Gamble'
Subject: AW: [PHP] How is code in PHP interpreted, from 1st line to
last? i do nt think so
But the problem with include tag is, that I can´t display images and text
together, or can i?
thx
martin
-----Ursprüngliche Nachricht-----
Von: Darren Gamble [mailto:Darren.Gamble@sjrb.ca]
Gesendet am: Donnerstag, 28. März 2002 16:49
An: 'Moschitz Martin'; php-general@lists.php.net
Betreff: RE: [PHP] How is code in PHP interpreted, from 1st line to
last? i do nt think so
Good day.
If you want some php code to execute another file of php code and the
continue afterwards, use the "include()" statement.
Please note that with the example you've listed there, the code isn't
executed the way that you might think. The client will receive all of the
html from the PHP script first. Then, the client will look at the <img> tag
and figured out that it has to request graf.php, which is does (which will
be executed separately).
============================
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-----Original Message-----
From: Moschitz Martin [mailto:Martin.Moschitz@arcs.ac.at]
Sent: Thursday, March 28, 2002 8:46 AM
To: php-general@lists.php.net
Subject: [PHP] How is code in PHP interpreted, from 1st line to last? i
do nt think so
How can I say php to execute graf.php until it´s finished and then move on
to the rest of the code?
echo "<img src='graf.php>";
<...
more code
...>
tanxs
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php