Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Paul M Foster
On Thu, Jan 20, 2011 at 12:05:53PM -0800, David Harkness wrote: On Thu, Jan 20, 2011 at 7:00 AM, Richard Quadling rquadl...@gmail.comwrote: I'd recommend using a nested set approach for the tags (http://dev.mysql.com/tech-resources/articles/hierarchical-data.html gives a good explanation

RE: [PHP] Newbie Question

2011-01-07 Thread Jay Blanchard
{snip] ...stuff about tedd... [/snip] Thank goodness there is someone on the list much older than me. [snip] PS: It's not Friday yet. [/snip] It is now. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question

2011-01-07 Thread tedd
At 2:16 AM -0500 1/7/11, Daniel Brown wrote: On Thu, Jan 6, 2011 at 23:09, Bill Guion bgu...@comcast.net wrote: Fogging must be a REAL OLD Fashioned term. Please clarify. It was originally written before man invented the letter 'L', Bill. No, it was the predecessor to water-boarding.

Re: [PHP] Newbie Question

2011-01-07 Thread David Hutto
On Fri, Jan 7, 2011 at 2:33 PM, tedd tedd.sperl...@gmail.com wrote: At 2:16 AM -0500 1/7/11, Daniel Brown wrote: On Thu, Jan 6, 2011 at 23:09, Bill Guion bgu...@comcast.net wrote:  Fogging must be a REAL OLD Fashioned term. Please clarify.    It was originally written before man invented

Re: [PHP] Newbie Question

2011-01-06 Thread tedd
At 8:16 PM -0500 1/5/11, Daniel Brown wrote: On Wed, Jan 5, 2011 at 19:45, David Harkness davi...@highgearmedia.com wrote: [snip!] Most companies will gladly give their product away to put it in the hands of soon-to-be-professionals. :) Tedd had his chance to be professional back in

Re: [PHP] Newbie Question

2011-01-06 Thread Bill Guion
At 11:37 AM -0500 01/06/11, tedd wrote: At 8:16 PM -0500 1/5/11, Daniel Brown wrote: On Wed, Jan 5, 2011 at 19:45, David Harkness davi...@highgearmedia.com wrote: [snip!] Most companies will gladly give their product away to put it in the hands of soon-to-be-professionals. :) Tedd

Re: [PHP] Newbie Question

