php-windows Digest 16 Mar 2005 08:00:11 -0000 Issue 2609

Topics (messages 25754 through 25759):

Re: [PHP-DB] recommending a PHP book?
        25754 by: Bastien Koert

Re: recommending a PHP book?
        25755 by: Philip Olson
        25758 by: Jeremiah Fisher

Re: Reparse / reread php.ini
        25756 by: Ordal, Peter
        25757 by: Ordal, Peter

Security Alert! The PHP CGI cannot be accessed directly...
        25759 by: Ian Matthews

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 --- Martin Fowler is the man behind most of this style of Enterprise Architecture (http://www.martinfowler.com/books.html#eaa) His Pof EAA is the definitive book on this and is used as the model for php

bastien

From: "Danny Lin" <[EMAIL PROTECTED]>
To: [email protected], [email protected], [email protected],[email protected]
Subject: [PHP-DB] recommending a PHP book?
Date: Mon, 14 Mar 2005 19:52:57 -0500


Can any one recommend a good book that discusses MVC design patterns with
PHP (and mySQL)?

Thanks.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---


    Do.  Not.  Cross.  Post.

    Use ONE mailing list at a time.



Please have all further replies to this unfortunate thread
go to php-general and only php-general.

Regards,
Philip

--- End Message ---
--- Begin Message --- "PHP 5 Power Programming" by Andi Gutmans, Stig Bakken, and Derick Rethans may be worth the read for you. It doesn't mention an MVC, but they do talk a little about patterns in PHP.

However, you probably won't find much in-depth coverage of patterns in PHP. There are alot of good books written on patterns in C++, Java, and C#, but PHP doesn't have that "enterprise" stigma about it.

I've nearly finished an MVC-based framework in PHP, and think that Java should be sincerely evaluated before you take up the endeavor. I've had to reinvent alot of Struts functionality. Not only that, but you'll probably go further with J2EE on your resume than PHP.

O'Reilly has some good books on design patterns. I picked up Head First myself, and though it was repetitive, it got the point across pretty well. You'll find that most of the code is in Java, but it should be easy to read if you speak PHP 5.

For a quick online reference of some common design patterns (and if you can read C#), you can look at this site: http://www.dofactory.com/Patterns/Patterns.aspx#list

Thanks,

Jeremy


Danny Lin wrote:
Can any one recommend a good book that discusses MVC design patterns with
PHP (and mySQL)?

Thanks.

--- End Message ---
--- Begin Message ---
I figured out the problem; IIS didn't have read permissions to php.ini. Of
course I can't for the life of me figure why or when I might have removed
said permissions, but at least it works now...

Peter

> -----Original Message-----
> From: Ordal, Peter 
> Sent: Tuesday, March 15, 2005 3:22 PM
> To: '[email protected]'
> Subject: Re: Reparse / reread php.ini
> 
> I wish it was so simple. I definitely am reading the right 
> php.ini file (in c:\windows). I can clearly see the 
> include_path variable being different in phpinfo() and 
> php.ini, even after I do "iisreset restart localhost". It 
> seems I can stop and start things in the services manager 
> till the sun goes down without any affect on my phpinfo() output.
> 
> Jim Plush wrote:
> >do a phpinfo() call and look at the path of your php.ini file, it 
> >appears you're not editing the correct one.
> >
> >I usually just do iisreset on the command line and thats all I need.
> >
> >
> >"Peter Ordal" <[EMAIL PROTECTED]> wrote in message 
> >news:[EMAIL PROTECTED]
> chester.edu...
> >> How can I force PHP to reread the php.ini configuration 
> file under IIS 6?
> >>
> >> I'm on Windows Server 2003, using the ISAPI extension 
> (version 4.3.7)
> >>
> >> I've tried turning off ISAPI caching, restarting the web site, 
> >> restarting the World Wide Web Publishing Service, and the 
> IIS Admin 
> >> Service to no avail. I'd hate to have to restart the entire system 
> >> just to change one small directive.
> >>
> >> Thanks,
> >> Peter
> 

--- End Message ---
--- Begin Message ---
I wish it was so simple. I definitely am reading the right php.ini file (in
c:\windows). I can clearly see the include_path variable being different in
phpinfo() and php.ini, even after I do "iisreset restart localhost". It
seems I can stop and start things in the services manager till the sun goes
down without any affect on my phpinfo() output.

Jim Plush wrote:
>do a phpinfo() call and look at the path of your php.ini file, it appears
>you're not editing the correct one.
>
>I usually just do iisreset on the command line and thats all I need.
>
>
>"Peter Ordal" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]
>> How can I force PHP to reread the php.ini configuration file under IIS 6?
>>
>> I'm on Windows Server 2003, using the ISAPI extension (version 4.3.7)
>>
>> I've tried turning off ISAPI caching, restarting the web site, restarting
>> the World Wide Web Publishing Service, and the IIS Admin Service to no
>> avail. I'd hate to have to restart the entire system just to change one
>> small directive.
>>
>> Thanks,
>> Peter

--- End Message ---
--- Begin Message ---
Good Day;

I just performed an install of PHP 4.3.10 using the "php.ini-recommended" on 
IIS6 and was getting:

"Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect
enabled. This means that a page will only be served up if the
REDIRECT_STATUS CGI variable is set, e.g. via an
Apache Action directive."

After some research and talking to some php programmer buddies, the solution 
seemed to be to add the following to the php.ini :
cgi.force_redirect = 0
cgi.redirect_status_env ="yes";

http://codewalkers.com/archives/phphelp/211.html

Now my server functions but I am concerned with potential security problems. 
The INI file and the on-line manual state that REDIRECT_STATUS relates to 
Apache only and infers that it may be a serious security risk on other web 
servers.

Note that in addition to adding PHP.EXE into the "APPLICATION CONFIGURATION" 
of a specific virtual server, I also had to add it into the WEB SERVER 
EXTENTIONS on the IIS6 server.  This step was not documented in the PHP 
manuals I reviewed but it was required.

Any explaination as to what these settings do and whether I have exposed my 
customers systems would be appreciated. 

--- End Message ---

Reply via email to