FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » photo gallery
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: photo gallery [message #177084 is a reply to message #177035] Sun, 19 February 2012 20:34 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Fri, 17 Feb 2012 09:23:29 -0500, richard wrote:

> then why do we have PHP to begin with? Or CGI? Why is the browser the
> only place to do this? Why can't you answer a simple straight forward
> question?

We have cgi to provide back-end functionality, like generating a list of
all the image files in a directory and outputting that list as some sort
of formatted text, such as an html list or an html table.

But you need to write the html somewhere, even if you're writing it in a
heredoc block or as pert of echo output inside the php or other cgi
environment of choice.

Likewise, if you want to spice up your html with, for example, css or
javascript based client side display features, you need to deliver those
instructions to the client as appropriate javascript or css.

The php or other cgi app of choice generally, unless it has specific
functions to generate html constructs etc, knows next to nothing about
html, it just generates and outputs whatever strings it is coded to
generate and output. It could just as easily, if you wanted it to,
generate roff ( http://www.quut.com/berlin/ms/troff.html ) marked up text
instead of html marked up text, because at the end of the day it is only
generating text strings.

If you want the web browser to do specific things, you have to deliver
the instructions to the web browser in the language(s) that the web
browser understands. These languages are generally html, javascript and
css.

You may generate these languages using php or other cgi scripts, but you
still need to deliver, to the browser, the correct html, javascript and
css to make it do what you want to, and the features that you are asking
for are features that are provided by delivering to the browser the
appropriate html, javascript and css.

We can tell you many different ways to use php to deliver the html,
javascript and css content of your choice to your browser, but php will
not do what you are asking php to do for you, because what you are asking
php to do is not something that it can do.

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Do I still CLI version of PHP
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 18:17:39 GMT 2024

Total time taken to generate the page: 3.19184 seconds