2011-01-06 Thread Daniel Brown
On Thu, Jan 6, 2011 at 23:09, Bill Guion bgu...@comcast.net wrote: Fogging must be a REAL OLD Fashioned term. Please clarify. It was originally written before man invented the letter 'L', Bill. Welcome back, by the way. For someone who only posts once in a [great[ while, you certainly

Re: [PHP] Newbie Question

2011-01-05 Thread tedd
At 9:36 PM -0300 1/1/11, Adolfo Olivera wrote: Hi, I'm new for php. Just trying to get my hello world going on godaddy hosting. Can't getting to work. I think sintax it's ok. I was understanding that my shared hosting plan had php installed. Any suggestions. Thanks, Happy 2011!! PS:

Re: [PHP] Newbie Question

2011-01-05 Thread tedd
At 7:43 PM -0600 1/2/11, Larry Garfield wrote: On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating

Re: [PHP] Newbie Question

2011-01-05 Thread Daniel Brown
On Wed, Jan 5, 2011 at 11:32, David Harkness davi...@highgearmedia.com wrote: I do have to say that NetBeans more than Eclipse will randomly become unusable for unknown reasons: disk and CPU activity spike, code-completion lags, whatever. Eclipse seems more solid in this regard. Whereas,

Re: [PHP] Newbie Question

2011-01-05 Thread Robert Cummings
On 11-01-05 01:35 PM, Daniel Brown wrote: On Wed, Jan 5, 2011 at 11:32, David Harknessdavi...@highgearmedia.com wrote: I do have to say that NetBeans more than Eclipse will randomly become unusable for unknown reasons: disk and CPU activity spike, code-completion lags, whatever. Eclipse seems

Re: [PHP] Newbie Question

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 10:35 AM, Daniel Brown danbr...@php.net wrote: On Wed, Jan 5, 2011 at 11:32, David Harkness davi...@highgearmedia.com wrote: I do have to say that NetBeans more than Eclipse will randomly become unusable for unknown reasons: disk and CPU activity spike,

Re: [PHP] Newbie Question

2011-01-05 Thread sono-io
On Jan 4, 2011, at 5:27 AM, Steve Staples wrote: I now use Komodo (the free version) on my ubuntu workstation, and I love it... I dont know how I managed before. I use Komodo Edit on OS X and I love it as well, except for the compare files feature. It's the worst one I've ever used.

Re: [PHP] Newbie Question

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 3:05 PM, tedd tedd.sperl...@gmail.com wrote: I spent a couple of hours reviewing PHPStorm and it looks *very* promising! Thank you for sharing your thoughts on PHPStorm. My main performance gripe with NetBeans has lessened in the year I've been using it, so I'm less

Re: [PHP] Newbie Question

2011-01-05 Thread Daniel Brown
On Wed, Jan 5, 2011 at 19:45, David Harkness davi...@highgearmedia.com wrote: [snip!] Most companies will gladly give their product away to put it in the hands of soon-to-be-professionals. :) Tedd had his chance to be professional back in the forties (the eighteen-forties, I believe).

Re: [PHP] Newbie Question

2011-01-04 Thread Steve Staples
On Sun, 2011-01-02 at 21:10 -0500, David McGlone wrote: On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote: On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you

Re: [PHP] Newbie Question

2011-01-03 Thread Ashley Sheridan
On Sun, 2011-01-02 at 21:10 -0500, David McGlone wrote: On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote: On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are

Re: [PHP] Newbie Question

2011-01-03 Thread Tim Thorburn
On 1/2/2011 5:56 PM, Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating vim and dreamweaver. I'm trying to go 100% open source, but I really

Re: [PHP] Newbie Question

2011-01-03 Thread Mujtaba Arshad
everyone I know who uses dreamweaver does so because the people that are supervising the project want to use dreamweaver, otherwise I haven't found anyone who actually liked using it. So I don't know if that actually means anything but that's the way it is. I guess it would be important to

Re: [PHP] Newbie Question

2011-01-03 Thread Adolfo Olivera
Tim, I've come to learn that relying on heavy and non free ides for developing can kick you in the rear when you have to setup your developement enviroment after a while. I've have that problem with some previous projects made with adobe flex, asp.net and sql 2008. That's the reason why I'm

Re: [PHP] Newbie Question

2011-01-03 Thread Ashley Sheridan
On Mon, 2011-01-03 at 10:00 -0500, Mujtaba Arshad wrote: I just went back and read the original post and realized the recent discussion has nothing to do with it. Awesome. Yeah, that happens sometimes! The OP changed the subject this time, so it should be OK ;) Also, if you can avoid it,

Re: [PHP] Newbie Question

2011-01-03 Thread Paul M Foster
On Mon, Jan 03, 2011 at 12:03:41PM -0300, Adolfo Olivera wrote: Tim, I've come to learn that relying on heavy and non free ides for developing can kick you in the rear when you have to setup your developement enviroment after a while. I've have that problem with some previous projects

RE: [PHP] Newbie Question

2011-01-02 Thread admin
To: Joshua Kehn Cc: robl...@aapt.net.au; php-general@lists.php.net Subject: Re: [PHP] Newbie Question Sorry, here is the code. The .php extension is a requirement? Can't it b embedded on a .html file? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD

RE: [PHP] Newbie Question

2011-01-02 Thread Ashley Sheridan
Olivera [mailto:olivera.ado...@gmail.com] Sent: Saturday, January 01, 2011 8:38 PM To: Joshua Kehn Cc: robl...@aapt.net.au; php-general@lists.php.net Subject: Re: [PHP] Newbie Question Sorry, here is the code. The .php extension is a requirement? Can't it b embedded on a .html file? !DOCTYPE

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 11:48 AM, ad...@buskirkgraphics.com wrote: Add this to your .htaccess file and HTML files will be handled like PHP files allowing you put PHP in HTML files. AddType application/x-httpd-php .html Richard L. Buskirk I would not recommend this approach, some perfectly

RE: [PHP] Newbie Question

