Re: [PHP] Re: Reaching the PHP mailing list owners

2012-10-12 Thread Daniel Brown
On Fri, Oct 12, 2012 at 2:19 PM, Helmut Tessarek tessa...@evermeet.cx wrote: Hello Daniel, I wanted to get an answer to my question (which you would have seen, if you actually had read the mail). I briefly glanced, and no more, because anyone with any idea of Internet etiquette knows not

Re: [PHP] Re: Reaching the PHP mailing list owners

2012-10-12 Thread Matijn Woudt
On Fri, Oct 12, 2012 at 8:42 PM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 12, 2012 at 2:19 PM, Helmut Tessarek tessa...@evermeet.cx wrote: Hello Daniel, I wanted to get an answer to my question (which you would have seen, if you actually had read the mail). I briefly glanced,

Re: [PHP] Re: Reaching the PHP mailing list owners

2012-10-12 Thread Helmut Tessarek
Hello Daniel, I briefly glanced, and no more, because anyone with any idea of Internet etiquette knows not to forward an entire bunch of junk to a public and wholly-unrelated mailing list. Had you considered the appropriate options, such as reading about how to contact us, you'd have

Re: [PHP] Re: Reaching the PHP mailing list owners

2012-10-12 Thread Helmut Tessarek
Hi Daniel, Do you see what I mean by condescending? On 12.10.12 14:45 , Matijn Woudt wrote: Did you really need to use that many words? The answer is pretty simple, he's using a crappy mail server.. -- regards Helmut K. C. Tessarek lookup http://sks.pkqs.net for KeyID 0xC11F128D /*

[PHP] Re: cURL issues posting to an end point

2012-10-11 Thread Ian
On 04/10/2012 15:54, Bastien Koert wrote: Hi All, I have a page that receives third party data into my app, xml data via https post. This works fine and I receive the data as expected. The issue I am facing is around posting XML data back as a synchronous response to the post I receive. I

Re: [PHP] Re: limiting

2012-10-10 Thread Ashley Sheridan
Matijn Woudt tijn...@gmail.com wrote: On Wed, Oct 10, 2012 at 12:06 AM, Tim Streater t...@clothears.org.uk wrote: On 09 Oct 2012 at 20:46, Matijn Woudt tijn...@gmail.com wrote: For example your previous post, you could have just looked up what the 'echo' and 'return' statements do in the

Re: [PHP] Re: limiting

2012-10-10 Thread Andy McKenzie
snip Have you read a book on php and perhaps one on CSS to help with your hiding problem? (BTW - that last was a hint.) I've read plenty of PHP books I own at least 5 and ALL of them I've read hardly ever explain anything at all. They just throw some code in there and say this is what it

Re: [PHP] Re: limiting

2012-10-10 Thread Floyd Resler
On Oct 10, 2012, at 9:12 AM, Andy McKenzie amckenz...@gmail.com wrote: snip Have you read a book on php and perhaps one on CSS to help with your hiding problem? (BTW - that last was a hint.) I've read plenty of PHP books I own at least 5 and ALL of them I've read hardly ever explain

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 10:07 AM, Floyd Resler wrote: On Oct 10, 2012, at 9:12 AM, Andy McKenzie amckenz...@gmail.com wrote: snip Have you read a book on php and perhaps one on CSS to help with your hiding problem? (BTW - that last was a hint.) I've read plenty of PHP books I own at least 5 and

Re: [PHP] Re: limiting

2012-10-10 Thread Matijn Woudt
On Wed, Oct 10, 2012 at 5:12 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/10/2012 10:07 AM, Floyd Resler wrote: On Oct 10, 2012, at 9:12 AM, Andy McKenzie amckenz...@gmail.com wrote: snip Have you read a book on php and perhaps one on CSS to help with your hiding problem?

Re: [PHP] Re: limiting

2012-10-10 Thread David McGlone
On Wednesday, October 10, 2012 05:48:10 PM Matijn Woudt wrote: On Wed, Oct 10, 2012 at 5:12 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/10/2012 10:07 AM, Floyd Resler wrote: On Oct 10, 2012, at 9:12 AM, Andy McKenzie amckenz...@gmail.com wrote: snip Have you read a book on

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 1:19 PM, David McGlone wrote: With that said, I just may leave the list. After all if this is all I'm going to get out of it, it's not worth it! -- David M. This list has given you some very good advice, much of it from others. It may not have solved your understanding of

