php-windows Digest 23 Jul 2010 09:09:12 -0000 Issue 3845
Topics (messages 30253 through 30257):
Re: static call to an instance method in a class definition
30253 by: Ferenc Kovacs
where is php-cgi.exe?
30254 by: Steve Richter
30255 by: madavapeddi suman
30256 by: Venkat Raman Don
30257 by: Pierre Joye
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hi.
I knew about this "feature" ($this is used from the caller scope if
the called method is static), but I didn't checked the manual about
this.
Now I did it.
http://php.net/manual/en/language.oop5.static.php
"Because static methods are callable without an instance of the object
created, the pseudo-variable $this is not available inside the method
declared as static."
some comments point out this behaviour, but either the code, or the
documentation is wrong.
Tyrael
On Thu, Jul 22, 2010 at 6:09 PM, samuel <zoulil...@gmail.com> wrote:
> Hello,
> Making a mistake I just come to discover ( for myself ) a strange fiture in
> php,
> lets see an example :
>
> class A{
>
> public $foo = 'bar';
>
> public function write(){
>
> print($this->foo);
>
> }
>
> }
>
>
> class B{
>
> public $foo = 'gnagnagna';
>
>
>
> public function write(){
>
> A::write();
>
> }
>
> }
>
>
> $var = new B;
>
> $var->write();
>
>
> This code will not throw excaption and output gnagnagna, it's kind of cross
> définition something,
> I know something like that exists in other language but I didn't expect PHP
> to work like that.
>
> Do you know this ? And why ?
>
--- End Message ---
--- Begin Message ---
I want to run php on windows7 within IIS. This MSFT document
http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/
has a step for adding module mapping to IIS for PHP. It says the
executable should be "php-cgi.exe". I downloaded and installed the
php windows binary ( x86, VC9 ) from the php site. The installer
loaded php in \program files\php. But there is no php-cgi.exe on my
system. Should it be there? If not, how do I config IIS7 for PHP
otherwise? ( one mistake I know I made is to download the threadsafe
version. The windows config doc says the non threadsafe version runs
faster. )
thanks,
--- End Message ---
--- Begin Message ---
Hi Steve,
You should find it easily in the directory extracted from 5.3.3 Binary of
NTS and TS .Only NTS(VC6 and VC9) is much compatible with IIS as windows is
based on multi Threaded Architecture .This Link would be really helpful
http://www.iis-aid.com/articles/my_word/difference_between_php_thread_safe_and_non_thread_safe_binaries
VC9 Binaries requires VC++8.0 library exclusively.
Thanks,
Suman.
On Thu, Jul 22, 2010 at 9:43 PM, Steve Richter <stephenrich...@gmail.com>wrote:
> I want to run php on windows7 within IIS. This MSFT document
>
> http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/
> has a step for adding module mapping to IIS for PHP. It says the
> executable should be "php-cgi.exe". I downloaded and installed the
> php windows binary ( x86, VC9 ) from the php site. The installer
> loaded php in \program files\php. But there is no php-cgi.exe on my
> system. Should it be there? If not, how do I config IIS7 for PHP
> otherwise? ( one mistake I know I made is to download the threadsafe
> version. The windows config doc says the non threadsafe version runs
> faster. )
>
> thanks,
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
You can just use Microsoft Web Platform Installer and it will configure
everything for you. Steps listed at
http://blogs.iis.net/donraman/archive/2009/10/07/installing-php-on-windows.aspx.
Thanks,
Don.
-----Original Message-----
From: Steve Richter [mailto:stephenrich...@gmail.com]
Sent: Thursday, July 22, 2010 6:44 PM
To: php-wind...@lists.php.net
Subject: [PHP-WIN] where is php-cgi.exe?
I want to run php on windows7 within IIS. This MSFT document
http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/
has a step for adding module mapping to IIS for PHP. It says the executable
should be "php-cgi.exe". I downloaded and installed the php windows binary (
x86, VC9 ) from the php site. The installer loaded php in \program files\php.
But there is no php-cgi.exe on my system. Should it be there? If not, how do I
config IIS7 for PHP otherwise? ( one mistake I know I made is to download the
threadsafe version. The windows config doc says the non threadsafe version runs
faster. )
thanks,
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On Fri, Jul 23, 2010 at 3:43 AM, Steve Richter <stephenrich...@gmail.com> wrote:
> I want to run php on windows7 within IIS. This MSFT document
> http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/
> has a step for adding module mapping to IIS for PHP. It says the
> executable should be "php-cgi.exe". I downloaded and installed the
> php windows binary ( x86, VC9 ) from the php site. The installer
> loaded php in \program files\php. But there is no php-cgi.exe on my
> system. Should it be there? If not, how do I config IIS7 for PHP
> otherwise? ( one mistake I know I made is to download the threadsafe
> version. The windows config doc says the non threadsafe version runs
> faster. )
It runs better more than faster. It is also totally useless to have a
thread safe php with php-cgi (given the way fastcgi works). You need
to fetch the VC9 builds for better support (and more extensions
available).
You can use the MSI to install it if you already have IIS installed.
Very easy. If you have nothing on your machine, the webpi may be an
easier solution http://www.microsoft.com/web/
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--- End Message ---