Author Topic: Q&A 2010: Microsoft and PHP  (Read 2702 times)

0 Members and 1 Guest are viewing this topic.

Offline subtalkTopic starter

  • Microsoft Q&A
  • Irregular
  • Posts: 7
  • Gender: Male
  • Facilitator
    • View Profile
Q&A 2010: Microsoft and PHP
« on: February 22, 2010, 11:29:39 AM »
Dedicated discussion space for the following questions:

Quote
How does Microsoft plan on overcoming the minority of negative views about the company's products in some circles?

How does php performance compare with a LAMP stack on identical hardware?
Can Virtual Sites have different php.ini configurations?
Can php's mail work 'out the box' on IIS and Windows? How are the permissions handled and what features does it provide?
Can multiple versions of php be run together on Virtual Sites?
Why would I (a non-enterprise user) choose a Windows web stack if I don't already own a Windows Server license?

Regarding PHP and MS Office connectivity:

Quote
Further to a question which was posed during last year's Q&A, one of the things that was mentioned in Microsoft's Open Source Mission Statement was support for reading and writing of Word and Excel documents....I was basically wondering:

Has any progress been made on this?
What are the (likely) dependencies for this? Would it require an IIS server? A windows system with MS Office installed? Could it be run under Linux?
« Last Edit: February 22, 2010, 11:54:35 AM by subtalk »

Offline ChrisPucci

  • Irregular
  • Posts: 2
    • View Profile
Re: Q&A 2010: Microsoft and PHP
« Reply #1 on: February 22, 2010, 12:57:23 PM »
Quote
Can php's mail work 'out the box' on IIS and Windows? How are the permissions handled and what features does it provide?

I see that a few of your questions have been answered in other threads, so I'll answer this one here.

Yes, php's mail function works on IIS and Windows using IIS's SMTP Relay. It does require making some basic configuration changes in IIS and php.ini, but they are fairly straight forward. A detailed walk-through can be found here:

http://learn.iis.net/page.aspx/751/configure-smtp-e-mail-in-iis-7/

Offline Mchl

  • Staff Alumni
  • Freak!
  • *
  • Posts: 8,582
  • Gender: Male
  • That's Largo in my avatar, not me.
    • View Profile
    • FlingBits
Re: Q&A 2010: Microsoft and PHP
« Reply #2 on: February 22, 2010, 03:45:36 PM »
Anyone willing to answer about PHP - MS Office connectivity?

NetBeans fanatic | ExtJS masochist | C++ denier
PHP4 & MySQL4 are no longer supported.
PHPFreaks Tutorials | PHP Debugging: A Beginner's guide | PHP Security Tutorial || How To Ask Questions The Smart Way
Flingbits tutorials | Class Autoloading

Offline Pierre Joye

  • Irregular
  • Posts: 9
    • View Profile
Re: Q&A 2010: Microsoft and PHP
« Reply #3 on: February 22, 2010, 04:19:56 PM »
Anyone willing to answer about PHP - MS Office connectivity?

I'm not aware of any project inside Microsoft about providing Office document generation using PHP, for example. I know some other tools (commercial or free) to do that. ExcelWriter or PHPDocx come to my mind right now.

Offline Mchl

  • Staff Alumni
  • Freak!
  • *
  • Posts: 8,582
  • Gender: Male
  • That's Largo in my avatar, not me.
    • View Profile
    • FlingBits
Re: Q&A 2010: Microsoft and PHP
« Reply #4 on: February 22, 2010, 04:27:20 PM »
How about Office document reading?

Generation is not really an issue. However I have a client with several large ( 20MB+) Excel spreadsheets, which contents I want to be able to read into PHP scripts. Any PHP libraries I tried, exhaust all avaialble RAM by trying to load entire spreadsheet at once. Only other solution I've come up with was using COM extension, to basically run Excel to grab required data.

Sorry to hear there's no such project at MS at this time. Where do I fill in feature requests? :P
NetBeans fanatic | ExtJS masochist | C++ denier
PHP4 & MySQL4 are no longer supported.
PHPFreaks Tutorials | PHP Debugging: A Beginner's guide | PHP Security Tutorial || How To Ask Questions The Smart Way
Flingbits tutorials | Class Autoloading

Offline Pierre Joye

  • Irregular
  • Posts: 9
    • View Profile
Re: Q&A 2010: Microsoft and PHP
« Reply #5 on: February 22, 2010, 06:47:51 PM »
How about Office document reading?

Generation is not really an issue. However I have a client with several large ( 20MB+) Excel spreadsheets, which contents I want to be able to read into PHP scripts. Any PHP libraries I tried, exhaust all avaialble RAM by trying to load entire spreadsheet at once. Only other solution I've come up with was using COM extension, to basically run Excel to grab required data.

Sorry to hear there's no such project at MS at this time. Where do I fill in feature requests? :P

For recent office formats, it should not be too hard to do it in PHP only, given that the data is XML and the specs are open. Have you tried to do it? Using xmlreader you could even load only part of the data as well.

Offline Mchl

  • Staff Alumni
  • Freak!
  • *
  • Posts: 8,582
  • Gender: Male
  • That's Largo in my avatar, not me.
    • View Profile
    • FlingBits
Re: Q&A 2010: Microsoft and PHP
« Reply #6 on: February 23, 2010, 03:55:14 AM »
Unfortunatelly these are Excel 2003 spreadsheets. I'd love to have them in xml as well...

Somehow it didn't dawn on me, that MS has moved to xml for new Office versions, so it's probably not a high priority to make older folrmats more accessible.

Thanks
NetBeans fanatic | ExtJS masochist | C++ denier
PHP4 & MySQL4 are no longer supported.
PHPFreaks Tutorials | PHP Debugging: A Beginner's guide | PHP Security Tutorial || How To Ask Questions The Smart Way
Flingbits tutorials | Class Autoloading