Re: [PHP] Re: limiting

2012-10-10 Thread Govinda
[snip] With that said, I just may leave the list. After all if this is all I'm going to get out of it, it's not worth it! [snip] Hi David, it sounds like cliche, but you get out of it what you put in it. I recommend: (If you *want* to write code, then:) - don't get flustered; don't

Fwd: Re: [PHP] Re: limiting

2012-10-10 Thread David McGlone
-- Forwarded Message -- Subject: Re: [PHP] Re: limiting Date: Wednesday, October 10, 2012, 02:03:57 PM From: David McGlone da...@dmcentral.net To: jim.gi...@albanyhandball.com On Wednesday, October 10, 2012 01:31:58 PM Jim Giner wrote: On 10/10/2012 1:19 PM, David McGlone

[PHP] Re: limiting

2012-10-10 Thread Tim Streater
On 10 Oct 2012 at 19:17, David McGlone da...@dmcentral.net wrote: BTW - in any of your other computer languages didn't they utilize a 'return' statement? PHP's is no different. back in like '85, I learned Pascal that's the only language I learned and I don't recall if it used return.

Re: [PHP] Re: limiting

2012-10-10 Thread David McGlone
On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone da...@dmcentral.net wrote: BTW - in any of your other computer languages didn't they utilize a 'return' statement? PHP's is no different. back in like '85, I learned Pascal

Re: [PHP] Re: limiting

2012-10-10 Thread Ashley Sheridan
On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone da...@dmcentral.net wrote: BTW - in any of your other computer languages didn't they utilize a 'return' statement?

Re: Re: [PHP] Re: limiting

2012-10-10 Thread Matijn Woudt
On Wed, Oct 10, 2012 at 8:17 PM, David McGlone da...@dmcentral.net wrote: BTW - in any of your other computer languages didn't they utilize a 'return' statement? PHP's is no different. back in like '85, I learned Pascal that's the only language I learned and I don't recall if it used

Re: [PHP] Re: limiting

2012-10-10 Thread Matijn Woudt
On Wed, Oct 10, 2012 at 10:26 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone da...@dmcentral.net wrote: BTW - in any

[PHP] Re: limiting

2012-10-10 Thread Tim Streater
On 10 Oct 2012 at 19:53, David McGlone da...@dmcentral.net wrote: On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone da...@dmcentral.net wrote: BTW - in any of your other computer languages didn't they utilize a 'return' statement? PHP's is

[PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 2:36 PM, Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone da...@dmcentral.net wrote: BTW - in any of your other computer languages didn't they utilize a 'return' statement? PHP's is no different. back in like '85, I learned Pascal that's the only language I learned

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 4:27 PM, Matijn Woudt wrote: On Wed, Oct 10, 2012 at 10:26 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone

Re: [PHP] Re: limiting

2012-10-10 Thread tamouse mailing lists
On Wed, Oct 10, 2012 at 7:37 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/10/2012 4:27 PM, Matijn Woudt wrote: On Wed, Oct 10, 2012 at 10:26 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: On Wednesday, October 10,

[PHP] Re: limiting

2012-10-09 Thread Jim Giner
On 10/8/2012 11:11 PM, David McGlone wrote: Hi all, is there any other way to limit this code to only displaying 1 image other than using return. When I use return, I can't get the other images to display in lightbox, but when I use echo, all 5 of the images will correctly display in lightbox,

Re: [PHP] Re: limiting

2012-10-09 Thread David McGlone
On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: On 10/8/2012 11:11 PM, David McGlone wrote: Hi all, is there any other way to limit this code to only displaying 1 image other than using return. When I use return, I can't get the other images to display in lightbox, but when I

Re: [PHP] Re: limiting

2012-10-09 Thread Matijn Woudt
On Tue, Oct 9, 2012 at 9:18 PM, David McGlone da...@dmcentral.net wrote: On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: Sorry to be so blunt. It's fine I kinda figured I'd be either ignored, or yelled at when I asked and I now know that I need to be a professional to ask

Re: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
PLEASE SEE MY COMMENTS INTERSPERSED AND BELOW. (yes this is a top post) On 10/9/2012 3:18 PM, David McGlone wrote: On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: On 10/8/2012 11:11 PM, David McGlone wrote: Hi all, is there any other way to limit this code to only displaying 1

Re: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
On 10/9/2012 3:46 PM, Matijn Woudt wrote: On Tue, Oct 9, 2012 at 9:18 PM, David McGlone da...@dmcentral.net wrote: On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: Sorry to be so blunt. It's fine I kinda figured I'd be either ignored, or yelled at when I asked and I now know that I

RES: [PHP] Re: limiting

2012-10-09 Thread Samuel Lopes Grigolato
matter how bad the words appear to be. Good luck in your path. -Mensagem original- De: Jim Giner [mailto:jim.gi...@albanyhandball.com] Enviada em: terça-feira, 9 de outubro de 2012 17:07 Para: php-general@lists.php.net Assunto: Re: [PHP] Re: limiting On 10/9/2012 3:46 PM, Matijn Woudt wrote

Re: RES: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
, and not as yells or other bad things, doesn't matter how bad the words appear to be. Good luck in your path. -Mensagem original- De: Jim Giner [mailto:jim.gi...@albanyhandball.com] Enviada em: terça-feira, 9 de outubro de 2012 17:07 Para: php-general@lists.php.net Assunto: Re: [PHP] Re

[PHP] Re: limiting

2012-10-09 Thread Tim Streater
On 09 Oct 2012 at 20:46, Matijn Woudt tijn...@gmail.com wrote: For example your previous post, you could have just looked up what the 'echo' and 'return' statements do in the PHP manual, and they are probably explained pretty OK in those books you own too. You probably could have answered the

Re: RES: [PHP] Re: limiting

2012-10-09 Thread Govinda
[snip] When posting, please try to write every bit of effort you had so far trying to solve your problem. Besides that, please, don't feel sad or ignored or whatsoever if the answers you've got wasn't satisfactory or doesn't came at all. As Matijn said, this list isn't meant to be a

Re: [PHP] Re: limiting

2012-10-09 Thread Matijn Woudt
On Wed, Oct 10, 2012 at 12:06 AM, Tim Streater t...@clothears.org.uk wrote: On 09 Oct 2012 at 20:46, Matijn Woudt tijn...@gmail.com wrote: For example your previous post, you could have just looked up what the 'echo' and 'return' statements do in the PHP manual, and they are probably

Re: [PHP] Re: limiting

2012-10-09 Thread tamouse mailing lists
On Tue, Oct 9, 2012 at 5:19 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Oct 10, 2012 at 12:06 AM, Tim Streater t...@clothears.org.uk wrote: On 09 Oct 2012 at 20:46, Matijn Woudt tijn...@gmail.com wrote: For example your previous post, you could have just looked up what the 'echo' and

Re: [PHP] Re: building upon the code RE: Differences

2012-10-05 Thread David McGlone
On Thursday, October 04, 2012 10:41:17 PM Jim Giner wrote: On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized I'm going in circles. But I can say I understand it more than ever. Now whats

Re: [PHP] Re: building upon the code RE: Differences

2012-10-05 Thread David McGlone
On Thursday, October 04, 2012 11:37:06 PM Bastien Koert wrote: On Thu, Oct 4, 2012 at 10:41 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized

Re: [PHP] Re: building upon the code RE: Differences

2012-10-05 Thread Jim Giner
On 10/5/2012 8:09 AM, David McGlone wrote: On Thursday, October 04, 2012 10:41:17 PM Jim Giner wrote: On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized I'm going in circles. But I can say I

Re: [PHP] Re: Differences

2012-10-05 Thread Tamara Temple
On Thu, 2012-10-04 at 18:06 -0400, Jim Giner wrote: I've read thru 9 responses to the OP and not one of you mentioned that the code presented is problematic in itself. Very forgiving, but perhaps someone should have suggested that he post actual code when looking for help in the future,

[PHP] Re: Differences

2012-10-04 Thread Tim Streater
On 04 Oct 2012 at 01:48, David McGlone da...@dmcentral.net wrote: Hi everyone, I have been playing around with some code the list helped me with a while back and I'm not grasping the concept between return and echo and the PHP manual doesn't answer this, unless I'm missing something. There is

[PHP] Re: Differences

2012-10-04 Thread Jim Giner
On 10/3/2012 8:48 PM, David McGlone wrote: Hi everyone, I have been playing around with some code the list helped me with a while back and I'm not grasping the concept between return and echo and the PHP manual doesn't answer this, unless I'm missing something. There is an example at the very

Re: [PHP] Re: Differences

2012-10-04 Thread David McGlone
On Thursday, October 04, 2012 06:06:50 PM Jim Giner wrote: On 10/3/2012 8:48 PM, David McGlone wrote: Hi everyone, I have been playing around with some code the list helped me with a while back and I'm not grasping the concept between return and echo and the PHP manual doesn't answer this,

Re: [PHP] Re: Differences

2012-10-04 Thread Jim Giner
On 10/4/2012 7:08 PM, David McGlone wrote: On Thursday, October 04, 2012 06:06:50 PM Jim Giner wrote: On 10/3/2012 8:48 PM, David McGlone wrote: Hi everyone, I have been playing around with some code the list helped me with a while back and I'm not grasping the concept between return and echo

[PHP] Re: building upon the code RE: Differences

2012-10-04 Thread Jim Giner
On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized I'm going in circles. But I can say I understand it more than ever. Now whats on my mind is breaking out of this circle and doing more with this

[PHP] Re: building upon the code RE: Differences

2012-10-04 Thread Jim Giner
On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized I'm going in circles. But I can say I understand it more than ever. Now whats on my mind is breaking out of this circle and doing more with this

Re: [PHP] Re: building upon the code RE: Differences

2012-10-04 Thread Bastien Koert
On Thu, Oct 4, 2012 at 10:41 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized I'm going in circles. But I can say I understand it more than

[PHP] Re: problem with my login script

2012-10-02 Thread Tim Streater
On 02 Oct 2012 at 12:07, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 02-10-2012 11:59, Bálint Horváth wrote: The problem was already solved. I forgot to send a copy to the list... Rodrigo, break!? Ohh man, it's a crazy idea... A developer DOES NOT use break at all (in a loop)...

RES: [PHP] Re: problem with my login script

2012-10-02 Thread Samuel Lopes Grigolato
I follow this rule of thumb: small blocks of highly understandable code. If this demands ternary conditionals or breaks, so be it! -Mensagem original- De: Tim Streater [mailto:t...@clothears.org.uk] Enviada em: terça-feira, 2 de outubro de 2012 08:37 Para: PHP General List Assunto: [PHP

Re: RES: [PHP] Re: problem with my login script

2012-10-02 Thread ma...@behnke.biz
...@clothears.org.uk] Enviada em: terça-feira, 2 de outubro de 2012 08:37 Para: PHP General List Assunto: [PHP] Re: problem with my login script On 02 Oct 2012 at 12:07, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 02-10-2012 11:59, Bálint Horváth wrote: The problem was already solved. I forgot

Re: RES: [PHP] Re: problem with my login script

2012-10-02 Thread Thomas Conrad
My problem was solved no need to argue. I don't see why use a while loop with a count variable when it produces the same result as a foreach loop. As for using a break in the loop, I could add it but the loop is gonna stop anyway as soon as it hits the end of the array. I also didn't see the point

Re: [PHP] Re: problem with my login script

2012-10-02 Thread Rodrigo Silva dos Santos
To break or not to break? that's the question... All that fight makes me (and, I think that Thomas too) learn a bit more about all of this. And for finish with all of it. I think that if something is not deprecated, is because it's is a good idea to use it somewhere. If the Language

[PHP] Re: {ATTENTION} Re: [PHP] base64_decode

2012-10-02 Thread John Taylor-Johnston
Interesting. Thanks. It was a footer.php in a webpress theme. I was wondering if it was a portal someone was using to get onto my server. I changted ftp passwords and begun using sftp, but phishing code is still leaking onto my sites. My wordpress copies are up to date and DreamHost has no real

RES: [PHP] Re: {ATTENTION} Re: [PHP] base64_decode

2012-10-02 Thread Samuel Lopes Grigolato
...@cegepsherbrooke.qc.ca] Enviada em: terça-feira, 2 de outubro de 2012 14:46 Para: Rodrigo Silva dos Santos Cc: PHP-General Assunto: [PHP] Re: {ATTENTION} Re: [PHP] base64_decode Interesting. Thanks. It was a footer.php in a webpress theme. I was wondering if it was a portal someone was using to get

