php-general Digest 16 Nov 2010 14:08:46 -0000 Issue 7039

Topics (messages 309498 through 309509):

Is it possible to install PHP on IIS?
        309498 by: Himani Aggarwal
        309499 by: Aman Singh
        309500 by: Richard Quadling
        309502 by: Bastien
        309503 by: Jay Blanchard
        309504 by: Richard Quadling
        309505 by: Jay Blanchard
        309507 by: Richard Quadling

DOMDocument/DOMElement problem
        309501 by: Peter Lind

mysql help (sorry, a bit OT)
        309506 by: Gary
        309508 by: [email protected]
        309509 by: Andre Polykanine

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 ---
Hi Folks, is it possible to install PHP on IIS? If yes, can someone please
guide me on how to go about doing it? Thanks

--- End Message ---
--- Begin Message ---
Himani,
See
http://blogs.iis.net/bills/archive/2006/09/19/how-to-install-php-on-iis7-_2800_rc1_2900_.aspx?WT.mc_id=soc-c-in-loc--cfp.
Also, see
http://blogs.iis.net/donraman/archive/2009/10/07/installing-php-on-windows.aspx?WT.mc_id=soc-c-in-loc--cfp

On Tue, Nov 16, 2010 at 12:16 PM, Himani Aggarwal <
[email protected]> wrote:

> Hi Folks, is it possible to install PHP on IIS? If yes, can someone please
> guide me on how to go about doing it? Thanks
>

--- End Message ---
--- Begin Message ---
On 16 November 2010 06:46, Himani Aggarwal <[email protected]> wrote:
> Hi Folks, is it possible to install PHP on IIS? If yes, can someone please
> guide me on how to go about doing it? Thanks
>

PHP on IIS. Certainly.

http://docs.php.net/manual/en/install.windows.iis7.php : IIS7 specific
instructions.
http://docs.php.net/manual/en/install.windows.manual.php : General
instructions for installing PHP manually.
http://docs.php.net/manual/en/install.windows.commandline.php :
Additional instructions for better integration of PHP into the
commandline.




-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

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

On 2010-11-16, at 6:55 AM, Richard Quadling <[email protected]> wrote:

> On 16 November 2010 06:46, Himani Aggarwal <[email protected]> wrote:
>> Hi Folks, is it possible to install PHP on IIS? If yes, can someone please
>> guide me on how to go about doing it? Thanks
>> 
> 
> PHP on IIS. Certainly.
> 
> http://docs.php.net/manual/en/install.windows.iis7.php : IIS7 specific
> instructions.
> http://docs.php.net/manual/en/install.windows.manual.php : General
> instructions for installing PHP manually.
> http://docs.php.net/manual/en/install.windows.commandline.php :
> Additional instructions for better integration of PHP into the
> commandline.
> 
> 
> 
> 
> -- 
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


The windows web platform installer is also an option and will install php/Mysql 
and other apps like moodle, sugarcrm and others.

Bastien
> 

--- End Message ---
--- Begin Message ---
[snip]
>> Hi Folks, is it possible to install PHP on IIS? If yes, can someone
please guide me on how to go about doing it? Thanks
[/snip]

http://www.wampserver.com/en/

--- End Message ---
--- Begin Message ---
On 16 November 2010 13:21, Jay Blanchard <[email protected]> wrote:
> [snip]
>>> Hi Folks, is it possible to install PHP on IIS? If yes, can someone
> please guide me on how to go about doing it? Thanks
> [/snip]
>
> http://www.wampserver.com/en/
>

Jay, if that had been wimpserver ...

-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--- End Message ---
--- Begin Message ---
[snip]
http://www.wampserver.com/en/
[/snip]

And yes, I know that this is Apache - I am just not a fan of IIS.


--- End Message ---
--- Begin Message ---
On 16 November 2010 13:30, Jay Blanchard <[email protected]> wrote:
> [snip]
> http://www.wampserver.com/en/
> [/snip]
>
> And yes, I know that this is Apache - I am just not a fan of IIS.
>
>

I quite like it. It probably does way so much more than I need or want
and I think I can do everything that I can on Apache.

