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

2010-10-31 Thread a...@ashleysheridan.co.uk
message - From: Ryan Sun ryansu...@gmail.com Date: Sun, Oct 31, 2010 18:43 Subject: [PHP] a question about user and permission on linux To: a...@ashleysheridan.co.uk a...@ashleysheridan.co.uk Then whats the user of php? On 10/31/2010 2:39 PM, a...@ashleysheridan.co.uk wrote: If its Apache

[PHP] PHP Question

2010-10-28 Thread Paulo Work
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 slide. ex:(li pcomment

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:

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

2010-10-14 Thread Andre Polykanine
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 it doesn't, then it would add Re: at the beginning. But (attention,

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] PHP Email Question

2010-10-01 Thread kranthi
I cant see why you are getting the letter 'z' (assuming $msgContent was referenced properly) . Complete code will be helpful to debug the problem. Also, Heredoc syntax will be more helpful in your situation. And usage of global keyword is strongly discouraged in favor of $GLOBALS superglobal

Re: [PHP] PHP Email Question

2010-09-30 Thread J Ravi Menon
On Wed, Sep 29, 2010 at 1:37 PM, Joe Jackson priory...@googlemail.com wrote: Hi I am trying the following snippet as Bostjan  suggested, and an email is getting sent when I submit the form however in the body of the email I am getting none of the form data in the body of the email.  All I am

Re: [PHP] PHP Email Question

2010-09-29 Thread Joe Jackson
Hi I am trying the following snippet as Bostjan suggested, and an email is getting sent when I submit the form however in the body of the email I am getting none of the form data in the body of the email. All I am getting is the letter 'z' ? Also in the from field of the email this is showing

Re: [PHP] Array question

2010-09-26 Thread a...@ashleysheridan.co.uk
was explicitly created, php made the next one at 3. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: chris h chris...@gmail.com Date: Sat, Sep 25, 2010 22:05 Subject: [PHP] Array question To: MikeB mpbr...@gmail.com Cc: php-general@lists.php.net Mike, $results

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

[PHP] Array question

2010-09-25 Thread MikeB
I have the following code: $query = SELECT * FROM classics; $result = mysql_query($query); if (!$result) die (Database access failed: . mysql_error()); $rows = mysql_num_rows($result); for ($j = 0 ; $j $rows ; ++$j) { $results[] = mysql_fetch_array($result); } mysql_close($db_server);

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

Re: [PHP] PHP Email Question

2010-09-21 Thread J Ravi Menon
Just on this topic, I found swiftmailer library to be really useful esp. in dealing with 'template' emails with custom variables per recipient: http://swiftmailer.org/ The e.g. on email template processing: http://swiftmailer.org/docs/decorator-plugin-howto There are batchSend()

[PHP] PHP Email Question