2011-01-02 Thread admin
; php-general@lists.php.net Subject: RE: [PHP] Newbie Question On Sun, 2011-01-02 at 11:48 -0500, ad...@buskirkgraphics.com wrote: Add this to your .htaccess file and HTML files will be handled like PHP files allowing you put PHP in HTML files. AddType application/x-httpd-php .html

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 12:50 PM, ad...@buskirkgraphics.com wrote: The question was The .php extension is a requirement? The answer is no. While me and Ash may completely disagree on the php parser, the simple answer is there are many ways around running a non .php extension file in php.

Re: [PHP] Newbie Question

2011-01-02 Thread Adam Richardson
On Sun, Jan 2, 2011 at 12:16 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sun, 2011-01-02 at 11:48 -0500, ad...@buskirkgraphics.com wrote: Add this to your .htaccess file and HTML files will be handled like PHP files allowing you put PHP in HTML files. AddType

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 1:17 PM, Adam Richardson wrote: I tend to disagree with Ashley on this topic. For many websites, I'll start out making all pages .php, even if they don't require PHP at the moment. That's for a couple reasons. 1) A few years back, there was certainly a significant

Re: [PHP] Newbie Question

2011-01-02 Thread Adolfo Olivera
Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating vim and dreamweaver. I'm trying to go 100% open source, but I really find dreamweaver easier to use so far. El ene

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 5:56 PM, Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating vim and dreamweaver. I'm trying to go 100% open source, but

Re: [PHP] Newbie Question

2011-01-02 Thread Larry Garfield
On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating vim and dreamweaver. I'm trying to go 100% open

Re: [PHP] Newbie Question

2011-01-02 Thread David McGlone
On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote: On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 7:36 PM, Adolfo Olivera wrote: Hi, I'm new for php. Just trying to get my hello world going on godaddy hosting. Can't getting to work. I think sintax it's ok. I was understanding that my shared hosting plan had php installed. Any suggestions. Thanks, Happy 2011!!

Re: [PHP] Newbie Question

2011-01-01 Thread David Robley
Joshua Kehn wrote: On Jan 1, 2011, at 7:36 PM, Adolfo Olivera wrote: Hi, I'm new for php. Just trying to get my hello world going on godaddy hosting. Can't getting to work. I think sintax it's ok. I was understanding that my shared hosting plan had php installed. Any suggestions.

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 7:50 PM, David Robley wrote: And normally would need to be saved as a .php file so the contents will be handled by php. Cheers -- David Robley A fool and his money are my two favourite people. Today is Boomtime, the 2nd day of Chaos in the YOLD 3177. Save the

Re: [PHP] Newbie Question

2011-01-01 Thread Adolfo Olivera
Sorry, here is the code. The .php extension is a requirement? Can't it b embedded on a .html file? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns= http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 8:37 PM, Adolfo Olivera wrote: Sorry, here is the code. The .php extension is a requirement? Can't it b embedded on a .html file? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html

Re: [PHP] array question

2010-12-20 Thread Ravi Gehlot
Jim Lucas has it. You can use the preg_match function to find it. I would use regexp for that reason. regexp is good for making sure things are typed the way they need to (mostly used for). Ravi. On Sat, Dec 18, 2010 at 5:17 PM, Jim Lucas li...@cmsws.com wrote: On 12/17/2010 12:52 PM, Sorin

Re: [PHP] array question

2010-12-18 Thread Jim Lucas
On 12/17/2010 12:52 PM, Sorin Buturugeanu wrote: Hello all! I have a question regarding arrays and the way I can use a value. Let's say I have this string: $s = 'banana,apple,mellon,grape,nut,orange' I want to explode it, and get the third value. For this I would normally do: $a =

RE: [PHP] array question

2010-12-17 Thread Jay Blanchard
[snip] I have a question regarding arrays and the way I can use a value. Let's say I have this string: $s = 'banana,apple,mellon,grape,nut,orange' I want to explode it, and get the third value. For this I would normally do: $a = explode(',', $s); echo $s[2]; That's all fine, but is there a

Re: [PHP] array question

2010-12-17 Thread Daniel Brown
On Fri, Dec 17, 2010 at 15:52, Sorin Buturugeanu m...@soin.ro wrote: Hello all! I have a question regarding arrays and the way I can use a value. Let's say I have this string: $s = 'banana,apple,mellon,grape,nut,orange' I want to explode it, and get the third value. For this I would

Re: [PHP] array question