IIS7 is certainly a massive leap ahead of the PWS I first tried to use.

IIS+FastCGI+PHP. Add the Rewrite plugin and the PHP extensions
WinCache and SQLSvr (PDO if you want it) and you have a well defined
simple setup.

Obviously, getting to grips with the administration UI is a bit
different to just editing a plain text config file, but IIS does use
an XML file for its config, so, once you know the xsd, you can do that
by hand also. Full docs on the xsd are available online, so really,
I'd guess in terms of ability, IIS and Apache are on-par.

Richard.



-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--- End Message ---
--- Begin Message ---
I'm currently trying to parse a document with DOMDocument, and I'm
having some serious problems. I created a script that runs fine on php
5.2.9, ripping out content using DOMNode::nodeValue. The same script
fails to get any content on php 5.3.3 - even though it correctly
navigates to the proper nodes to extract content.

Basically, the code used looks like this:

$dom = new DOMDocument();
$dom->loadHTML($data);
$dom->preserveWhiteSpace = false;
$xpath = new DOMXpath($dom);
$nodelist = $xpath->query($query);
$value = $nodelist->item(0)->nodeValue;

I've checked to make sure that item(0) is in fact a node - it's there
and even of the right type (a td - table cell), but nodeValue is
empty.

The script works on some documents but not others (on 5.3.3 - some
checking suggests a doctype of xhtml might be involved in the problem
but I tried ripping the doctype out and had no difference) - on 5.2.9
it works on all documents, returning the proper nodeValue.

Am I missing something basic?

TIA
Peter

-- 
<hype>
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
</hype>

--- End Message ---
--- Begin Message ---
Is there a way to check the syntax of a query, short of running it? I've
got an insert to do (but of course it's a valid question for any query
that changes the db contents) and would like to know that the sql I am
generating (in php - see! not so off-topic!) is correct. 

What I don't want to do is run it for testing (live system *sigh*) and
find out it is correct (it will change the db), but... I have to test it
to check that the syntax (at least) *is* correct.


--- End Message ---
--- Begin Message ---
It's always best practice to have a staging server for testing these sorts of 
things.

If in doubt, run it in a transaction, but don't commit it, I.e. roll it back. 
That way you'll see if it would run but nothing actually changes.

Thanks,
Ash
http://www.ashleysheridan.co.uk

----- Reply message -----
From: "Gary" <[email protected]>
Date: Tue, Nov 16, 2010 13:35
Subject: [PHP] mysql help (sorry, a bit OT)
To: <[email protected]>

Is there a way to check the syntax of a query, short of running it? I've
got an insert to do (but of course it's a valid question for any query
that changes the db contents) and would like to know that the sql I am
generating (in php - see! not so off-topic!) is correct. 

What I don't want to do is run it for testing (live system *sigh*) and
find out it is correct (it will change the db), but... I have to test it
to check that the syntax (at least) *is* correct.


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


--- End Message ---
--- Begin Message ---
Hello Gary,

Actually, what I do here is the following: I create a subdomain called
beta.mysite.com (for me it's http://beta.oire.org/ and
http://beta.gviragon.org/ :-)). There I have a copy of my database and
all of my files. The only difference is the mysql_select_db in the
connect.php file.
There I can easily test everything I need (including PHP files and
MySql queries) without any danger to crash the main release).
-- 
With best regards from Ukraine,
Andre
Skype: Francophile
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion

----- Original message -----
From: Gary <[email protected]>
To: [email protected] <[email protected]>
Date: Tuesday, November 16, 2010, 3:35:12 PM
Subject: [PHP] mysql help (sorry, a bit OT)

Is there a way to check the syntax of a query, short of running it? I've
got an insert to do (but of course it's a valid question for any query
that changes the db contents) and would like to know that the sql I am
generating (in php - see! not so off-topic!) is correct. 

What I don't want to do is run it for testing (live system *sigh*) and
find out it is correct (it will change the db), but... I have to test it
to check that the syntax (at least) *is* correct.


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


--- End Message ---

Reply via email to