[PHP] Re: php 5.3.2 Unable to fork

2010-03-31 Thread Nathan Rixham
Eduardo Nunes wrote: Compiling without mysql support, the cli php -r 'echo shell_exec(echo Test!);' works fine even as the apache unprivileged user. However when running the test.php script with apache the error log still shows the error Unable to execute / Unable to fork ... back in 5.2.3 i

Re: [PHP] Re: php 5.3.2 Unable to fork

2010-03-31 Thread Nilesh Govindarajan
On 04/01/10 02:21, Eduardo Nunes wrote: Compiling without mysql support, the cli php -r 'echo shell_exec(echo Test!);' works fine even as the apache unprivileged user. However when running the test.php script with apache the error log still shows the error Unable to execute / Unable to fork ...

[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] Re: PHP in HTML code

2010-03-19 Thread Michael A. Peters
Jan G.B. wrote: 2010/3/18 tedd tedd.sperl...@gmail.com: Calling it ranting or religious unjustly demeans the discussion and is inflammatory. In all of this, I've simply said it's your choice. What I said was: *persons ranting about short open tags* *are just like some religious people * I

Re: [PHP] Re: PHP in HTML code

2010-03-19 Thread Peter Lind
On 19 March 2010 10:17, Michael A. Peters mpet...@mac.com wrote: I don't care what people do in their code. I do not like released code with short tags, it has caused me problems when trying to run php webapps that use short tags, I have to go through the code and change them. So what

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Pete Ford
On 17/03/10 18:59, Tommy Pham wrote: On Wed, Mar 17, 2010 at 11:01 AM, Rene Veermanrene7...@gmail.com wrote: hmm.. seems easier to me to push a filetree of .php's with?= through the str_replace(), than it is to get all the?= writers to comply with your wishes, which may not apply to their

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 Pete Ford p...@justcroft.com: On 17/03/10 18:59, Tommy Pham wrote: On Wed, Mar 17, 2010 at 11:01 AM, Rene Veermanrene7...@gmail.com  wrote: hmm.. seems easier to me to push a filetree of .php's with?= through the str_replace(), than it is to get all the?= writers to comply with

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread tedd
At 9:34 AM + 3/18/10, Pete Ford wrote: I do tend to use ?php for blocks of code - so I guess I'm in the middle camp here. Whoa, that's even worse -- make a choice and stick with it -- IMO. I'm all for consistency and have often found myself redoing dozens of scripts because I changed

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread tedd
At 4:11 PM +0100 3/18/10, Jan G.B. wrote: I agree. And I believe the persons ranting about short open tags are just like some religious people. It's almost like a war between Linux/Windows/Mac, IE/FF or ASP/PHP. Also, people love to recommend things that others recommended before. It mustn't

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 tedd tedd.sperl...@gmail.com: Calling it ranting or religious unjustly demeans the discussion and is inflammatory. In all of this, I've simply said it's your choice. What I said was: *persons ranting about short open tags* *are just like some religious people * I did not address

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Ashley Sheridan
On Thu, 2010-03-18 at 17:32 +0100, Jan G.B. wrote: 2010/3/18 tedd tedd.sperl...@gmail.com: Calling it ranting or religious unjustly demeans the discussion and is inflammatory. In all of this, I've simply said it's your choice. What I said was: *persons ranting about short open tags*

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 Ashley Sheridan a...@ashleysheridan.co.uk Technically, PHP isn't embedded in any language; it's the other way around. XML and PHP are used together more often than you might realise. Consider Ajax and RSS, which are becoming more and more popular. Also, there are sites out there

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Ashley Sheridan
On Thu, 2010-03-18 at 17:57 +0100, Jan G.B. wrote: Sure - XML is often used and served. But in general, a web server only parses PHP-Files (ie. .+\.php\d?) unless you configure your server to parse any file or .xml files. So the XML ? is not a problem at all for the interpreter. I wasn't

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Ashley Sheridan
On Thu, 2010-03-18 at 18:09 +0100, Jan G.B. wrote: 2010/3/18 Ashley Sheridan a...@ashleysheridan.co.uk I'd rather have short tags turned off than remember each time that I have to keep breaking up the and ?php before I output it in-case the parser gets confused. You don't need to

Re: [PHP] Re: PHP in HTML code