2010-12-17 Thread Sorin Buturugeanu
Tanks for all of your responses! I guess a function is the way to go. I just have to see if the situation comes up enough times to justify the function approach. @Dan: I really enjoyed your disclaimer :D -- Sorin Buturugeanu www.soin.ro http://www.facebook.com/buturugeanu

Re: [PHP] Switch Question...

2010-11-15 Thread Ashley Sheridan
On Mon, 2010-11-15 at 16:27 -0500, Steve Staples wrote: Ok, dumb question, and i have tested, but I want to ensure that my tests were accurate, and behavior is correct. Ok, i have an integer, that based on what it is, does certain things... switch ((int)$intval) { } now, if i need to

Re: [PHP] Switch Question...

2010-11-15 Thread Steve Staples
On Mon, 2010-11-15 at 22:43 +, Ashley Sheridan wrote: On Mon, 2010-11-15 at 16:27 -0500, Steve Staples wrote: Ok, dumb question, and i have tested, but I want to ensure that my tests were accurate, and behavior is correct. Ok, i have an integer, that based on what it is, does

Re: [PHP] Basic question

2010-11-09 Thread Sharl.Jimh.Tsin
why not search them with keywords cli cgi diff? they are all the Interface to PHP interpretor. one is Command Line I,another is Common Gateway I. Best regards, Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**) 2010/11/9 Tseveendorj Ochirlantuu tseveend...@gmail.com: Hello, I would

Re: [PHP] Basic question

2010-11-09 Thread Daniel P. Brown
On Tue, Nov 9, 2010 at 02:55, Tseveendorj Ochirlantuu tseveend...@gmail.com wrote: Hello, I would like to know what is the difference between follows. PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch (cli) (built: Sep 17 2010 13:49:46) and PHP 5.1.6-pl6-gentoo (cgi-cgi) They are completely

Re: [PHP] a question about user and permission on linux

2010-11-01 Thread Daniel P. Brown
On Sun, Oct 31, 2010 at 13:50, Ryan Sun ryansu...@gmail.com wrote: which user it is executed as when request a php script on browser?(suppose we are on a shared LAMP hosting) Find out: ?php echo trim(`whoami`); ? -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid

Re: [PHP] a question about user and permission on linux

2010-10-31 Thread a...@ashleysheridan.co.uk
If its Apache on Linux (as most hosting will be) then the user will generally be either apache, www, or http. Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] a question about user and permission on linux

2010-10-31 Thread a...@ashleysheridan.co.uk
There isn't a php user. If php scripts are executed through the web server, they belong to the server. If they are cli scripts, then they belong to the user that executed them, or the user the process that executed them is running as. Thanks, Ash http://www.ashleysheridan.co.uk - Reply

Re: [PHP] PHP Question

2010-10-28 Thread Kevin Kinsey
Paulo Work wrote: Hello, Paulo! I am building a website with basic CMS functionality. My problem is that in one of the pages I am using Easyslider to display small comments about the clients. These comments are divided in 3 per slide. ex:(li pcomment 1/p pcomment 1/p pcomment 1/p /li) I am

Re: [PHP] PHP Question

2010-10-28 Thread Jim Lucas
Paulo Work wrote: Hello my name is Paulo Carvalho and I am struggling with the following: I am building a website with basic CMS functionality. My problem is that in one of the pages I am using Easyslider to display small comments about the clients. These comments are divided in 3 per

RE: [PHP] RegExp question: how to add a number?

2010-10-15 Thread Ford, Mike
-Original Message- From: Andre Polykanine [mailto:an...@oire.org] Sent: 14 October 2010 21:42 Hi everyone, I hope you're doing well (haven't written here for a long time :-)). The question is as follows: I have a regexp that would do the following. If the string begins with Re:,

Re: [PHP] RegExp question: how to add a number?

2010-10-15 Thread Richard Quadling
On 15 October 2010 10:16, Ford, Mike m.f...@leedsmet.ac.uk wrote: -Original Message- From: Andre Polykanine [mailto:an...@oire.org] Sent: 14 October 2010 21:42 Hi everyone, I hope you're doing well (haven't written here for a long time :-)). The question is as follows: I have a

Re: [PHP] RegExp question: how to add a number?

