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 instalacijaPRADO PHP5 FrameworkWampserver - WAMP5 + WAMP4 - Win32 Apache MySQL PHPPDF i PHP
Was this article helful to you? If so, please click on the
(+) [plus] sign below! It's Croatian
digg ;-) Tnx!