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
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
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
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
-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:,
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
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
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
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:
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,
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
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
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
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
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
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
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
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);
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';
-
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()
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']}\
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,
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',
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
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
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
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:
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,
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.
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
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
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
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
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
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'
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
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 |
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
: [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
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
,
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
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
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:
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
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
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
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
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
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:
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
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
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
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
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
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
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:
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
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
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
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,
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
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
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
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
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
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
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
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
If $message_body contains:
$message_body=You are subscribed using u...@domain. To update;
How do I capture just the e-mail address?
Ron
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
-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
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
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
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:
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
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 :
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
?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);
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 --
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
--
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,
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
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,
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 =
-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
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:
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
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 ||
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
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();
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
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
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
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
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
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
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
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
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
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
301 - 400 of 4510 matches
Mail list logo