Kategorije:


19.07.2004.

PHP5 novosti - ludilo!
Lokacija: WebDev :: PHP :: Install 'n' Tweak   |   Autor: cacan @ 14:26   |  

Odlicne novosti u PHP5. Client side PHP!

Client Side PHP in Internet Explorer

Here’s a quick example which should probably work first time on Win 2000 / Win XP.

1. Download PHP 5 and unzip it somewhere (e.g. C:\php-5.0.0 - you need to create this directory!)

2. From a command prompt;

C:> cd php-5.0.0
C:\php-5.0.0> regsvr32 php5activescript.dll

That’s it. Now the fun begins.

Create a (plain HTML) web page like;

<script language="ActivePHP5″>

$document->write(’<h1>Output generated by ‘. phpversion().
‘ [’.php_sapi_name().’]</h1>’);

$document->write(’<p>Available objects</p>’);

foreach ( array_keys($GLOBALS) as $global_var ) {
if ( is_object($GLOBALS[$global_var]) ) {
$document->write($global_var."<br>");
}
}

</script>

View the page in IE and away you go (you should see a list of objects you’d normally use from Javascript).





Vezani blogovi:
  • WAMP5 - Win32 ApacheMySQL & PHP5 instalacija
  • PRADO PHP5 Framework
  • Wampserver - WAMP5 + WAMP4 - Win32 Apache MySQL PHP
  • PDF i PHP






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!


       6 korisnika online   
    July 2004
    S M T W T F S
        Aug »
     123
    45678910
    11121314151617
    18192021222324
    25262728293031
    Za korisnike:

    27 queries. 0.126 seconds. Powered by Blog385.com