Re: [PHP] web sniffer

2010-03-22 Thread Auke van Slooten
Jochen Schultz wrote: Btw., when you use file_get_contets, is there a good way to tell the script to stop recieving the file after let's say 2 seconds - just in case the server is not reachable - to avoid using fsockopen? http://nl.php.net/manual/en/context.http.php specifically: timeout flo

[PHP] Re: PHP SMTP Mailers

2010-03-22 Thread Auke van Slooten
King Coffee wrote: Hi, I'm executing a third-parity standard PHP application on a Windows IIS 7 shared hosting server. I need to convert, or use, a SMTP mailer service. I found two SMTP PHP scripts - I think may work. The sourceforge.net PHPMailer project and the pear.php.net (Mail, Net_

Re: [PHP] PHP SMTP Mailers

2010-03-22 Thread Michael A. Peters
King Coffee wrote: Hi, I'm executing a third-parity standard PHP application on a Windows IIS 7 shared hosting server. I need to convert, or use, a SMTP mailer service. I found two SMTP PHP scripts - I think may work. The sourceforge.net PHPMailer project and the pear.php.net (Mail, Net_

[PHP] another question on setting include paths for a project

2010-03-22 Thread Robert P. J. Day
to recap regarding an earlier question i asked regarding extending include paths, i have an existing project (call it "proj" currently all under a top-level directory also named "proj") which can be SVN checked out anywhere under a user's home directory. so in my case, i might have my svn worki

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Richard Quadling
On 22 March 2010 14:18, Robert P. J. Day wrote: > >  to recap regarding an earlier question i asked regarding extending > include paths, i have an existing project (call it "proj" currently > all under a top-level directory also named "proj") which can be SVN > checked out anywhere under a user's

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Robert P. J. Day
On Mon, 22 Mar 2010, Richard Quadling wrote: > Depending upon what is being included, an autoloader could help > here. > > The main payoffs for autoloading are reduced memory footprint (class > are loaded JIT) and no need for each class to know exactly where the > other classes are. > > So, your m

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Nilesh Govindarajan
On 03/22/2010 07:48 PM, Robert P. J. Day wrote: to recap regarding an earlier question i asked regarding extending include paths, i have an existing project (call it "proj" currently all under a top-level directory also named "proj") which can be SVN checked out anywhere under a user's home d

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Paul M Foster
On Mon, Mar 22, 2010 at 10:51:38AM -0400, Robert P. J. Day wrote: > On Mon, 22 Mar 2010, Richard Quadling wrote: > > > Depending upon what is being included, an autoloader could help > > here. > > > > The main payoffs for autoloading are reduced memory footprint (class > > are loaded JIT) and no

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread la...@garfieldtech.com
On 3/22/10 10:25 AM, Paul M Foster wrote: That's the key. You can do anything you want inside __autoload(). If you must consult something in the environment, there are a couple of ways to do it. First, set a variable in the $_SESSION array, and consult it in __autoload(). Second, use a configura

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Richard Quadling
On 22 March 2010 15:28, la...@garfieldtech.com wrote: > On 3/22/10 10:25 AM, Paul M Foster wrote: > >> That's the key. You can do anything you want inside __autoload(). If you >> must consult something in the environment, there are a couple of ways to >> do it. First, set a variable in the $_SESSI

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Richard Quadling
On 22 March 2010 14:51, Robert P. J. Day wrote: > On Mon, 22 Mar 2010, Richard Quadling wrote: > >> Depending upon what is being included, an autoloader could help >> here. >> >> The main payoffs for autoloading are reduced memory footprint (class >> are loaded JIT) and no need for each class to k

Re: [PHP] Session Variable Problem

2010-03-22 Thread Gary
mation from ESET Smart Security, version of virus > signature database 4962 (20100321) __ > > The message was checked by ESET Smart Security. > > http://www.eset.com > > > __ Information from ESET Smart Security, version of virus signature database 4965 (20100322)

Fwd: Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Jochem Maas
oops, mailed the OP direct rather than the list. sorry. Originele bericht Onderwerp: Re: [PHP] another question on setting include paths for a project Datum: Mon, 22 Mar 2010 15:58:28 + Van: Jochem Maas Aan: Robert P. J. Day Op 3/22/10 2:18 PM, Robert P. J. Day schreef: >

[PHP] Wordpress/PHP question

2010-03-22 Thread John Tamm-Buckle
Hi all, I'm storing generated data as a post in wordpress using the wp_insert_post function, which works great. Users click a "submit" button and the things are saved, hurrah! However, on clicking the submit button I want to automatically navigate to the post. This has been less successful. I'

Re: [PHP] Wordpress/PHP question

2010-03-22 Thread Robert Cummings
John Tamm-Buckle wrote: Hi all, I'm storing generated data as a post in wordpress using the wp_insert_post function, which works great. Users click a "submit" button and the things are saved, hurrah! However, on clicking the submit button I want to automatically navigate to the post. This has