2010-03-17 Thread tedd
At 8:55 PM -0400 3/16/10, Adam Richardson wrote: That said, I'm not taking exception with those who don't use the short tag, only with those who say I shouldn't. Exception or not, it's still your choice and using short tags can cause problems. My view, why create problems when there is a

Re: [PHP] Re: PHP in HTML code

2010-03-17 Thread Rene Veerman
hmm.. seems easier to me to push a filetree of .php's with ?= through the str_replace(), than it is to get all the ?= writers to comply with your wishes, which may not apply to their situation ;-) On Wed, Mar 17, 2010 at 5:14 PM, tedd tedd.sperl...@gmail.com wrote: At 8:55 PM -0400 3/16/10, Adam

Re: [PHP] Re: PHP in HTML code

2010-03-17 Thread Tommy Pham
On Wed, Mar 17, 2010 at 11:01 AM, Rene Veerman rene7...@gmail.com wrote: hmm.. seems easier to me to push a filetree of .php's with ?= through the str_replace(), than it is to get all the ?= writers to comply with your wishes, which may not apply to their situation ;-) On Wed, Mar 17, 2010 at

Re: [PHP] Re: PHP in HTML code

2010-03-17 Thread tedd
At 11:59 AM -0700 3/17/10, Tommy Pham wrote: http://www.php.net/manual/en/language.basic-syntax.phpmode.php There are four different pairs of opening and closing tags which can be used in PHP. Two of those, ?php ? and script language=php /script, are always available. The other two are short

RE: [PHP] Re: PHP in HTML code

2010-03-16 Thread Ford, Mike
-Original Message- From: Bob McConnell [mailto:r...@cbord.com] Sent: 15 March 2010 18:13 From: Jochem Maas Op 3/13/10 3:49 PM, Jorge Gomes schreef: First of all, i recommend the use of normal php tags (?php ... ?) because the short tags are atm marked as* **DEPRECATED*.

RE: [PHP] Re: PHP in HTML code

2010-03-16 Thread Ashley Sheridan
On Tue, 2010-03-16 at 11:16 +, Ford, Mike wrote: -Original Message- From: Bob McConnell [mailto:r...@cbord.com] Sent: 15 March 2010 18:13 From: Jochem Maas Op 3/13/10 3:49 PM, Jorge Gomes schreef: First of all, i recommend the use of normal php tags (?php ... ?)

RE: [PHP] Re: PHP in HTML code

2010-03-16 Thread Ford, Mike
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 16 March 2010 11:16 On Tue, 2010-03-16 at 11:16 +, Ford, Mike wrote: Proof: http://marc.info/?l=php-internalsm=126832992915664w=2 That's not really proof of anything, it's just an

RE: [PHP] Re: PHP in HTML code

2010-03-16 Thread Bob McConnell
From: Ford, Mike From: Ashley Sheridan On Tue, 2010-03-16 at 11:16 +, Ford, Mike wrote: Proof: http://marc.info/?l=php-internalsm=126832992915664w=2 That's not really proof of anything, it's just an archived email from this list... Well, firstly it's an archived email from

Re: [PHP] Re: PHP in HTML code

2010-03-16 Thread tedd
At 5:54 PM + 3/15/10, Jochem Maas wrote: Op 3/13/10 3:49 PM, Jorge Gomes schreef: First of all, i recommend the use of normal php tags (?php ... ?) because the short tags are atm marked as* **DEPRECATED*. that's a documentation error. You should also echo your values to the page,

Re: [PHP] Re: PHP in HTML code

2010-03-16 Thread Rene Veerman
maybe adding a ?php= as equivalent to ?= and ?php echo , then deprecating ?= would be useful. On Tue, Mar 16, 2010 at 7:18 PM, tedd tedd.sperl...@gmail.com wrote: At 5:54 PM + 3/15/10, Jochem Maas wrote: Op 3/13/10 3:49 PM, Jorge Gomes schreef:  First of all, i recommend the use of

Re: [PHP] Re: PHP in HTML code

2010-03-16 Thread Ashley Sheridan
On Tue, 2010-03-16 at 23:42 +0100, Rene Veerman wrote: maybe adding a ?php= as equivalent to ?= and ?php echo , then deprecating ?= would be useful. On Tue, Mar 16, 2010 at 7:18 PM, tedd tedd.sperl...@gmail.com wrote: At 5:54 PM + 3/15/10, Jochem Maas wrote: Op 3/13/10 3:49 PM,

Re: [PHP] Re: PHP in HTML code

