php-general Digest 22 Mar 2010 14:33:01 -0000 Issue 6653

2010-03-22 Thread php-general-digest-help
php-general Digest 22 Mar 2010 14:33:01 - Issue 6653 Topics (messages 303083 through 303087): Re: web sniffer 303083 by: Auke van Slooten Re: PHP SMTP Mailers 303084 by: Auke van Slooten 303085 by: Michael A. Peters another question on setting include paths for a

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

[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,

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,

[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 working

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 rpj...@crashcourse.ca 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

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 main

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

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 need for

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

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 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

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 rpj...@crashcourse.ca 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

Re: [PHP] Session Variable Problem

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

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 joc...@iamjochem.com Aan: Robert P. J. Day rpj...@crashcourse.ca Op

[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.

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 lehm...@cnm.de wrote: Hello, we have a strange problem here: - Our ISP is merging STDERR and

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 to

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 ?php tags but didn't think about trailing space in the files :) Cheers, Rob. That may be, but I always add fiber to my coding.

[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 figured

Re: [PHP] Wordpress/PHP question

2010-03-22 Thread Piero Steinger
On 22.03.2010 18:45, John Tamm-Buckle wrote: Line 6 is: html xmlns=http://www.w3.org/1999/xhtml; ?php //language_attributes('xhtml'); ? Thanks, John On Mon, Mar 22, 2010 at 12:38 PM, Piero Steinger pi...@the-admins.ch mailto:pi...@the-admins.ch wrote: On 22.03.2010 17:47, John

[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

Re: [PHP] Global Var Disappearing After Function

2010-03-22 Thread Andrew Ballard
On Mon, Mar 22, 2010 at 4:58 PM, APseudoUtopia apseudouto...@gmail.com 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

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 apseudouto...@gmail.com 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

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 pvanderd...@gmail.com wrote: On Mon, 22 Mar 2010 16:58:33 -0400 APseudoUtopia apseudouto...@gmail.com 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

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 pvanderd...@gmail.com wrote: On Mon, 22 Mar 2010 16:58:33 -0400 APseudoUtopia apseudouto...@gmail.com wrote: Hey list, I have a very odd problem which has been driving me crazy for two days. I've been trying to debug

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 lehm...@cnm.de wrote: Hello, You could consider suppressing errors for the duration of the problematic call yes, but how? Regards Marten -- PHP

[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

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

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

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 requesting,

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

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

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.