Re: [PHP] Date function kill lots time !

2012-01-05 Thread xucheng
yes,it is set in php.ini . 2012/1/5 Adam Richardson > On Wed, Jan 4, 2012 at 11:07 PM, xucheng wrote: > >> hi all, >> I have a webapp which track visitors, and use xhprof for profiling my >> codes . >> After reading some reports produced by xhprof, i found that function >> Date() kills most

RE: [PHP] debugging PHP memory corruption

2012-01-05 Thread Andrew Morum
>Hi Andy, >Have you tried running it with valgrind? (See [1] for tips). >Otherwise, you might have more luck at php-internals mailing list, >since it is related to PHP development if you intend to fix either PHP >or the plugin. > >Matijn >[1] https://bugs.php.net/bugs-getting-valgrind-log.php Than

[PHP] Implicit FTPS

2012-01-05 Thread Todd Nelson
My apologies if I'm in the wrong place, but I'm looking to discuss having PHP support implicit FTPS (currently only supports explicit.) I'd like to find the author(s) of the 'ftp_ssl_connect' function to discuss if this has already been considered and offer assistance if desired. Thank you.

[PHP] Printing

2012-01-05 Thread Jim Giner
My first attempt to print something to a printer. I actually just went ahead and tried this from my website: $hdl = printer_open(); printer_write($hdl,"This is my printed page"); printer_write($hdl,"This is line 1"); printer_write($hdl,"This is line 2"); printer_write($hdl,"This is line 3"); printe

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
On Thu, Jan 5, 2012 at 8:35 PM, Jim Giner wrote: > My first attempt to print something to a printer. > I actually just went ahead and tried this from my website: > $hdl = printer_open(); > printer_write($hdl,"This is my printed page"); > printer_write($hdl,"This is line 1"); > printer_write($hdl,"

Re: [PHP] Implicit FTPS

2012-01-05 Thread Todd Nelson
Thank you Nilesh, but ftp_ssl_connect is my problem! I know what it does now - I'd like to extend it. From that manual page: "ftp_ssl_connect() opens an explicit SSL-FTP connection to the specified host." Todd From: Nilesh Govindarajan To: Todd Nelson Cc: php-general@lists

Re: [PHP] Implicit FTPS

2012-01-05 Thread Nilesh Govindarajan
On Thu, Jan 5, 2012 at 8:31 PM, Todd Nelson wrote: > My apologies if I'm in the wrong place, but I'm looking to discuss having > PHP support implicit FTPS (currently only supports explicit.)  I'd like to > find the author(s) of the 'ftp_ssl_connect' function to discuss if this > has already been c

Re: [PHP] Printing

2012-01-05 Thread Jim Giner
Add extension=php_printer.dll in php.ini? Will adding that line "install" the extension? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
On Thu, Jan 5, 2012 at 9:05 PM, Jim Giner wrote: > Add extension=php_printer.dll in php.ini? > > Will adding that line "install" the extension? > > > It will "enable" the extension. Install = compile + enable. It will not work if you don't have the DLL. -- Nilesh Govindarajan http://nileshgr.co

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
On Thu, Jan 5, 2012 at 9:16 PM, Jim Giner wrote: > and where do I get the dll?  That was my original question.  The > documentation didn't tell me anything other than it had to be enabled. > - Original Message - From: "Nilesh Govindarajan" > > To: "Jim Giner" > Cc: > Sent: Thursday, Jan

Re: [PHP] Printing

2012-01-05 Thread Jim Giner
"Nilesh Govindarajan" wrote in message news:CAPo3nobqHPTH5V+0RqsRsQ0vDAne7V4s1Nc0dB12Gb=akws...@mail.gmail.com... On Thu, Jan 5, 2012 at 9:16 PM, Jim Giner wrote: > and where do I get the dll? That was my original question. The > documentation didn't tell me anything other than it had to be en

Re: [PHP] Printing

2012-01-05 Thread Jim Giner
> I can't tell you much on this, because I don't use windows. You have to get the source at http://pecl.php.net/printer and compile it. I don't know the procedure, etc. -- Nilesh Govindarajan http://nileshgr.com That was a short trip. Clicked on the link for documentation and it takes me righ

Re: [PHP] Implicit FTPS

2012-01-05 Thread Matijn Woudt
On Thu, Jan 5, 2012 at 4:01 PM, Todd Nelson wrote: > My apologies if I'm in the wrong place, but I'm looking to discuss having > PHP support implicit FTPS (currently only supports explicit.)  I'd like to > find the author(s) of the 'ftp_ssl_connect' function to discuss if this > has already been c

[PHP] PDF Printing instead?

2012-01-05 Thread Jim Giner
ok - somebody has advised that I should not be trying to print to a printer from my website php script. The suggestion of creating a pdf and sending to the client was made. How do I install the pdf functions? I've never had to install a package before or is that something my hoster does?

Re: [PHP] PDF Printing instead?

2012-01-05 Thread Dan Joseph
On Thu, Jan 5, 2012 at 3:14 PM, Jim Giner wrote: > ok - somebody has advised that I should not be trying to print to a printer > from my website php script. > > The suggestion of creating a pdf and sending to the client was made. How > do > I install the pdf functions? I've never had to install

Re: [PHP] PDF Printing instead?

2012-01-05 Thread Davo Smith
On Thu, Jan 5, 2012 at 8:26 PM, Dan Joseph wrote: > On Thu, Jan 5, 2012 at 3:14 PM, Jim Giner wrote: > >> ok - somebody has advised that I should not be trying to print to a printer >> from my website php script. >> >> The suggestion of creating a pdf and sending to the client was made.  How >> do

RE: [PHP] Printing

2012-01-05 Thread Steven Staples
If I am not mistaken, that is only for printing ON the SERVER... not on the client. If you're printing, then you're trying to print to a locally connected printer on your server. PHP runs server side, and therefore doesn't know anything about your locally attached printers. I did notice that y

Re: [PHP] PDF Printing instead?

2012-01-05 Thread Bastien
On 2012-01-05, at 3:14 PM, "Jim Giner" wrote: > ok - somebody has advised that I should not be trying to print to a printer > from my website php script. > > The suggestion of creating a pdf and sending to the client was made. How do > I install the pdf functions? I've never had to install

Re: [PHP] PDF Printing instead?

2012-01-05 Thread Marc Guay
> Also try dompdf from digitaljunkies.ca. It allows you to pass an HTML doc to > the code to provide a PDF I think in this case it should say "It doesn't work!". :) Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDF Printing instead?

2012-01-05 Thread Govinda
>> Also try dompdf from digitaljunkies.ca. It allows you to pass an HTML doc to >> the code to provide a PDF > > I think in this case it should say "It doesn't work!". :) maybe this: http://code.google.com/p/dompdf/ -G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PDF Printing instead?

2012-01-05 Thread Paul M Foster
On Thu, Jan 05, 2012 at 03:14:58PM -0500, Jim Giner wrote: > ok - somebody has advised that I should not be trying to print to a printer > from my website php script. > > The suggestion of creating a pdf and sending to the client was made. How do > I install the pdf functions? I've never had