2010-03-16 Thread Adam Richardson
On Tue, Mar 16, 2010 at 7:06 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2010-03-16 at 23:42 +0100, Rene Veerman wrote: maybe adding a ?php= as equivalent to ?= and ?php echo , then deprecating ?= would be useful. On Tue, Mar 16, 2010 at 7:18 PM, tedd

Re: [PHP] Re: PHP in HTML code

2010-03-15 Thread Jochem Maas
Op 3/13/10 3:49 PM, Jorge Gomes schreef: First of all, i recommend the use of normal php tags (?php ... ?) because the short tags are atm marked as* **DEPRECATED*. that's a documentation error. You should also echo your values to the page, instead using the shortcut ?= (stop being a lazy

Re: [PHP] Re: PHP Sessions

2010-03-13 Thread Ashley Sheridan
On Fri, 2010-03-12 at 21:33 -0500, Martine Osias wrote: The sessions variables are OK. They don't print when I put them on the HTML page with this code. tr td align=left?=laquo;.$_SESSION['scripture_text'].raquo;?/td /tr tr td style=font-size: smaller;

Re: [PHP] Re: PHP Sessions

2010-03-13 Thread Andre Polykanine
: Saturday, March 13, 2010, 4:33:34 AM Subject: [PHP] Re: PHP Sessions The sessions variables are OK. They don't print when I put them on the HTML page with this code. tr td align=left?=laquo;.$_SESSION['scripture_text'].raquo;?/td /tr tr td style=font-size: smaller; align=right?=$_SESSION

Re: [PHP] Re: PHP Sessions

2010-03-13 Thread Ashley Sheridan
...@gmail.com To: php-general@lists.php.net php-general@lists.php.net Date: Saturday, March 13, 2010, 4:33:34 AM Subject: [PHP] Re: PHP Sessions The sessions variables are OK. They don't print when I put them on the HTML page with this code. tr td align=left?=laquo;.$_SESSION

Re[2]: [PHP] Re: PHP Sessions

2010-03-13 Thread Andre Polykanine
an...@oire.org Date: Saturday, March 13, 2010, 12:33:46 PM Subject: [PHP] Re: PHP Sessions On Sat, 2010-03-13 at 12:22 +0200, Andre Polykanine wrote: Hello Martine, As you have been already told, the ?=...? is not always supported. However I'd suggest you to do the following (since I love this form

Re: Re[2]: [PHP] Re: PHP Sessions

2010-03-13 Thread Ashley Sheridan
On Sat, 2010-03-13 at 12:49 +0200, Andre Polykanine wrote: Hello Ashley, And if the site is full of that code?)) I think it's worth to learn what's really the reason of the fact that it doesn't work. Besides that, it's more readable for me. And the right thing that was said here is the

Re: [PHP] Re: PHP in HTML code

2010-03-13 Thread Jorge Gomes
First of all, i recommend the use of normal php tags (?php ... ?) because the short tags are atm marked as* **DEPRECATED*. You should also echo your values to the page, instead using the shortcut ?= (stop being a lazy ass! :P): tr td align=left?php echo $_SESSION['scripture_text']; ?/td /tr

[PHP] Re: PHP Sessions

2010-03-12 Thread Martine Osias
The sessions variables are OK. They don't print when I put them on the HTML page with this code. tr td align=left?=laquo;.$_SESSION['scripture_text'].raquo;?/td /tr tr td style=font-size: smaller; align=right?=$_SESSION['scripture_ref']?/td /tr Thank you. Martine Martine Osias

[PHP] Re: PHP in HTML code

2010-03-12 Thread David Robley
Martine Osias wrote: An HTML/PHP code migrated to a different hosting platform seems to behave differently. The PHP statements within HTML fields or within tables does not execute PHP within table: tr td align=left?=laquo;.$_SESSION['scripture_text'].raquo;?/td /tr This PHP

[PHP] Re: PHP backup in Minnesota

2010-03-11 Thread Manuel Lemos
Hello, on 03/11/2010 07:05 PM Ken Kixmoeller said the following: Hey, folks --- - I have a new system going live shortly. Unfortunately, through some client delays (and mine, too, I suppose), we are butting up to a vacation I have planned. My client would like to have a *local*

[PHP] Re: PHP backup in Minnesota

2010-03-11 Thread Ken Kixmoeller
Manuel Lemos wrote: Hello, You may want to try posting an offer here to increase the chances of finding somebody. http://www.phpclasses.org/jobs/ You can also look some of the available people on the map of your region: http://www.phpclasses.org/professionals/country/us/ Thanks -- PHP