[PHP] Filtering all output to STDERR

2010-03-22 Thread Marten Lehmann
Hello, we have a strange problem here: - Our ISP is merging STDERR and STDOUT to STDOUT - We are calling a non-builtin function within PHP 5.2 which includes a lot of code and calls a lot of other functions - When calling this function, we receive the output "Cannot open " on STDERR. But since

Re: [PHP] Filtering all output to STDERR

2010-03-22 Thread Peter Lind
You could consider suppressing errors for the duration of the problematic call - if indeed you're looking at a warning that doesn't grind everything to a halt. On 22 March 2010 18:01, Marten Lehmann wrote: > Hello, > > we have a strange problem here: > > - Our ISP is merging STDERR and STDOUT to

Re: [PHP] Wordpress/PHP question

2010-03-22 Thread Piero Steinger
On 22.03.2010 17:47, John Tamm-Buckle wrote: Hi all, I'm storing generated data as a post in wordpress using the wp_insert_post function, which works great. Users click a "submit" button and the things are saved, hurrah! However, on clicking the submit button I want to automatically navigate t

Re: [PHP] Wordpress/PHP question

2010-03-22 Thread tedd
At 12:59 PM -0400 3/22/10, Robert Cummings wrote: You have a space someplace... most like left after some anal coder decided it was a good idea to close all their think about trailing space in the files >:) Cheers, Rob. That may be, but I always add fiber to my coding. Cheers, tedd --

[PHP] Re: Code samples in OOo Presenter

2010-03-22 Thread Shawn McKenzie
Larry Garfield wrote: > Hi all. > > I have a busy conference season coming up, and will be giving a number of > presentations that involve code, specifically PHP. I am going to want to put > code onto slides in OpenOffice (3.1 specifically, using Kubuntu 9.10), but to > date I've never figur

Re: [PHP] Wordpress/PHP question

2010-03-22 Thread Piero Steinger
On 22.03.2010 18:45, John Tamm-Buckle wrote: Line 6 is: http://www.w3.org/1999/xhtml"; //language_attributes('xhtml'); ?>> Thanks, John On Mon, Mar 22, 2010 at 12:38 PM, Piero Steinger > wrote: On 22.03.2010 17:47, John Tamm-Buckle wrote: Hi all,

[PHP] Global Var Disappearing After Function

2010-03-22 Thread APseudoUtopia
Hey list, I have a very odd problem which has been driving me crazy for two days. I've been trying to debug my code and gave up. I finally coded a very simple representation of what the code does, and I get the same problem. However, I still don't understand what's causing it. The representationa

Re: [PHP] Global Var Disappearing After Function

2010-03-22 Thread Andrew Ballard
On Mon, Mar 22, 2010 at 4:58 PM, APseudoUtopia wrote: > Hey list, > > I have a very odd problem which has been driving me crazy for two > days. I've been trying to debug my code and gave up. I finally coded a > very simple representation of what the code does, and I get the same > problem. However

Re: [PHP] Global Var Disappearing After Function

2010-03-22 Thread Peter van der Does
On Mon, 22 Mar 2010 16:58:33 -0400 APseudoUtopia wrote: > Hey list, > > I have a very odd problem which has been driving me crazy for two > days. I've been trying to debug my code and gave up. I finally coded a > very simple representation of what the code does, and I get the same > problem. How

Re: [PHP] PHP SMTP Mailers

2010-03-22 Thread King Coffee
Thanks, I try it and had not problems! King -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Global Var Disappearing After Function

2010-03-22 Thread APseudoUtopia
On Mon, Mar 22, 2010 at 5:13 PM, Peter van der Does wrote: > On Mon, 22 Mar 2010 16:58:33 -0400 > APseudoUtopia wrote: > >> Hey list, >> >> I have a very odd problem which has been driving me crazy for two >> days. I've been trying to debug my code and gave up. I finally coded a >> very simple re

Re: [PHP] Global Var Disappearing After Function

2010-03-22 Thread Shawn McKenzie
APseudoUtopia wrote: > On Mon, Mar 22, 2010 at 5:13 PM, Peter van der Does > wrote: >> On Mon, 22 Mar 2010 16:58:33 -0400 >> APseudoUtopia wrote: >> >>> Hey list, >>> >>> I have a very odd problem which has been driving me crazy for two >>> days. I've been trying to debug my code and gave up. I f

Re: [PHP] Filtering all output to STDERR

2010-03-22 Thread Marten Lehmann
Hello, You could consider suppressing errors for the duration of the problematic call yes, but how? Regards Marten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Filtering all output to STDERR

