php-windows Digest 18 Nov 2005 07:27:48 -0000 Issue 2829

Topics (messages 26512 through 26518):

Re: any fairly large production sites on IIS/PHP out there?
        26512 by: Matt Murphy
        26517 by: Armando

Re: Printing in windows
        26513 by: Frank M. Kromann

Re: PHP retrieve Client machine name
        26514 by: Manuel Lemos
        26515 by: Frank M. Kromann
        26516 by: Manuel Lemos
        26518 by: trystano.aol.com

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 ---
 
I'd recommend Apache on windows, IIS seems like it's not very widely
used or very well supported. 

Matt

> -----Original Message-----
> From: Travis Raybold [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 17, 2005 10:03 AM
> To: [email protected]
> Subject: [PHP-WIN] any fairly large production sites on 
> IIS/PHP out there?
> 
> i am trying to switch our application over to PHP (currently ASP). 
> unfortunately, due to the complexity of both the code and the 
> site setup (hundreds of sites using the same code) it needs 
> to be a sectional replacement. given that and the lack of in 
> house support for linux/unix, the only realistic option is to 
> run PHP and ASP side by side on the same windows box.
> 
> recent testing on windows IIS/PHP has not instilled me with a 
> lot of confidence, seeing it use tons more resources than i 
> would expect and crashing periodically.
> 
> are there any fairly large sites out there using PHP on IIS? 
> (we get ~500k hits/day, on reasonably complex pages, and are 
> set up with two load balanced web servers connecting to an 
> array of database servers.) i would love to get input from 
> anyone running a similarly sized or larger site on what they 
> do to accomodate PHP in windows. Zend? FastCGI? others?
> 
> thanks in advance,
> 
> --travis
> 

--- End Message ---
--- Begin Message --- I have to agree with Matt on this. I don't personally know of anyone that runs that kind of volume in an IIS/PHP environment specifically because they were also not confident with this approach - they all went the Apache route; the modular structure was the biggest feature point. Most people I know also believe that running ASP and PHP side-by-side is not a nice approach.

In one project I assisted with similar to your planned sectional migration, we installed Apache and configured it to run on port 81. After each section was completed, we'd simply point the original IIS/ASP pages to the new Apache/PHP ones on port 81. Once the migration was complete, we shut down IIS, configured Apache to run on port 80 and fired it up and tested for some time to ensure functionality. The only issues we had were some minor bugs in the redone code which were corrected fairly quickly. Since then there's been no issues. That particular setup was getting ~150k hits a day.

Personally, amongst my machines, I've got one box running Win2k Server that's been running Apache2/MySQL/PHP5 for some time with not so much as a hiccup. Cheers.

Armando


Matt Murphy wrote:
I'd recommend Apache on windows, IIS seems like it's not very widely used or very well supported.
Matt


-----Original Message-----
From: Travis Raybold [mailto:[EMAIL PROTECTED] Sent: Thursday, November 17, 2005 10:03 AM
To: [email protected]
Subject: [PHP-WIN] any fairly large production sites on IIS/PHP out there?

i am trying to switch our application over to PHP (currently ASP). unfortunately, due to the complexity of both the code and the site setup (hundreds of sites using the same code) it needs to be a sectional replacement. given that and the lack of in house support for linux/unix, the only realistic option is to run PHP and ASP side by side on the same windows box.

recent testing on windows IIS/PHP has not instilled me with a lot of confidence, seeing it use tons more resources than i would expect and crashing periodically.

are there any fairly large sites out there using PHP on IIS? (we get ~500k hits/day, on reasonably complex pages, and are set up with two load balanced web servers connecting to an array of database servers.) i would love to get input from anyone running a similarly sized or larger site on what they do to accomodate PHP in windows. Zend? FastCGI? others?

thanks in advance,

--travis




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

the printer_write() function writes directly to the printer and you do not
need to call printer_start_doc(), priner_start_page() etc. These functions
must be used if you are printing useing the printer_drap_text().

Here is two examples from the documentation:

<?php
$handle = printer_open();
printer_write($handle, "Text to print");
printer_close($handle);
?> 

<?php
$handle = printer_open();
printer_start_doc($handle, "My Document");
printer_start_page($handle);

$font = printer_create_font("Arial", 72, 48, 400, false, false, false,
0);
printer_select_font($handle, $font);
printer_draw_text($handle, "test", 10, 10);
printer_delete_font($font);

printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?> 

- Frank


> 
> Greetings from Mexico.
> 
> I wrote an script to pull some data from a database and created a report
to 
> be printed directly by php. All went fine until i noticed that after the

> actual printing there is an extra blank page. I've tried on a Epson
FX980 
> and several HP LaserJet Printers with the same result. Checking the
spooler 
> i see 2 jobs for every report i send to the printer.
> 
> Even if a send a single line using the script below i got 2 pages.
> 
> $text = 'Hello printer... How do you do?';
> 
>    $handle = printer_open( ); // Blank means default windows printer
>    printer_start_doc($handle, "My Document");
>    printer_start_page($handle);
>    printer_write( $text );
>    printer_end_page($handle);
>    printer_end_doc($handle);
>    printer_close($handle);
> 
> what i'm doing wrong?
> 
> Fernando Ocampo
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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

on 11/17/2005 02:42 PM Alf Stockton said the following:
In a PHP 5.0 program running under Windows 2000 with Apache 2 I need to retrieve either the client machine name or the client machine IP.

Is this possible ?


Just enable Windows NTLM authentication in the PHP pages and use PHP call GetEnv("LOGON_USER"); .

--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin Message ---
I Think the corret answer to this question is $REMOTE_ADDR or
$_SERVER['REMOTE_ADDR']. This will return the IP address of the client
that connects.

- Frank

> Hello,
> 
> on 11/17/2005 02:42 PM Alf Stockton said the following:
> > In a PHP 5.0 program running under Windows 2000 with Apache 2 I need
to 
> > retrieve either the client machine name or the client machine IP.
> > 
> > Is this possible ?
> > 
> 
> Just enable Windows NTLM authentication in the PHP pages and use PHP 
> call GetEnv("LOGON_USER"); .
> 
> -- 
> 
> Regards,
> Manuel Lemos
> 
> Metastorage - Data object relational mapping layer generator
> http://www.metastorage.net/
> 
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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

on 11/17/2005 10:55 PM Frank M. Kromann said the following:
I Think the corret answer to this question is $REMOTE_ADDR or
$_SERVER['REMOTE_ADDR']. This will return the IP address of the client
that connects.

Right, for some reason I read he wanted the Windows client user name.

--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin Message ---
>Just enable Windows NTLM authentication in the PHP pages and use >PHP call 
>GetEnv("LOGON_USER"); 

How exactly would you enable Windows NTLM Authentication in PHP pages?

Tryst

--- End Message ---

Reply via email to