2010-10-15 Thread Andrew Ballard
On Fri, Oct 15, 2010 at 5:52 AM, Richard Quadling rquadl...@gmail.com wrote: On 15 October 2010 10:16, Ford, Mike m.f...@leedsmet.ac.uk wrote: -Original Message- From: Andre Polykanine [mailto:an...@oire.org] Sent: 14 October 2010 21:42 Hi everyone, I hope you're doing well (haven't

Re: [PHP] RegExp question: how to add a number?

2010-10-15 Thread Richard Quadling
On 15 October 2010 15:45, Andrew Ballard aball...@gmail.com wrote: On Fri, Oct 15, 2010 at 5:52 AM, Richard Quadling rquadl...@gmail.com wrote: On 15 October 2010 10:16, Ford, Mike m.f...@leedsmet.ac.uk wrote: -Original Message- From: Andre Polykanine [mailto:an...@oire.org] Sent: 14

Re: [PHP] RegExp question: how to add a number?

2010-10-15 Thread Andrew Ballard
On Fri, Oct 15, 2010 at 11:07 AM, Richard Quadling rquadl...@gmail.com wrote: On 15 October 2010 15:45, Andrew Ballard aball...@gmail.com wrote: On Fri, Oct 15, 2010 at 5:52 AM, Richard Quadling rquadl...@gmail.com wrote: On 15 October 2010 10:16, Ford, Mike m.f...@leedsmet.ac.uk wrote:

Re: [PHP] RegExp question: how to add a number?

2010-10-14 Thread David Harkness
On Thu, Oct 14, 2010 at 1:42 PM, Andre Polykanine an...@oire.org wrote: But (attention, here it is!) if the string starts with something like Re[4]:, it should replace it by Re[5]:. Regular expressions do not support any mathematical operations. Instead, you need to use preg_match() to

Re: [PHP] RegExp question: how to add a number?

2010-10-14 Thread Richard Quadling
On 14 October 2010 21:42, Andre Polykanine an...@oire.org wrote: Hi everyone, I hope you're doing well (haven't written here for a long time :-)). The question is as follows: I have a regexp that would do the following. If the string begins with Re:, it will change the beginning to Re[2]:; if

Re: [PHP] Array question

2010-09-26 Thread a...@ashleysheridan.co.uk
I'd also like to add to that: $array = array(); $array[] = 'text'; $array[2] = 123; $array[] = 'hello'; Would output: $array( 0 = 'text', 2 = 123, 3 = 'hello', ); Note the missing index 1, as php makes a numerical index that is one greater than the highest already in use. As the index 2 was

Re: [PHP] Array question

2010-09-26 Thread tedd
At 3:31 PM -0500 9/25/10, MikeB wrote: -snip- My question, in the loop, why does tha author use: $results[] = mysql_fetch_array($result); instead of (as I would expect): $results[$j] = mysql_fetch_array($result);? What PHP magic is at work here? Mike: That's just a shorthand way to

Re: [PHP] Array question

2010-09-25 Thread chris h
Mike, $results[] will automatically push a value unto the end of an array. So doing this... -- $magic = array(); $magic[] = 'a'; $magic[] = 'b'; $magic[] = 'c'; - is exactly this same as doing this... -- $normal = array(); $normal[0] = 'a'; $normal[1] = 'b'; $normal[2] = 'c'; -

[PHP] Re: php cli question

2010-09-13 Thread J Ravi Menon
On Sat, Sep 11, 2010 at 8:50 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 09/10/2010 11:13 AM, J Ravi Menon wrote: Hi, I have some basic questions on running php  (5.2.x series on Linux 2.6) as a standalone daemon using posix methods (fork() etc..): #!/usr/bin/php ?php require_once

[PHP] Re: php cli question

2010-09-11 Thread Shawn McKenzie
On 09/10/2010 11:13 AM, J Ravi Menon wrote: Hi, I have some basic questions on running php (5.2.x series on Linux 2.6) as a standalone daemon using posix methods (fork() etc..): #!/usr/bin/php ?php require_once ('someclass.php'); // do some initializations . // main 'forever'

RE: [PHP] newbie question about code