2010-03-22 Thread Peter Lind
Have you tried with http://dk2.php.net/manual/en/function.error-reporting.php or just the @ operator? On 22 March 2010 23:56, Marten Lehmann wrote: > Hello, > >> You could consider suppressing errors for the duration of the >> problematic call > > yes, but how? > > Regards > Marten > > -- > PHP G

[PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Daevid Vincent
I've been using PHP for a decade or so (since PHP/FI) and love it. The one problem that seems to always keep coming back on enterprise level projects is the lack of threading. This always means we have to write some back-end code in Ruby or Java or C/C++ and some hacky database layer or DBUS or som

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Larry Garfield
Perhaps if you asked a question you'd get an answer rather than coming off as an angry immature crybaby in your last paragraph... No, I'm not going to dignify your post with a real answer. Come back when you can ask a real question and maybe you'll get a real answer. --Larry Garfield On Mond

RE: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Daevid Vincent
That's okay Larry, YOU don't have to answer. Sorry my post offended you Larry (and anyone else equally offended). ...and yes. I AM angry that they refuse to add functionality to the PHP language that MANY people have been requesting, just because they are stubborn. I'll spare you the links to the

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread David McGlone
On Monday 22 March 2010 20:59:21 Daevid Vincent wrote: > That's okay Larry, YOU don't have to answer. > > Sorry my post offended you Larry (and anyone else equally offended). > > ...and yes. I AM angry that they refuse to add functionality to the PHP > language that MANY people have been requesti

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Robert Cummings
David McGlone wrote: On Monday 22 March 2010 20:59:21 Daevid Vincent wrote: That's okay Larry, YOU don't have to answer. Sorry my post offended you Larry (and anyone else equally offended). ...and yes. I AM angry that they refuse to add functionality to the PHP language that MANY people have

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Hans Åhlin
It's code design problem you face, there is loots of solutions to "use treading" in php. (analyse the way ms C# and VB creates and handles threads, and when you have done that you can create a couple of php scripts to acquire the same result). Read GOF (gang of fore) Design Patterns: Elements of R

RE: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Daevid Vincent
> Is this a case of "it's too hard"? > > Subscribe to internals. Read the archives. The truth is out there. I have Googled a while on this and don't see much of anything about "PHP threading" of use. Just a bunch of people desperately wishing for this feature and trying to hack some way of

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Adam Richardson
On Mon, Mar 22, 2010 at 10:23 PM, Daevid Vincent wrote: > > Is this a case of "it's too hard"? > > > > Subscribe to internals. Read the archives. The truth is out there. > > I have Googled a while on this and don't see much of anything about "PHP > threading" of use. Just a bunch of people d

[PHP] PHP to access shell script to print barcodes

2010-03-22 Thread Rob Gould
I am trying to replicate the functionality that I see on this site: http://blog.maniac.nl/webbased-pdf-lto-barcode-generator/ Notice after you hit SUBMIT QUERY, you get a PDF file with a page of barcodes. That's _exactly_ what I'm after. Fortunately, the author gives step-by-step instructions o

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Tommy Pham
On Mon, Mar 22, 2010 at 7:40 PM, Adam Richardson wrote: > On Mon, Mar 22, 2010 at 10:23 PM, Daevid Vincent wrote: > >> > Is this a case of "it's too hard"? >> > >> > Subscribe to internals. Read the archives. The truth is out there. >> >> I have Googled a while on this and don't see much of

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Teus Benschop
There can be, and there are, differences between the languages. There are so many languages out there, and it works like a market place. If you like the language, use it. It it fails to do what you want, you switch to another one. There is no need to beg the php developers to implement anything, as

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Larry Garfield
On Monday 22 March 2010 10:51:14 pm Tommy Pham wrote: > Threading is one of the 2 two main reasons why I moved to Java & > asp.net (C#). I've built a PHP based web crawler about 10 years ago. > I ran into some problems: cookies, form handling and submission, > threading, and application variables.

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Jochem Maas
Op 3/23/10 12:02 AM, Daevid Vincent schreef: > I've been using PHP for a decade or so (since PHP/FI) and love it. The one well they certainly ripped you a new one didn't they :) why no threads? shared-nothing architecture, that's very deliberate, it has draw backs as well as advantages, either

Re: [PHP] PHP to access shell script to print barcodes

2010-03-22 Thread Jochem Maas
Op 3/23/10 3:27 AM, Rob Gould schreef: > I am trying to replicate the functionality that I see on this site: > > http://blog.maniac.nl/webbased-pdf-lto-barcode-generator/ > > Notice after you hit SUBMIT QUERY, you get a PDF file with a page of > barcodes. That's _exactly_ what I'm after. > Fort

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Rene Veerman
ExecSum: * +1 for better threading features in PHP. * overloading = inheritance? * listreaders plz allow ppl to vent some frustration without starting a flamewar. Threading can be implemented in PHP with an fopen('http://yourserver.com/url')->fread()_all_threads+usleep(50ms)->fclose()+proces