[PHP] Re: PHP: inexplicable behaviour of pre- and post-increment operators

2010-03-01 Thread Martin Zvarík
Mess Dne 27.2.2010 5:01, clanc...@cybec.com.au napsal(a): A week ago Dasn asked a question about converting arrays, and I quoted one possible way of achieving his task, using the operation: $i = 0; while ($i $k) { $b[$a[$i++]] = $a[$i++]; } I added the comment that I have always been wary

[PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Hi, I forgot to mention that the url is formed from Actionscript, I am just using PHP to do the I/O because Actionscript does not have this option. So, I guess I cannot do the serialize here like you suggested. I have changed # to 0x for now, and that does not seem to help yet. BTW,

[PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Date: Thu, 25 Feb 2010 13:03:57 -0600 From: nos...@mckenzies.net CC: aj...@alumni.iu.edu; php-general@lists.php.net Subject: Re: PHP GET Error? Shawn McKenzie wrote: Alice Wei wrote: Hi, I have done something wrong here, because when I have my variables declared in my PHP:

[PHP] Re: PHP GET Error?

2010-02-25 Thread Shawn McKenzie
Alice Wei wrote: Hi, I have done something wrong here, because when I have my variables declared in my PHP: $people_from = $_GET['people_from']; $state_colors= $_GET['state_colors']; I get this url: http://localhost/generic.php?people_from=Adair, OK-Alfalfa, OK-Atoka,

[PHP] Re: PHP GET Error?

2010-02-25 Thread Shawn McKenzie
Alice Wei wrote: Hi, I forgot to mention that the url is formed from Actionscript, I am just using PHP to do the I/O because Actionscript does not have this option. So, I guess I cannot do the serialize here like you suggested. I have changed # to 0x for now, and that does not

[PHP] Re: PHP GET Error?

2010-02-25 Thread Shawn McKenzie
Shawn McKenzie wrote: Alice Wei wrote: Hi, I have done something wrong here, because when I have my variables declared in my PHP: $people_from = $_GET['people_from']; $state_colors= $_GET['state_colors']; I get this url: http://localhost/generic.php?people_from=Adair,

[PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Date: Thu, 25 Feb 2010 13:50:16 -0600 From: nos...@mckenzies.net To: aj...@alumni.iu.edu CC: php-general@lists.php.net Subject: Re: PHP GET Error? Alice Wei wrote: Hi, I forgot to mention that the url is formed from Actionscript, I am just using PHP to do the I/O because

Re: [PHP] RE: PHP GET Error?

2010-02-25 Thread Ashley Sheridan
On Thu, 2010-02-25 at 15:01 -0500, Alice Wei wrote: Date: Thu, 25 Feb 2010 13:50:16 -0600 From: nos...@mckenzies.net To: aj...@alumni.iu.edu CC: php-general@lists.php.net Subject: Re: PHP GET Error? Alice Wei wrote: Hi, I forgot to mention that the url is formed from

RE: [PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Subject: Re: [PHP] RE: PHP GET Error? From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: nos...@mckenzies.net; php-general@lists.php.net Date: Thu, 25 Feb 2010 20:03:28 + On Thu, 2010-02-25 at 15:01 -0500, Alice Wei wrote: Date: Thu, 25 Feb 2010 13:50:16 -0600 From

[PHP] Re: PHP GET Error?

2010-02-25 Thread Shawn McKenzie
Alice Wei wrote: Date: Thu, 25 Feb 2010 13:50:16 -0600 From: nos...@mckenzies.net To: aj...@alumni.iu.edu CC: php-general@lists.php.net Subject: Re: PHP GET Error? Alice Wei wrote: Hi, I forgot to mention that the url is formed from Actionscript, I am just using PHP to do the I/O

RE: [PHP] RE: PHP GET Error?

2010-02-25 Thread Ashley Sheridan
On Thu, 2010-02-25 at 15:11 -0500, Alice Wei wrote: Subject: Re: [PHP] RE: PHP GET Error? From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: nos...@mckenzies.net; php-general@lists.php.net Date: Thu, 25 Feb 2010 20:03:28 + On Thu, 2010-02-25 at 15:01

[PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Alice Wei wrote: Date: Thu, 25 Feb 2010 13:50:16 -0600 From: nos...@mckenzies.net To: aj...@alumni.iu.edu CC: php-general@lists.php.net Subject: Re: PHP GET Error? Alice Wei wrote: Hi, I forgot to mention that the url is formed from Actionscript, I am just using

Re: [PHP] RE: PHP GET Error?

2010-02-25 Thread Shawn McKenzie
Alice Wei wrote: Subject: Re: [PHP] RE: PHP GET Error? From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: nos...@mckenzies.net; php-general@lists.php.net Date: Thu, 25 Feb 2010 20:03:28 + On Thu, 2010-02-25 at 15:01 -0500, Alice Wei wrote: Date: Thu

RE: [PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Alice Wei wrote: Hi, I forgot to mention that the url is formed from Actionscript, I am just using PHP to do the I/O because Actionscript does not have this option. So, I guess I cannot do the serialize here like you suggested. I have changed # to 0x for now, and that

Re: [PHP] RE: PHP GET Error?

2010-02-25 Thread Shawn McKenzie
Alice Wei wrote: I can't see anything obviously wrong with the URL really. Is there no way instead to send the data as post data from Flash? I know Flash can make post requests, but I'm not sure how much more difficult it is. I had it using POST before, but from the PHP point of view, it

RE: [PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Date: Thu, 25 Feb 2010 15:04:46 -0600 From: nos...@mckenzies.net To: aj...@alumni.iu.edu CC: a...@ashleysheridan.co.uk; php-general@lists.php.net Subject: Re: [PHP] RE: PHP GET Error? Alice Wei wrote: I can't see anything obviously wrong with the URL really. Is there no way instead

[PHP] Re: PHP / mySQL Project...

2010-02-22 Thread Carlos Medina
Hi Don, i work for the company simplynetworks in germany. I have access to may programmers with the best quality to the best prices. We work quick and no dirty ;-) I am programmer too and my company offer you the best object oriented software of the market. Some references of my clients in

[PHP] Re: php selecting multiple stylesheets

2010-02-08 Thread Al
On 2/7/2010 11:20 PM, David Mehler wrote: Hello, I'm trying to set up a web site. This site has multiple stylesheets, one default stylesheet that should be used if the other is not chosen. The second is a high contrast stylesheet and can be selected by user's who need it. I'm also thinking of

[PHP] Re: php/ruby drb adapter

2010-01-14 Thread Manuel Lemos
Hello, on 01/14/2010 12:51 PM Pete Yadlowsky said the following: I'll be honest: php is not my favorite programming language. That honor goes to ruby. And I don't mean ruby-on-rails; just straight, pure unfettered ruby. I use ruby to write web applications and just about everything else.

[PHP] Re: [PHP-DEV] any solution about array_walk with pass-by-reference UseData?

2010-01-13 Thread hack988 hack988
Online document say's Note: Please note that this function only checks one dimension of a n-dimensional array. Of course you can check deeper dimensions by using, for example, array_udiff_uassoc($array1[0], $array2[0], data_compare_func, key_compare_func);. It's not my needed My need is

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Graham Cossey
On Fri, Jan 8, 2010 at 3:48 AM, Robert Cummings rob...@interjinn.com wrote: They almost always make your shit run faster. I love your final statement Robert! A reply of good grammar and vocabulary summarised most succinctly. -- Graham -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Andrew Ballard
On Thu, Jan 7, 2010 at 10:48 PM, Robert Cummings rob...@interjinn.com wrote: ... They almost always make your shit run faster. You know they make medicine for that? ;-) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Robert Cummings
Graham Cossey wrote: On Fri, Jan 8, 2010 at 3:48 AM, Robert Cummings rob...@interjinn.com wrote: They almost always make your shit run faster. I love your final statement Robert! A reply of good grammar and vocabulary summarised most succinctly. :) -- http://www.interjinn.com Application

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Robert Cummings
clanc...@cybec.com.au wrote: On Thu, 07 Jan 2010 22:48:59 -0500, rob...@interjinn.com (Robert Cummings) wrote: clanc...@cybec.com.au wrote: Thank you all for your comments. I did not know about bytecode caches. They're an interesting concept, but if I am interpreting the paper

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread J Ravi Menon
Hi, A note on bytecode caching and include/include_once performance. A while ago when we were profiling our code, we did notice that file includes do take a noticeable percentage of overall overhead (enough for us to look into it more deep). We are using apc cache on a standard LAMP platform

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread J Ravi Menon
Sorry forgot to mention that we used APC with apc.stat turned off which will give a little bit more performance gain, but it does mean flushing the cache on every code push (which is trivial). Ravi On Fri, Jan 8, 2010 at 11:30 AM, J Ravi Menon jravime...@gmail.com wrote: Hi, A note on

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Phpster
On Jan 8, 2010, at 10:44 AM, Andrew Ballard aball...@gmail.com wrote: On Thu, Jan 7, 2010 at 10:48 PM, Robert Cummings rob...@interjinn.com wrote: ... They almost always make your shit run faster. You know they make medicine for that? ;-) Andrew -- Tacos? Bastien Sent from my

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread Daniel Egeberg
On Thu, Jan 7, 2010 at 04:11, Daevid Vincent dae...@daevid.com wrote: I think it's a case by case basis. Generally File I/O is expensive, but then again, as you say, having everything in a couple files is also sub-optimal for organizing and keeping things modular. That is easily sorted out

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread clancy_1
On Wed, 6 Jan 2010 19:11:07 -0800, dae...@daevid.com (Daevid Vincent) wrote: -Original Message- From: Al [mailto:n...@ridersite.org] Sent: Wednesday, January 06, 2010 5:09 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP programming strategy; lots of little include files

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread clancy_1
On Wed, 06 Jan 2010 23:20:26 -0500, kolb0...@umn.edu (Daniel Kolbo) wrote: Daevid Vincent wrote: -Original Message- From: Al [mailto:n...@ridersite.org] Sent: Wednesday, January 06, 2010 5:09 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP programming strategy; lots

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread Robert Cummings
clanc...@cybec.com.au wrote: Thank you all for your comments. I did not know about bytecode caches. They're an interesting concept, but if I am interpreting the paper http://itst.net/654-php-on-fire-three-opcode-caches-compared correctly they only double the average speed of operation, which

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread clancy_1
On Thu, 07 Jan 2010 22:48:59 -0500, rob...@interjinn.com (Robert Cummings) wrote: clanc...@cybec.com.au wrote: Thank you all for your comments. I did not know about bytecode caches. They're an interesting concept, but if I am interpreting the paper

[PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Al
On 1/6/2010 7:18 PM, clanc...@cybec.com.au wrote: I have a flexible program, which can do many different things according to the type of data it is fed. Ideally the flexibility is achieved by calling different functions, though when the functionality is ill-defined I sometimes just include

RE: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Daevid Vincent
-Original Message- From: Al [mailto:n...@ridersite.org] Sent: Wednesday, January 06, 2010 5:09 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones? On 1/6/2010 7:18 PM, clanc...@cybec.com.au wrote

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Daniel Kolbo
Daevid Vincent wrote: -Original Message- From: Al [mailto:n...@ridersite.org] Sent: Wednesday, January 06, 2010 5:09 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones? On 1/6/2010 7:18 PM, clanc

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Robert Cummings
Daniel Kolbo wrote: Daevid Vincent wrote: -Original Message- From: Al [mailto:n...@ridersite.org] Sent: Wednesday, January 06, 2010 5:09 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones? On 1/6/2010

[PHP] Re: PHP/SWFUpload progress

2009-12-25 Thread Manuel Lemos
Hello, on 12/24/2009 09:33 AM German Geek said the following: Hi all, Wishing you a merry xmas! As a gift to you a little thing that I figured out through long googling and trial and error: We are using the swfupload (flash) upload tool to upload files to a php script. For a rather

[PHP] Re: [PHP-DB] RE: Help for a beginner

2009-12-23 Thread Andy Shellam
Hi Adam, On 23 Dec 2009, at 17:21, Adam Sonzogni wrote: If you read the thread I useda php page totest mysql connectivity after phpmyadmin did not work... At this point I am willing to pay someone to troubleshoot this as I am baffled there is no definitive troubleshooting documentation

[PHP] Re: [PHP-WEBMASTER] Class COM not found

2009-12-17 Thread Hannes Magnusson
(moving to php-general@lists.php.net, please reply-to-all if you have more questions) DBus would be the only extension that comes close to what the COM extension does on windows. See http://pecl.php.net/package/DBus There are currently no documentations (and apparently no releases?) but you can

[PHP] Re: [PHP-WEBMASTER] Class COM not found

2009-12-17 Thread Dinesh
Thanks. Will try using that. Dinesh -- From: Hannes Magnusson hannes.magnus...@gmail.com Sent: Thursday, December 17, 2009 2:44 PM To: Dinesh dineshsd...@hotmail.com Cc: php-general php-general@lists.php.net Subject: Re: [PHP-WEBMASTER] Class COM

[PHP] Re: PHP Equivalent to Java Jar or Python Eggs

2009-11-30 Thread Carlos Medina
c4...@comcast.net schrieb: Has anyone done any work towards packaging of PHP in a manner similar to jar or eggs? I was working on a project the other day with a lot of class files and thought this would be a cool, simple way to deploy the app. Hi, you can check the Phar solution from PHP

[PHP] Re: PHP and XML

2009-11-24 Thread Juan
El día 23 de noviembre de 2009 13:25, Nathan Rixham nrix...@gmail.com escribió: Juan Marcelo Rodríguez Monti wrote: Hi people, I have some doubts about this topic that I'm gonna explain. I have a few sites in flash, and I was requested to write a PHP frontend to send news. I have this

[PHP] Re: PHP and XML

2009-11-24 Thread Nathan Rixham
Juan wrote: El día 23 de noviembre de 2009 13:25, Nathan Rixham nrix...@gmail.com escribió: Juan Marcelo Rodríguez Monti wrote: Hi people, I have some doubts about this topic that I'm gonna explain. I have a few sites in flash, and I was requested to write a PHP frontend to send news. I

[PHP] Re: PHP and XML

2009-11-23 Thread Nathan Rixham
Juan Marcelo Rodríguez Monti wrote: Hi people, I have some doubts about this topic that I'm gonna explain. I have a few sites in flash, and I was requested to write a PHP frontend to send news. I have this already done and it works perfect. It's a LAMP App to send and edit news, post video,

[PHP] Re: PHP sessions, AJAX, authentication and security.

2009-11-21 Thread Nathan Rixham
Angus Mann wrote: Hi all. A question about PHP sessions and their interaction with AJAX. I have a database containing sensitive information and users need to log in to my PHP script and be authenticated before they are granted access. For one of the forms I would like to retrieve

Re: [PHP] Re: PHP sessions, AJAX, authentication and security.

2009-11-21 Thread Angus Mann
same as everywhere else in your apps.. ajax is no different in any way at all, not even slightly. as far as PHP and web server is concerned it's just a plain old request same as any other; thus.. if( !$_SESSION['is_logged_in'] ) { exit(); } // do stuff Thanks for that. Sometimes the

[PHP] Re: [php] [mysql] select and subselect

2009-11-17 Thread David Robley
Allen McCabe wrote: I have a page on my site where I can optionaly filter by certain fields (order by filesize or file category), but I am implementing a shopping cart type of idea where users can submit an order. As administrators, my coworkers and I need to be able to filter orders by

[PHP] Re: [php] [mysql] select and subselect

2009-11-17 Thread Nisse Engström
On Mon, 16 Nov 2009 14:21:41 -0800, Allen McCabe wrote: I have an order table that keeps track of the order_id, the date, the status, etc. I also have an order_lineitem table that is the contents of the order. This has a one-to-many structure (without foreign keys because it is mysql).

[PHP] Re: PHP String convention

2009-11-04 Thread Nathan Rixham
Nick Cooper wrote: Hi, I was just wondering what the difference/advantage of these two methods of writing a string are: 1) $string = foo{$bar}; 2) $string = 'foo'.$bar; 1) breaks PHPUnit when used in classes (need to bug report that) 2) [concatenation] is faster (but you wouldn't notice)

Re: [PHP] Re: PHP String convention

2009-11-04 Thread Lars Torben Wilson
2009/11/4 Nathan Rixham nrix...@gmail.com: Nick Cooper wrote: Hi, I was just wondering what the difference/advantage of these two methods of writing a string are: 1) $string = foo{$bar}; 2) $string = 'foo'.$bar; 1) breaks PHPUnit when used in classes (need to bug report that) 2)