2010-09-10 Thread Bob McConnell
Did you mean to say That is a method call.? Bob McConnell - From: Joshua Kehn That is a function call. In Java: class Code { public static void function do_command(){ } } Code.do_command(); Regards, -Josh Joshua Kehn |

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Bob- Yes, yes I did. And note that my Java code is incorrect, that should simply be public static void, no function. This is what I get for taking a week to code everything in Node.js. Regards, -Josh Joshua Kehn | josh.k...@gmail.com

Re: [PHP] newbie question about code

2010-09-10 Thread a...@ashleysheridan.co.uk
It's object oriented code. $code is an instance of class, and do_command() is a method if that class. I'd advise reading up on oop php. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Adam Williams adam_willi...@bellsouth.net Date: Fri, Sep 10, 2010 19:27 Subject:

Re: [PHP] newbie question about code

2010-09-10 Thread a...@ashleysheridan.co.uk
Node.js, wouldn't that be javascript rather than java? :P Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Joshua Kehn josh.k...@gmail.com Date: Fri, Sep 10, 2010 19:32 Subject: [PHP] newbie question about code To: Bob McConnell r...@cbord.com Cc: Adam Williams

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Ash- Correct, hence my typo and nomenclature slip. ;) Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Sep 10, 2010, at 2:48 PM, a...@ashleysheridan.co.uk wrote: Node.js, wouldn't that be javascript rather than java? :P

Re: [PHP] newbie question about code

2010-09-10 Thread tedd
At 2:27 PM -0400 9/10/10, Joshua Kehn wrote: Adam- That is a function call. In Java: class Code { public static void function do_command(){ } } Code.do_command(); Regards, -Josh Not just Java, but does I've seen this in several languages. Javascript is one. But realize that Java is

Re: [PHP] newbie question about code

2010-09-10 Thread Adam Richardson
This is what I get for taking a week to code everything in Node.js. It is a Friday, so I'll let my curiosity get the best of me and ask a follow-up on something non-PHP. What insights/impressions do you have regarding Node.js after a week of working with it? Thanks, Adam -- Nephtali:

Re: [PHP] newbie question about code

2010-09-10 Thread chris h
I would check this out to give you a decent understanding of php's oop. http://php.net/manual/en/language.oop5.php Chris. On Fri, Sep 10, 2010 at 2:27 PM, Adam Williams adam_willi...@bellsouth.netwrote: I'm looking at someone's code to learn and I'm relatively new to programming. In the

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Adam- It is unique. I'm writing code that really can't be done any other way. How it handles events, sockets, etc is exceptional. The best part is everything now is JavaScript. The server (Node.js) is written in JavaScript. MongoDB is JavaScript. The frontend used to manage the WebSocket is

Re: [PHP] newbie question about code

2010-09-10 Thread Adam Richardson
On Fri, Sep 10, 2010 at 3:03 PM, Joshua Kehn josh.k...@gmail.com wrote: Adam- It is unique. I'm writing code that really can't be done any other way. How it handles events, sockets, etc is exceptional. The best part is everything now is JavaScript. The server (Node.js) is written in

Re: [PHP] Quick Question

2010-06-15 Thread Malka Cymbalista
The address to subscribe to the javascript list is http://lists.evolt.org/mailman/listinfo/javascript There is a link there to the archives. -- Malka Cymbalista Webmaster, Weizmann Institute of Science malki.cymbali...@weizmann.ac.il 08-934-3036 On 6/15/2010 at 12:16 AM, in message

Re: [PHP] Quick Question

2010-06-14 Thread Karl DeSaulniers
Thanks Malka, I was wondering if you had a web page I could go to before I sign up to see some discussions that have taken place. I tried using the lists.evolt.org, but it did not show the javascript section. TIA, Karl On Jun 14, 2010, at 3:20 AM, Malka Cymbalista wrote:

Re: [PHP] Quick Question

2010-06-14 Thread Karl DeSaulniers
On Jun 14, 2010, at 3:45 PM, Paul M Foster wrote: On Sun, Jun 13, 2010 at 06:06:16PM -0500, Karl DeSaulniers wrote: Hello List, I may have asked this before, but can not find any emails about it. Does anyone know of a general-javascript email list like this php list? Hoping someone here

Re: [PHP] Quick Question

2010-06-13 Thread Nilesh Govindarajan
On Mon, Jun 14, 2010 at 4:36 AM, Karl DeSaulniers k...@designdrumm.com wrote: Hello List, I may have asked this before, but can not find any emails about it. Does anyone know of a general-javascript email list like this php list? Hoping someone here can point me in the right direction. TIA