Re: RES: [PHP] Re: {ATTENTION} Re: [PHP] base64_decode

2012-10-02 Thread Ashley Sheridan
. -Mensagem original- De: John Taylor-Johnston [mailto:john.taylor-johns...@cegepsherbrooke.qc.ca] Enviada em: terça-feira, 2 de outubro de 2012 14:46 Para: Rodrigo Silva dos Santos Cc: PHP-General Assunto: [PHP] Re: {ATTENTION} Re: [PHP] base64_decode Interesting. Thanks

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:32 AM, Tim Dunphy wrote: Hello list, I'm trying to learn and get comfortable with HTML forms in PHP. In one example I am trying to include a file upload in one of the forms. I can connect to the database but for some reason the MySQL query string is bad. I've been over this

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Tommy Pham
On Mon, Oct 1, 2012 at 6:03 AM, Jim Giner jim.gi...@albanyhandball.com wrote: In this case, I do think that your insert statement is incorrect - I could be wrong. I think the VALUES clause s/b just 'VALUE'. Also if you added MYSQLI_ERROR to your error handling you should get a very helpful

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 9:12 AM, Tommy Pham wrote: On Mon, Oct 1, 2012 at 6:03 AM, Jim Giner jim.gi...@albanyhandball.com wrote: In this case, I do think that your insert statement is incorrect - I could be wrong. I think the VALUES clause s/b just 'VALUE'. Also if you added MYSQLI_ERROR to your error

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:32 AM, Tim Dunphy wrote: Hello list, I'm trying to learn and get comfortable with HTML forms in PHP. In one example I am trying to include a file upload in one of the forms. I can connect to the database but for some reason the MySQL query string is bad. I've been over this

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
oops - I added a an extra id field. There were only 4 in OP's DESCRIBE email. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Tim Dunphy
hey thanks guys adding debugging info worked. Actually it was mysqli_error() providing me with a specific error of where the problem was. Cannot insert query:Duplicate entry '0' for key 'PRIMARY' This is the data in the table mysql select * from guitarwars;

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:20 PM, Tim Dunphy wrote: hey thanks guys adding debugging info worked. Actually it was mysqli_error() providing me with a specific error of where the problem was. Cannot insert query:Duplicate entry '0' for key 'PRIMARY' This is the data in the table mysql select * from

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Tim Dunphy
I think the comment about your cannot insert query was because it really did not make sense. Once truly cannot insert a query. Since you ask tho, a more approp message might be Insert query failed to execute.brError returned was . mysqli_error() . brQuery was $q As for your index issue

