Re: newbie question
| From: | Tedd Sperling | Date: | Wed, 16 Sep 2015 15:30:34 +0000 |
| Subject: | Re: newbie question | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-325115@lists.php.net to get a copy of this message | ||
On Sep 16, 2015, at 2:48 AM, Ashley Sheridan <ash@ashleysheridan.co.uk> wrote:
>
> On Tue, 2015-09-15 at 20:22 -0700, Jeffry Killen wrote:
>> This confuses people often who are new to php because the
>> code
>> is written directly into the html file.
>
> I think this is the one of the causes of confusion. HTML is written
> directly into a PHP file. :)
>
> Thanks,
> Ash
>
> http://www.ashleysheridan.co.uk
>
Ash is correct.
More specifically, PHP code delivers web languages to a user's Browser.
The Browser never actually see’s PHP scripts because PHP runs on the server (not the client) and
delivers what it wants to the Browser via client-side web languages (i.e., HTML, CSS, JavaScript et
al). In other words, by the time the Browser see’s anything, PHP is finished.
Cheers,
tedd
_______________
tedd sperling
tedd@sperling.com