[PHP] Re: [php] INSERT and immediately UPDATE

2009-10-28 Thread Jo�o C�ndido de Souza Neto
Use mysql_insert_id() instead of the select you´re using now. Allen McCabe allenmcc...@gmail.com escreveu na mensagem news:657acef20910281221y5ab6ab7t4882f4f00da2c...@mail.gmail.com... Hey everyone, I have an issue. I need my (employee) users to be able to insert shows into the our MySQL

[PHP] Re: PHP+Apache suddenly not working

2009-10-27 Thread Shawn McKenzie
Jason Lixfeld wrote: I have no doubt that this is due to an update that was done on my system at some point, but unfortunately I can't pinpoint where. The upshot is that PHP is completely unresponsive for me when run from Apache and I'm not sure where to look. I recognize that this isn't an

[PHP] Re: PHP+Apache suddenly not working

2009-10-27 Thread Jason Lixfeld
On 2009-10-27, at 9:33 AM, Shawn McKenzie wrote: Jason Lixfeld wrote: I have no doubt that this is due to an update that was done on my system at some point, but unfortunately I can't pinpoint where. The upshot is that PHP is completely unresponsive for me when run from Apache and I'm

[PHP] Re: PHP broadcast mailer

2009-10-17 Thread Manuel Lemos
Hello, on 10/17/2009 02:41 AM Brian Hazelton said the following: I am in charge of an email newsletter list and making sure it gets sent out in time. My problem is I have never done broadcast emailing and right now we have 400 subscribers but want to build a system that can scale well

