Re: PHP to replace javascript
| From: | Sam Hobbs | Date: | Fri, 03 Sep 2004 05:11:24 +0000 |
| Subject: | Re: PHP to replace javascript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195678@lists.php.net to get a copy of this message | ||
"Jack Gates" <jack@morningstarcom.net> wrote in message
news:200409030020.25759.jack@morningstarcom.net...
>
> Javascript can open a separate and specifically sized window from a web
> page
> when a user clicks on a link that might reference a note or picture etc.
>
> Can this be done with PHP? If yes, will someone tell me where in the
> manual
> on the php.net site I can find the information to learn how to do this?
>
> I have been looking through the manual on the site but without knowing the
> name or names of what I am looking for it is real hard to find it.
I am new to PHP also but there is some fundamental understanding of PHP that
is likely to make things much more clear. PHP is a server-side facility. PHP
executes before the HTML is (considered to be) complete. Then the HTML is
sent to the client. By the time that the user clicks on the page, PHP is
totally gone (for the purposes of the page). This concept is quite easy to
explain and to understand, yet you are likely to spend many, many hours of
reading before you read enough to understand this. In other words, I am sure
you can understand it, but this is the type of concept that documentation
seldom makes clear.
You can, instead, put resize code (using PHP or nearly any language) in the
page that shows the image. This is also a more object-oriented solution.