[PHP] Re: relative url and path_info

2012-09-30 Thread Maciek Sokolewicz
On 30-09-2012 14:21, Tom Sparks wrote: I have created a php script that use $_SERVER['PATH_INFO'], for the different sub-sections the links now looks like this http://localhost/collection/popups.php/models/bttf/car01/ my web browser cant load my images/javascripts/etc because it is

Re: [PHP] Re: PHP as Application Server

2012-09-27 Thread Maciej Liżewski
to Matijn Woudt: you are right there should be something like: public void synchronized increment(), but that is not the point. Sure there are disadvantages and other problems but what Alessando is saying is I would not use cure for cancer even if it existed because it can introduce other problems

[PHP] Re: PHP as Application Server

2012-09-27 Thread Alessandro Pellizzari
Il Thu, 27 Sep 2012 12:28:00 +0200, Maciej Liżewski ha scritto: Sure there are disadvantages and other problems but what Alessando is saying is I would not use cure for cancer even if it existed because it can introduce other problems like overpopulation. Uhm, no. I see it as I would not

Re: [PHP] Re: PHP as Application Server

2012-09-27 Thread Sebastian Krebs
Hi, Once again I didn't read it completely (maybe I will do so), but my 2ct: I recently played with Ruby and Python and of course with their application server (at least a little bit). My experience was, that it is less fun as it sounds in the first place compared to a well designed

