php-windows Digest 5 Mar 2005 12:27:24 -0000 Issue 2598

Topics (messages 25711 through 25712):

Re: static
        25711 by: Xtlan

File not found
        25712 by: M�rio Gamito

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
class foo {

 static public $a = 1;

 public function __construct() {

  echo $this->a; /* does not work */

  echo foo::$a; /* work */

 }

}



>Can someone please explain to me why I have to call $a outside the class
>to get the value?

I guess, it works like that because there is static declaration of
variable - which means above class allows to make only one instance of
variable - so you may refer to variable through class instance (only one
instance in memory) and you may not refer to variable through object
instances (multiple instances).

Bests.,
Xtlan.

--- End Message ---
--- Begin Message ---
Hi,

I've installed PHP 5.03 (the full package, not the installer) in Windows 2003 / IIS.
I've folloewd all instrctions very carefully in ISAPI mode.
Nothing is misconfigured so long as the install.txt says.


Now, i've put a very simple script in C:\Inetpyb\wwwroot and i get "404 File Not Found".

ASP scripts works ok.

What could be wrong ?

Any help would be appreciated.

Warm Regards,
M�rio Gamito

--- End Message ---

Reply via email to