[PHP] Re: PHP function unpack

2009-10-15 Thread Gabriel Hahmann
Hi, I've sent this mail a few days ago, but as this list have a very high traffic maybe my mail disappear from you inbox. Any help would be appreciated. Thanks in advance, Gabriel. On Sun, Oct 11, 2009 at 4:42 PM, Gabriel Hahmann gabriel.hahm...@gmail.com wrote: Hi, I'm new to the list and

Re: [PHP] Re: php exception handling

2009-10-12 Thread kranthi
cant http://us3.php.net/manual/en/function.set-exception-handler.php be used ? ?php function exception_handler($e) { //mail('to', 'exception', $e-getMessage()); } set_exception_handler('exception_handler'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: php exception handling

2009-10-11 Thread Al
Lars Nielsen wrote: Hi, I am trying to make an exception class that emails the errors to myself. I have started by using the example by ask at nilpo dot com on http://dk2.php.net/manual/en/language.exceptions.php. It work ok but i want it NOT to show the errors on the php-page but only show

[PHP] RE: PHP/MySQL Superstars

2009-10-02 Thread Jerome Botbol
Thanks Manuel your input is greatly appreciated. Jerome -Original Message- From: Manuel Lemos [mailto:mle...@acm.org] Sent: 01 October 2009 20:46 To: Jerome Botbol Cc: php-general@lists.php.net Subject: Re: PHP/MySQL Superstars Hello, on 10/01/2009 10:09 AM Jerome Botbol said the