[PHP] Re: PHP as Application Server

2012-09-26 Thread Jim Giner
On 9/26/2012 5:58 AM, Maciej Liżewski wrote: Hi, Maybe this topic have been already on board, but I could not find nothing in google, so my question to PHP maintaneers (and other users too) is: Why there is no possibility to run PHP in application server way among other SAPI modules and other

Re: [PHP] Re: PHP as Application Server

2012-09-26 Thread Maciej Liżewski
Well.. many things changed during last 30 years. Cobol is not mainstream, we have got OOP, Java, Python, Ruby, Google and other great things :) I am talking about stateful application server. There are plenty examples in other programming languages: Java has Jetty, Tomcat, Ruby On Rails, Python

[PHP] Re: PHP as Application Server

2012-09-26 Thread Alessandro Pellizzari
Il Wed, 26 Sep 2012 17:23:35 +0200, Maciej Liżewski ha scritto: persistent application servers load resources only on startup (or when needed) and keep them in memory until programatically freed or until end of application (server shutdown). You don't mention the downsides: - every

Re: [PHP] Re: PHP as Application Server

2012-09-26 Thread Jim Giner
On 9/26/2012 11:23 AM, Maciej Liżewski wrote: Well.. many things changed during last 30 years. Cobol is not mainstream, we have got OOP, Java, Python, Ruby, Google and other great things :) I am talking about stateful application server. There are plenty examples in other programming languages:

Re: [PHP] Re: PHP as Application Server

2012-09-26 Thread Matijn Woudt
On Wed, Sep 26, 2012 at 5:23 PM, Maciej Liżewski maciej.lizew...@gmail.com wrote: in Java (for example) you just write class: class Counter { static private counter = 0; public void increment() { this.counter++; } } And here's where things go wrong.. You assume ++ is an atomic

Re: [PHP] Re: PHP as Application Server

2012-09-26 Thread Robert Williams
On 9/26/12 10:18, Matijn Woudt tijn...@gmail.com wrote: Writing scripts for an application server requires a much deeper understanding of threads and computer internals,so as a result it probably increases error rate. Well... yes and no. PHP's architecture pretty much keeps you from having to

[PHP] Re: memory allocation

