For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > September 2006 > PHP Confusion









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP Confusion
Caec

2006-09-11, 6:57 pm

I am trying to understand whether HMTL is still needed when PHP is used
in a website design. I hired a group of webdesigners who created a
database using MySQL and PHP. But they have not used HTML anywhere on
the site. is this correct. Should the information not be converted to
HTML in order to appear on the browser? Any help I can get will really
be apprecaied. Thanks.

Els

2006-09-11, 6:57 pm

Caec wrote:

> I am trying to understand whether HMTL is still needed when PHP is used
> in a website design. I hired a group of webdesigners who created a
> database using MySQL and PHP. But they have not used HTML anywhere on
> the site.


So, have you seen the site?

> is this correct. Should the information not be converted to
> HTML in order to appear on the browser? Any help I can get will really
> be apprecaied. Thanks.


If they can show you the site, you can look if there's any html in it.
Unless it's just plain text, there should definitely be some HTML in
the browser. This will most likely be generated by the PHP scripts
though, so although they used HTML, they haven't written any "HTML
pages". Did they tell you there was no HTML in it, or did you just
gather that from lack of .html extensions on filenames?

--
Els http://locusmeus.com/

Now playing: Skid Row - 18 And Life
SF

2006-09-11, 6:57 pm


"Caec" <cfortes@shaw.ca> schreef in bericht
news:1158000687.750491.306910@q16g2000cwq.googlegroups.com...
>I am trying to understand whether HMTL is still needed when PHP is used
> in a website design. I hired a group of webdesigners who created a
> database using MySQL and PHP. But they have not used HTML anywhere on
> the site. is this correct. Should the information not be converted to
> HTML in order to appear on the browser? Any help I can get will really
> be apprecaied. Thanks.
>

php is converted to html in the browser. So the viewer sees html, but the
code used to make the page is in php

SF



Els

2006-09-11, 6:57 pm

SF wrote:

> "Caec" <cfortes@shaw.ca> schreef in bericht
> news:1158000687.750491.306910@q16g2000cwq.googlegroups.com...
>
> php is converted to html in the browser.


I'm sure you mean 'php generates html on the server' :-)
(unless I'm missing something, php is a server side language)

> So the viewer sees html, but the
> code used to make the page is in php


Yup.
For instance like so:
<?php
print ('<h1>' . $pagetitle . '</h1>');
?>

($pagetitle is a variable defined earlier in the script or on the
actual page)

This will print <h1>[some title]</h1>, which is HTML.

HTML is still in the php script, so they can't claim to not have used
HTML at all.

--
Els http://locusmeus.com/

Now playing: Keziah Jones - Femiliarise
Peter Buzanits

2006-09-14, 7:57 am

Caec schrieb:
> I am trying to understand whether HMTL is still needed when PHP is used
> in a website design. I hired a group of webdesigners who created a
> database using MySQL and PHP. But they have not used HTML anywhere on
> the site. is this correct. Should the information not be converted to
> HTML in order to appear on the browser? Any help I can get will really
> be apprecaied. Thanks.
>


With PHP you can write scripts that are called on the shell or by
another script. Then you don't need a web browser. And if you do not
need a web browser, you do not need HTML.

I think your database designers did it this way...

Peter
Els

2006-09-14, 6:57 pm

Peter Buzanits wrote:

> Caec schrieb:
>
> With PHP you can write scripts that are called on the shell or by
> another script. Then you don't need a web browser. And if you do not
> need a web browser, you do not need HTML.
>
> I think your database designers did it this way...


But would the resulting product be called a website? Would it be
viewable by the masses on the Internet?

--
Els http://locusmeus.com/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com