Re: [PHP] NetBeans Question

2010-06-01 Thread tedd
At 2:50 AM +0100 5/31/10, Ashley Sheridan wrote: On Mon, 2010-05-31 at 02:46 +0100, Mark Kelly wrote: Yeah, like I mentioned earlier, Dreamweaver is known for having issues with include files, can be slow when working on large projects with lots of files, and is only available for Mac and

Re: [PHP] NetBeans Question

2010-05-31 Thread Dušan Novaković
Hi, I've been using NetBeans for some time and I found that there are some issues like for Web applications if you write html tag incorrectlly, you wont be informed about that, for stand alone applications in Java there were also some stupid errors, etc. So, I strongly suggest to check out

Re: [PHP] NetBeans Question

2010-05-31 Thread Mario Lacunza
Hello, what about the Netbeans ram eating? Mario On 31/05/10 02:03, Dušan Novaković wrote: Hi, I've been using NetBeans for some time and I found that there are some issues like for Web applications if you write html tag incorrectlly, you wont be informed about that, for stand alone

Re: [PHP] NetBeans Question

2010-05-31 Thread Jan G.B.
Hi there. I'm also a User of the Netbeans IDE and I can tell you the following: - Netbeans is the only IDE who can load very large PHP scripts (f.e. 1mb PHP Script with a multiple of 10thousands of lines) with syntax highlighting and SUPERB code completion. It works with include files, you can

Re: [PHP] NetBeans Question

2010-05-30 Thread php
On 05/30/2010 05:57 PM, tedd wrote: Hi gang: Do any of you use NetBeans for your IDE? Yes, i do. Since 2 Years (Netbeans 6.5 then), now with 6.8 I work very well with netbeans on Mac OS-X and Ubuntu, using SVN as version-backend, XDEBUG for debugging, Code-Coverage etc... It looks like a

Re: [PHP] NetBeans Question

2010-05-30 Thread Jason Pruim
On May 30, 2010, at 12:32 PM, php wrote: On 05/30/2010 05:57 PM, tedd wrote: Hi gang: Do any of you use NetBeans for your IDE? Yes, i do. Since 2 Years (Netbeans 6.5 then), now with 6.8 I work very well with netbeans on Mac OS-X and Ubuntu, using SVN as version-backend, XDEBUG for

Re: [PHP] NetBeans Question

2010-05-30 Thread Ashley Sheridan
On Sun, 2010-05-30 at 12:58 -0400, Jason Pruim wrote: On May 30, 2010, at 12:32 PM, php wrote: On 05/30/2010 05:57 PM, tedd wrote: Hi gang: Do any of you use NetBeans for your IDE? Yes, i do. Since 2 Years (Netbeans 6.5 then), now with 6.8 I work very well with netbeans on Mac

Re: [PHP] NetBeans Question

2010-05-30 Thread Ashley Sheridan
On Sun, 2010-05-30 at 13:48 -0400, Brandon Rampersad wrote: i use dreamweaver and it's better On Sun, May 30, 2010 at 1:01 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sun, 2010-05-30 at 12:58 -0400, Jason Pruim wrote: On May 30, 2010, at 12:32 PM,

Re: [PHP] NetBeans Question

2010-05-30 Thread tedd
At 6:01 PM +0100 5/30/10, Ashley Sheridan wrote: This thread has made me want to have a look at the IDE. Will the base IDE package be enough, or is there something specific it needs for PHP development, like a netbeans-php package? I'm using Linux (Fedora 11) btw ;) Thanks, Ash Ash: I'm

Re: [PHP] NetBeans Question

2010-05-30 Thread Mark Kelly
Hi Tedd. On Sunday 30 May 2010 at 19:01 tedd wrote: I wanted to ask my questions on the NetBeans forums, but I am having trouble logging in. They seem to have a problem with my given ID, password, and email address and I haven't the time to straighten it all out -- I just want answers -- so I

Re: [PHP] NetBeans Question

2010-05-30 Thread Mark Kelly
Hi Brandon. You sent your reply directly to me, instead of to the mailing list. Also I don't agree - netbeans is an excellent IDE and to call it a text editor is not doing it justice at all. Cheers, Mark On Monday 31 May 2010 at 02:03 you wrote: Dreamweaver is better if you want a real