2012-09-25 Thread Maciek Sokolewicz
On 25-09-2012 12:49, Marcelo Bianchi wrote: Dear list, I developed a script that have to create considerable array of integer numbers in memory. Currently my script has to accommodate in memory two arrays of around 120.000 numbers (for one year of data, I would like to reach a 2 years per

[PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread Jim Giner
On 9/24/2012 10:05 AM, AmirBehzad Eslami wrote: Hi, i'm going to join a mid-size company with a few PHP-driven projects written in procedural PHP, million years old. At the moment, they don't have a wiki or any documentation about their projects. For me, the first challenge in probation period

Re: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread AmirBehzad Eslami
Jim wrote: If you really are joining a team, I would expect that the teammates would be guiding you through their systems. True, but based on my experience, most programmers are not good when it comes to explain stuff. So, I should rely on my own.

Re: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread Mihamina Rakotomandimby
On 09/24/2012 05:19 PM, AmirBehzad Eslami wrote: True, but based on my experience, most programmers are not good when it comes to explain stuff. So, I should rely on my own. Choose another team? -- RMA. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread AmirBehzad Eslami
That's like erasing the question from the paper, in order to give it a solution! I was thinking about this problem for a while, and I've ended-up with this approach: #1 Start using the software as an End-User (don't care about the code) to understand the business-value of the software #2 Take a

Re: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread Mihamina Rakotomandimby
On 09/24/2012 05:38 PM, AmirBehzad Eslami wrote: #1 Start using the software as an End-User (don't care about the code) to understand the business-value of the software #2 Take a look at the database scheme, try to understand the entities and their relations #3 As you use the software, you'll

Re: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread AmirBehzad Eslami
Never worked with Emacs or genben. I'm a fan of vim ;) But thanks a ton, based on your suggestion, I just found vim-dbgp On Mon, Sep 24, 2012 at 6:27 PM, Mihamina Rakotomandimby miham...@rktmb.org wrote: #5 install xdebug + geben + emacs and have a look at the call stacks and bottlenecks.

RES: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread Samuel Lopes Grigolato
Rakotomandimby [mailto:miham...@rktmb.org] Enviada em: segunda-feira, 24 de setembro de 2012 11:58 Para: PHP General Assunto: Re: [PHP] Re: Joining a team, where no wiki or docs are available On 09/24/2012 05:38 PM, AmirBehzad Eslami wrote: #1 Start using the software as an End-User (don't care about

[PHP] Re: Need help to understand a code

2012-09-22 Thread Maciek Sokolewicz
On 22-09-2012 12:34, Ashickur Rahman Noor wrote: Hi all I need some help to understand a code. The code is like this $result = mysql_query($sSQL) or die(err: . mysql_error().$sSQL); if($row = mysql_fetch_array($result)) { foreach($row as $key =$value){

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
On Sat, 2012-09-22 at 13:13 +0200, Maciek Sokolewicz wrote: On 22-09-2012 12:34, Ashickur Rahman Noor wrote: Hi all I need some help to understand a code. The code is like this $result = mysql_query($sSQL) or die(err: . mysql_error().$sSQL); if($row =

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashickur Rahman Noor
Hi Ashley I am updating some one code. Thanks for the notify. Thanks to all. Now I get that. -- Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck 2048R/89C932E1 http://goo.gl/TkP5U Coordinator - Public Relation Cell, FOSS Bangladesh

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote: Hi Ashley I am updating some one code. Thanks for the notify. Thanks to all. Now I get that. -- Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck 2048R/89C932E1

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Matijn Woudt
Op 22 sep. 2012 13:47 schreef Ashley Sheridan a...@ashleysheridan.co.uk het volgende: On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote: Hi Ashley I am updating some one code. Thanks for the notify. Thanks to all. Now I get that.

RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Samuel Lopes Grigolato
. -Mensagem original- De: Matijn Woudt [mailto:tijn...@gmail.com] Enviada em: sábado, 22 de setembro de 2012 11:02 Para: a...@ashleysheridan.co.uk Cc: Ashickur Rahman Noor; PHP List Assunto: Re: [PHP] Re: Need help to understand a code Op 22 sep. 2012 13:47 schreef Ashley Sheridan

Re: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
; [...] And, of course, never ever use * in SQL queries. Samuel. -Mensagem original- De: Matijn Woudt [mailto:tijn...@gmail.com] Enviada em: sábado, 22 de setembro de 2012 11:02 Para: a...@ashleysheridan.co.uk Cc: Ashickur Rahman Noor; PHP List Assunto: Re: [PHP] Re: Need help to understand

Re: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Maciek Sokolewicz
On 22-09-2012 16:19, Samuel Lopes Grigolato wrote: +1 to bad maintainability of the code. As a suggestion, one better solution could be something like: [...] class Entity { public $id; public $name; } [...] $entity = new Entity(); foreach [...] $entity-$$key = $value; [...]

RES: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Samuel Lopes Grigolato
requested to the database layer. +1 to Maciek's suggestion, had totally forgotten this one. Cheers. -Mensagem original- De: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Enviada em: sábado, 22 de setembro de 2012 11:52 Para: Samuel Lopes Grigolato; 'PHP List' Assunto: Re: RES: [PHP] Re

Re: RES: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
2012 11:52 Para: Samuel Lopes Grigolato; 'PHP List' Assunto: Re: RES: [PHP] Re: Need help to understand a code Samuel Lopes Grigolato samuel.grigol...@gmail.com wrote: +1 to bad maintainability of the code. As a suggestion, one better solution could be something like

RES: RES: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Samuel Lopes Grigolato
setembro de 2012 12:35 Para: Samuel Lopes Grigolato Cc: 'PHP List' Assunto: Re: RES: RES: [PHP] Re: Need help to understand a code On Sat, 2012-09-22 at 12:12 -0300, Samuel Lopes Grigolato wrote: I disagree with you Ashley, some arguments can be found here: http://sqlblog.com/blogs/aaron_bertrand

[PHP] Re: PHP Bounce messages

2012-09-21 Thread Tim Streater
On 21 Sep 2012 at 08:40, Lester Caine les...@lsces.co.uk wrote: I know that the php list are one of the 'reply to sender' email handling camp rather than reply to list. I don't understand this. I reply (not that I mail that often) just to the list, if possible. Why would I do anything else?

Re: [PHP] Re: PHP Bounce messages

2012-09-21 Thread tamouse mailing lists
On Fri, Sep 21, 2012 at 4:17 AM, Tim Streater t...@clothears.org.uk wrote: On 21 Sep 2012 at 08:40, Lester Caine les...@lsces.co.uk wrote: I know that the php list are one of the 'reply to sender' email handling camp rather than reply to list. I don't understand this. I reply (not that I

[PHP] Re: PHP Re: PHP Bounce messages

2012-09-21 Thread Tim Streater
On 21 Sep 2012 at 20:56, tamouse mailing lists tamouse.li...@gmail.com wrote: On Fri, Sep 21, 2012 at 4:17 AM, Tim Streater t...@clothears.org.uk wrote: On 21 Sep 2012 at 08:40, Lester Caine les...@lsces.co.uk wrote: I know that the php list are one of the 'reply to sender' email handling

[PHP] Re: CURL vs Exif_imagetype()

2012-09-20 Thread Maciek Sokolewicz
On 20-09-2012 13:48, Rango wrote: Hi, I host a flash painting tool on my site, and wanted to add ability for the users to add a background image from a given url, but I have to make sure the url they add truely refers to a real jpg file, and not something else. I found a methoed with

Re: [PHP] Re: Programmers and developers needed

2012-09-19 Thread German Geek
See below. On 19 September 2012 04:45, Matijn Woudt tijn...@gmail.com wrote: On Tue, Sep 18, 2012 at 8:52 AM, agbo onyador onya...@gmail.com wrote: The growing power of the internet and global networks. (on the world’s politics, economies and even on daily life of ordinary people)

Re: [PHP] Re: Programmers and developers needed

2012-09-19 Thread Matijn Woudt
On Wed, Sep 19, 2012 at 11:53 AM, German Geek geek...@gmail.com wrote: See below. On 19 September 2012 04:45, Matijn Woudt tijn...@gmail.com wrote: On Tue, Sep 18, 2012 at 8:52 AM, agbo onyador onya...@gmail.com wrote: The growing power of the internet and global networks. (on the world’s

Re: [PHP] Re: Programmers and developers needed

2012-09-19 Thread Robert Cummings
On 12-09-19 06:07 AM, Matijn Woudt wrote: On Wed, Sep 19, 2012 at 11:53 AM, German Geek geek...@gmail.com wrote: See below. On 19 September 2012 04:45, Matijn Woudt tijn...@gmail.com wrote: On Tue, Sep 18, 2012 at 8:52 AM, agbo onyador onya...@gmail.com wrote: The growing power of the

Re: [PHP] Re: Programmers and developers needed

2012-09-19 Thread Doug Heimbecker
Not to say I'm all in for communism... but communism failed for the same reason capitalism is failing. Corruption! Here might be a way to deal with this political issue, while keeping on topic with the world peace PHP project: I've had this idea for years, but why not start a technocracy or

Re: [PHP] Re: Programmers and developers needed

2012-09-19 Thread Matijn Woudt
On Wed, Sep 19, 2012 at 4:50 PM, Doug Heimbecker d...@tac.us wrote: Not to say I'm all in for communism... but communism failed for the same reason capitalism is failing. Corruption! Here might be a way to deal with this political issue, while keeping on topic with the world peace PHP

[PHP] Re: PHP Re: Programmers and developers needed

2012-09-19 Thread Tim Streater
On 19 Sep 2012 at 16:32, Matijn Woudt tijn...@gmail.com wrote: unless they were a majority is the thing that bothers me. Getting a majority is hard, take for example the Dutch Politics [1]. Our country is now led by a parliament of 10 different political parties. Getting things done now is

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