2010-09-19 Thread Joe Jackson
Hi Sorry for the simple question but I am trying to get my head around PHP. I have a sample PHP script that I am trying to use to send a php powered email message. The snippet of code is shown below mail('em...@address.com', 'Subject', $values['message'], From: \{$values['name']}\

Re: [PHP] PHP Email Question

2010-09-19 Thread Bostjan Skufca
You should format the email message content first, like this: $msgContent = Name: . $values['name'] .\n; $msgContent .= Address: . $values['address'] .\n; Then you should send a this content, like this: mail('em...@address.com', 'Subject', $msgContent, From...); b. On 20 September 2010 00:00,

Re: [PHP] PHP Email Question

2010-09-19 Thread TR Shaw
On Sep 19, 2010, at 6:00 PM, Joe Jackson wrote: Hi Sorry for the simple question but I am trying to get my head around PHP. I have a sample PHP script that I am trying to use to send a php powered email message. The snippet of code is shown below mail('em...@address.com',

[PHP] Re: Question about news.php.net

2010-09-16 Thread MikeB
MikeB wrote: Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:51, MikeBmpbr...@gmail.com wrote: As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and

[PHP] Re: Question about news.php.net

2010-09-15 Thread MikeB
Gary wrote: MikeB wrote: I understand that the news server is based on a mailing list, but I can't handle another high-volume source dumping stuff into my email (even if I filter it into a separate folder) so I am trying to subscribe through the news group. However, getting access seems to be

Re: [PHP] php cli question

2010-09-15 Thread Bostjan Skufca
Here are the results I got when question of migration from apache to nginx was brought up: http://blog.a2o.si/2009/06/24/apache-mod_php-compared-to-nginx-php-fpm/ (BTW there is some FPM in main PHP distribution now) As for resource management, I recommend looking at php sources

Re: [PHP] php cli question

2010-09-15 Thread J Ravi Menon
Thanks Bostjan for the suggestion. I did raise the issue and here is the reply: http://news.php.net/php.internals/49672 Thx, Ravi On Wed, Sep 15, 2010 at 2:38 AM, Bostjan Skufca bost...@a2o.si wrote: Here are the results I got when question of migration from apache to nginx was brought up:

Re: [PHP] php cli question

2010-09-14 Thread Per Jessen
J Ravi Menon wrote: Few questions: 1) Does opcode cache really matter in such cli-based daemons? As 'SomeClass' is instantiated at every loop, I am assuming it is only compiled once as it has already been 'seen'. Yup. 2) What about garbage collection? In a standard apache-mod-php setup,

Re: [PHP] php cli question

2010-09-14 Thread J Ravi Menon
On Tue, Sep 14, 2010 at 12:43 AM, Per Jessen p...@computer.org wrote: J Ravi Menon wrote: Few questions: 1) Does opcode cache really matter in such cli-based daemons? As 'SomeClass' is instantiated at every loop, I am assuming it is only compiled once as it has already been 'seen'. Yup.

Re: [PHP] php cli question

2010-09-14 Thread Per Jessen
J Ravi Menon wrote: On Tue, Sep 14, 2010 at 12:43 AM, Per Jessen p...@computer.org wrote: J Ravi Menon wrote: Few questions: 1) Does opcode cache really matter in such cli-based daemons? As 'SomeClass' is instantiated at every loop, I am assuming it is only compiled once as it has already

[PHP] Image question for runways

2010-09-14 Thread Alexis
Hi, I am trying to create an on the fly image of runway layouts but am hitting a brick wall. I have both the starting and ending coordinates of each runway, it's length, as well as it's angle of direction (heading). I can draw one runway without any problem, but where I am falling short

Re: [PHP] php cli question

2010-09-14 Thread Nathan Rixham
Per Jessen wrote: J Ravi Menon wrote: 2) What about garbage collection? In a standard apache-mod-php setup, we rely on the end of a request-cycle to free up resources - close file descriptiors, free up memory etc.. I am assuming in the aforesaid standalone daemon case, we would have to do this

Re: [PHP] php cli question

2010-09-14 Thread J Ravi Menon
On Tue, Sep 14, 2010 at 1:15 PM, Per Jessen p...@computer.org wrote: J Ravi Menon wrote: On Tue, Sep 14, 2010 at 12:43 AM, Per Jessen p...@computer.org wrote: J Ravi Menon wrote: Few questions: 1) Does opcode cache really matter in such cli-based daemons? As 'SomeClass' is instantiated at

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

[PHP] newbie question about code

2010-09-10 Thread Adam Williams
I'm looking at someone's code to learn and I'm relatively new to programming. In the code I see commands like: $code-do_command(); I'm not really sure what that means. How would that look in procedural style programming? do_command($code); or something else? -- PHP General Mailing List

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
: [PHP] newbie question about code To: PHP General list php-general@lists.php.net I'm looking at someone's code to learn and I'm relatively new to programming. In the code I see commands like: $code-do_command(); I'm not really sure what that means. How would that look in procedural style

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 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 adam_willi...@bellsouth.net, PHP General list php-general

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

[PHP] openssl_pkey_new question

2010-08-19 Thread tedd
Hi gang: I'm trying to keep my questions simple. Does the function openssl_pkey_new use 40, 56, 128, 256, or what bit encryption? Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] NetBeans Question