Re: [PHP] NetBeans Question

2010-05-30 Thread Ashley Sheridan
On Mon, 2010-05-31 at 02:46 +0100, Mark Kelly wrote: Hi Brandon. You sent your reply directly to me, instead of to the mailing list. Also I don't agree - netbeans is an excellent IDE and to call it a text editor is not doing it justice at all. Cheers, Mark On Monday 31 May

Re: [PHP] NetBeans Question

2010-05-30 Thread Mark Kelly
Hi. On Monday 31 May 2010 at 02:50 Ashley Sheridan wrote: Yeah, like I mentioned earlier, Dreamweaver is known for having issues with include files, can be slow when working on large projects with lots of files, and is only available for Mac and Windows, which limits it somewhat. Indeed. I

Re: [PHP] Content question

2010-05-20 Thread tedd
At 1:07 PM -0400 5/19/10, Ernie Kemp wrote: This is not a direct PHP question but I will be using PHP in the website. After a website has been created there will a need to changes say a product or service page over time. The client asking how he will be able to make changes to these pages.

Re: [PHP] Content question

2010-05-19 Thread Ashley Sheridan
On Wed, 2010-05-19 at 13:07 -0400, Ernie Kemp wrote: This is not a direct PHP question but I will be using PHP in the website. After a website has been created there will a need to changes say a product or service page over time. The client asking how he will be able to make

Re: [PHP] Parse question

2010-05-13 Thread Cemal Eker
Check this out. http://www.regular-expressions.info/email.html --- “Talk is cheap. Show me the code” - Linus Torvalds On Thu, May 13, 2010 at 7:34 AM, Ron Piggott ron.pigg...@actsministries.org wrote: If $message_body contains: $message_body=You are subscribed using u...@domain. To

RE: [PHP] Parse question

2010-05-13 Thread Lawrance Shepstone
-Original Message- From: Ron Piggott [mailto:ron.pigg...@actsministries.org] Sent: 13 May 2010 06:34 AM To: PHP General Subject: [PHP] Parse question If $message_body contains: $message_body=You are subscribed using u...@domain. To update; How do I capture just the e-mail address?

Re: [PHP] Malware Question

2010-04-28 Thread Daniel Brown
On Wed, Apr 28, 2010 at 19:50, Ashley Sheridan a...@ashleysheridan.co.uk wrote: The Google webmaster tools tell me nothing more than 'Of the 2 pages we tested on the site over the past 90 days, 2 page(s) resulted in malicious software being downloaded and installed without user consent.' It

Re: [PHP] Math Question....

2010-04-23 Thread Richard Quadling
On 22 April 2010 17:47, Developer Team d...@thebat.net wrote: Awesome source. Thanks On 4/22/10, Richard Quadling rquadl...@googlemail.com wrote: On 22 April 2010 14:48, Dan Joseph dmjos...@gmail.com wrote: On Thu, Apr 22, 2010 at 10:29 AM, Richard Quadling rquadl...@googlemail.com wrote:

Re: [PHP] Math Question....

2010-04-23 Thread Dotan Cohen
On 22 April 2010 17:07, Dan Joseph dmjos...@gmail.com wrote: Howdy, This is a math question, but I'm doing the code in PHP, and have expunged all resources... hoping someone can guide me here.  For some reason, I can't figure this out. I want to take a group of items, and divide them into

Re: [PHP] Math Question....

2010-04-23 Thread Richard Quadling
On 23 April 2010 13:33, Dotan Cohen dotanco...@gmail.com wrote: What is wrong with 626,299 groups of 2 items each (done in my head, so I might be off a little)? 2, 3, 6, 7, 14 and 21 are all valid. -- - Richard Quadling Standing on the shoulders of some very clever giants! EE :

Re: [PHP] Math Question....

2010-04-23 Thread tedd
At 10:17 AM -0400 4/22/10, Dan Joseph wrote: On Thu, Apr 22, 2010 at 10:12 AM, Stephen stephe...@rogers.com wrote: 1,252,398 DIV 30 = 41,746 groups of 30. 1,252,398 MOD 30 = 18 items in last group Well, the only problem with going that route, is the one group is not equally sized to the

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