[PHP] Re: PHP/MySQL Superstars

2009-10-01 Thread Manuel Lemos
Hello, on 10/01/2009 10:09 AM Jerome Botbol said the following: Hi All, We require a PHP / MySQL superstar to work in-house at our offices near Edgware, London for 3 months on a ground breaking new web 2.0 project which involves a variety of exciting new technologies. You will need at

[PHP] Re[PHP] liable web based cron

2009-09-19 Thread thuankkk
If you need http://www.setcronjob.com/ cron jobs , but your hosting company doesn't allow you to access http://www.setcronjob.com CronJobs feature, you can try this web based cron service: http://www.setcronjob.com SetCronJob . === With SetCronJob, you can create unlimited cron jobs every 5

[PHP] Re: PHP Header issue

2009-09-18 Thread Ralph Deffke
sorry man, but no blancs etc. means NOTHING should be send before the header it should look like this: ?php header(Location: advertise2.php); ? here u can do ur html not one! single char incl. space should be outputted before the header e.g. before the php open tag.

Re: [PHP] Re: PHP Header issue

2009-09-18 Thread Ashley Sheridan
On Fri, 2009-09-18 at 19:01 +0200, Ralph Deffke wrote: sorry man, but no blancs etc. means NOTHING should be send before the header it should look like this: ?php header(Location: advertise2.php); ? here u can do ur html not one! single char incl. space should be outputted

RE: [PHP] Re: PHP Header issue

2009-09-18 Thread Bob McConnell
From: Ashley Sheridan On Fri, 2009-09-18 at 19:01 +0200, Ralph Deffke wrote: sorry man, but no blancs etc. means NOTHING should be send before the header it should look like this: ?php header(Location: advertise2.php); ? here u can do ur html not one! single char incl.

<    1   2   3   4   5   6   7   8   9   10   >