2010-05-30 Thread tedd
Hi gang: Do any of you use NetBeans for your IDE? It looks like a great IDE, but I have some questions. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

[PHP] Content question

2010-05-19 Thread Ernie Kemp
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. Yes, I'm a newbie at this and the only way

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

[PHP] Parse question

2010-05-13 Thread Ron Piggott
If $message_body contains: $message_body=You are subscribed using u...@domain. To update; How do I capture just the e-mail address? Ron

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

[PHP] Malware Question

2010-04-28 Thread Ashley Sheridan
Hi all, This isn't exactly a PHP question, but I don't know anyone else with the collected smarts of this list. Basically, a site I built and am managing has been identified by Google as a source of malware. Now, I've been over the source code with a fine-toothed comb and found nothing, I've gone

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

Re: [PHP] Math Question....

2010-04-23 Thread Richard Quadling
?php function findBestFactors($Value, $GroupSize = INF) { foreach(range(min($GroupSize, ceil(sqrt($Value))), 1) as $Factor) { if (0 == ($Value % $Factor)) { return array($Factor, $Value / $Factor);

[PHP] Math Question....

2010-04-22 Thread Dan Joseph
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 equal groups based on a max per group. Example. 1,252,398 --

Re: [PHP] Math Question....

2010-04-22 Thread Stephen
Dan Joseph wrote: I want to take a group of items, and divide them into equal groups based on a max per group. Example. 1,252,398 -- divide into equal groups with only 30 items per group max. 1,252,398 DIV 30 = 41,746 groups of 30. 1,252,398 MOD 30 = 18 items in last group Stephen --

Re: [PHP] Math Question....

2010-04-22 Thread Dan Joseph
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 others. 18 is ok for a group in this instance,

Re: [PHP] Math Question....

2010-04-22 Thread Ashley Sheridan
On Thu, 2010-04-22 at 10:17 -0400, 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

Re: [PHP] Math Question....

2010-04-22 Thread Richard Quadling
On 22 April 2010 15:13, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-04-22 at 10:17 -0400, 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,

Re: [PHP] Math Question....

2010-04-22 Thread Richard Quadling
On 22 April 2010 15:26, Richard Quadling rquadl...@googlemail.com wrote: On 22 April 2010 15:13, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-04-22 at 10:17 -0400, Dan Joseph wrote: On Thu, Apr 22, 2010 at 10:12 AM, Stephen stephe...@rogers.com wrote: 1,252,398 DIV 30 =

RE: [PHP] Math Question....

2010-04-22 Thread Jason
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 22 April 2010 15:13 To: Dan Joseph Cc: PHP eMail List Subject: Re: [PHP] Math Question On Thu, 2010-04-22 at 10:17 -0400, Dan Joseph wrote: On Thu, Apr 22, 2010 at 10:12 AM, Stephen stephe

Re: [PHP] Math Question....

2010-04-22 Thread Dan Joseph
On Thu, Apr 22, 2010 at 10:29 AM, Richard Quadling rquadl...@googlemail.com wrote: It sounds like you are looking for factors. http://www.algebra.com/algebra/homework/divisibility/factor-any-number-1.solver Solution by Find factors of any number 1252398 is NOT a prime number:

Re: [PHP] Math Question....

2010-04-22 Thread Peter van der Does
On Thu, 22 Apr 2010 10:17:10 -0400 Dan Joseph dmjos...@gmail.com 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

Re: [PHP] Math Question....

2010-04-22 Thread Peter van der Does
On Thu, 22 Apr 2010 10:49:11 -0400 Peter van der Does pvanderd...@gmail.com wrote: My take on it: $Items=1252398; $MaxInGroup=30; for ($x=$MaxInGroup; $x1;$x--) { $remainder=$Items % $x; // Change 17 to the max amount allowed in the last group if ($remainder == 0 ||

Re: [PHP] Math Question....

2010-04-22 Thread Richard Quadling
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:   It sounds like you are looking for factors. http://www.algebra.com/algebra/homework/divisibility/factor-any-number-1.solver Solution by

Re: [PHP] Math Question....

2010-04-22 Thread Dan Joseph
On Thu, Apr 22, 2010 at 12:16 PM, Richard Quadling rquadl...@googlemail.com wrote: On 22 April 2010 14:48, Dan Joseph dmjos...@gmail.com wrote: This seems to be working ... ?php function findBestFactors($Value, $GroupSize, array $Factors = null) { $Factors = array();

Re: [PHP] Beginner's question: How to run a PHP web application locally?

2010-04-09 Thread Rene Veerman
cmon, just search for ubuntu install lamp via google.. or google for download ubuntu, select the stable branch (karmic), install it, and then type this into a terminal window: sudo apt-get install apache2 mysql5 php5 from there, running LAMP development on linux should be a breeze for you. On

[PHP] Beginner's question: How to run a PHP web application locally?

2010-04-08 Thread Bastien Helders
Hi List, The other day, I read an article that mentioned about a tool that would permit to simulate a web environment for PHP, so that testing could be made before uploading the page on the server. Unfortunately, I don't seem to find the article again. So here am I with this question: What

Re: [PHP] Beginner's question: How to run a PHP web application locally?

2010-04-08 Thread Ashley Sheridan
On Thu, 2010-04-08 at 13:42 +0200, Bastien Helders wrote: Hi List, The other day, I read an article that mentioned about a tool that would permit to simulate a web environment for PHP, so that testing could be made before uploading the page on the server. Unfortunately, I don't seem to find

Re: [PHP] Beginner's question: How to run a PHP web application locally?

2010-04-08 Thread Midhun Girish
The best option in windows would be xampp or wamp same goes true with linux. Midhun Girish On Thu, Apr 8, 2010 at 5:12 PM, Bastien Helders eldroskan...@gmail.com wrote: Hi List, The other day, I read an article that mentioned about a tool that would permit to simulate a web

Re: [PHP] Beginner's question: How to run a PHP web application locally?

2010-04-08 Thread Ashley Sheridan
On Thu, 2010-04-08 at 17:24 +0530, Midhun Girish wrote: The best option in windows would be xampp or wamp same goes true with linux. Midhun Girish On Thu, Apr 8, 2010 at 5:12 PM, Bastien Helders eldroskan...@gmail.com wrote: Hi List, The other day, I read an article

RE: [PHP] Beginner's question: How to run a PHP web application locally?

2010-04-08 Thread Tom Calpin
Hi List, The other day, I read an article that mentioned about a tool that would permit to simulate a web environment for PHP, so that testing could be made before uploading the page on the server. Unfortunately, I don't seem to find the article again. So here am I with this

Re: [PHP] image question again

2010-04-07 Thread Ashley Sheridan
On Tue, 2010-04-06 at 21:44 -0500, Karl DeSaulniers wrote: When I have an imagecreatetruecolor and I create another one and use imagecopymerge, how do I keep the backgrounds transparent even if say the width of the top image is smaller than the back image? I keep getting a black

[PHP] image question again

2010-04-06 Thread Karl DeSaulniers
When I have an imagecreatetruecolor and I create another one and use imagecopymerge, how do I keep the backgrounds transparent even if say the width of the top image is smaller than the back image? I keep getting a black background where the top image does not cover the back. It sets the

Re: [PHP] Newbie Question about Conditionals

2010-03-31 Thread Richard Quadling
On 31 March 2010 05:45, Matty Sarro msa...@gmail.com wrote: That explains it perfectly, thanks you! On Wed, Mar 31, 2010 at 12:40 AM, Tommy Pham tommy...@gmail.com wrote: On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro msa...@gmail.com wrote: Hey all! This is probably my second post on the

Re: [PHP] Newbie Question about Conditionals

2010-03-31 Thread Matty Sarro
After looking up the === operator, I see exactly what you mean. Thanks for your help everyone. I think the confusion was that I was always under the impression that assignment is either true or false; I would never have guessed it was equal to the value assigned. Your examples really helped to

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