[PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Anton Heuschen
This might sound trivial, but for the live of me cant seem to get it to work, and I am not familiar with such a thing. What I have is a query lets say : select country,name,population from USERS where id= 'some_id' ; Now I want to assign the result to one set (The above example might have 3+

[PHP] User Authentication across multiple server

2009-03-06 Thread Edmund Hertle
Hey, I've got 2 server, both having the same authentication scripts and using the same database. My problems are: 1.: User logs in on server1 - trys to use a part of the site which is physically located on server2 - has to login again on server2 2.: There is a wiki on server2, which also depends

Re: [PHP] User Authentication across multiple server

2009-03-06 Thread Paul Scott
On Fri, 2009-03-06 at 10:09 +0100, Edmund Hertle wrote: The only method which possibly could work and came to my mind was using somehow $_GET parameter for username and password (encrypted). Set a cookie and crypt that (RC4 works well) and then check for the cookie on both sites. Kind of like

Re: [PHP] User Authentication across multiple server

2009-03-06 Thread j's php general
On Fri, Mar 6, 2009 at 5:14 PM, Paul Scott psc...@uwc.ac.za wrote: On Fri, 2009-03-06 at 10:09 +0100, Edmund Hertle wrote: The only method which possibly could work and came to my mind was using somehow $_GET parameter for username and password (encrypted). Set a cookie and crypt that (RC4

Re: [PHP] Website on a USB key?

2009-03-06 Thread Robert Cummings
On Fri, 2009-03-06 at 01:40 -0500, Paul M Foster wrote: On Fri, Mar 06, 2009 at 04:24:24PM +1100, Clancy wrote: I bought some appliance recently, and found that they had thrown in a 2G USB key for good luck. I guess I ought to be able to put a PHP server plus a copy of my website on it

Re: [PHP] User Authentication across multiple server

2009-03-06 Thread Michael A. Peters
Edmund Hertle wrote: Hey, I've got 2 server, both having the same authentication scripts and using the same database. My problems are: 1.: User logs in on server1 - trys to use a part of the site which is physically located on server2 - has to login again on server2 2.: There is a wiki on

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Dollah Ihsan
I'm sorry if this is not what you're talking about... /** * assume your table structure just like this. * table: users * | id | country| name | population | * -- * | 1 |Texas | Fort Worth |

Re: [PHP] Sending out large amounts of email

2009-03-06 Thread Richard Heyes
Hi, Our company is merging with another company and newsletter now needs to go out to more than 100.000 people. Out source it. It will cost you far less in the long run. And the short run. I tried Jango mail and they seemed OK, though I didn't have to talk to their support, and my use was very

Re: [PHP] Re: PHP script lag (5 secs) when declaring mime type.

2009-03-06 Thread Jsbeginner
Thankyou for the help, I will contact the script maintainer to ask him to work on this problem for future updates, and for the moment I've commented out the line that specifies the length. I suppose that it won't cause any problems with files that are sent through this script that are not

Re: [PHP] Conclusion of use strict...

2009-03-06 Thread Hans Schultz
Hehe,I don't agree with either :-) But I am still searching for some solution, and when (and if) I find it I will be happy to share with you (btw, obviously nobody shared experiences about that compiler) Hans is the OP, the one you thought got it all wrong., you're actually agree with me ...

RE: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Chetan Rane
Hi this is similar to what Dollah Ihsan had suggested , however I ave tweeked the getPopulationById function a bit. /** * assume your table structure just like this. * table: users * | id | country| name | population | *

RE: [PHP] Sending out large amounts of email

2009-03-06 Thread Bob McConnell
From: Chris Brian Hansen wrote: 2009/3/6 Chris dmag...@gmail.com mailto:dmag...@gmail.com What about 10,000? I haven't been able to send out more than 6000 at most. It is proberly caused by a limit set in Postfix as you wrote. If you're sending emails one by one in a mail()

[PHP] Missing ANNOUNCE email: PHP 5.2.9

2009-03-06 Thread Steven Chamberlain
Hi, I learned only today that PHP 5.2.9 had been released on 2009-02-26 and fixed security vulnerabilities. I've checked, and there was no ANNOUNCE email for this version, as can be verified here: http://news.php.net/group.php?group=php.announce I've come to rely on these useful email

Re: [PHP] Re: PHP script lag (5 secs) when declaring mime type.

2009-03-06 Thread 9el
On Fri, Mar 6, 2009 at 4:18 PM, Jsbeginner jsbegin...@monarobase.netwrote: Thankyou for the help, I will contact the script maintainer to ask him to work on this problem for future updates, and for the moment I've commented out the line that specifies the length. I suppose that it won't

Re: [PHP] Website on a USB key?

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 3:24 AM, Robert Cummings rob...@interjinn.com wrote: On Fri, 2009-03-06 at 01:40 -0500, Paul M Foster wrote: On Fri, Mar 06, 2009 at 04:24:24PM +1100, Clancy wrote: I bought some appliance recently, and found that they had thrown in a 2G USB key for good luck.  I

[PHP] include question

2009-03-06 Thread PJ
good morning all, How can I include src and href in include files that will refer the right paths from files in different hierarchies(directory tree levels)? Example: include dirname(_FILE_)./../lib/header1.php; ? This does not work: snippetysnip... LINK href=dirname(_FILE_).'/../lib/index.css'

Re: [PHP] include question

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 08:37, PJ af.gour...@videotron.ca wrote: good morning all, How can I include src and href in include files that will refer the right paths from files in different hierarchies(directory tree levels)? Example: include dirname(_FILE_)./../lib/header1.php; ? This does

Re: [PHP] Website on a USB key?

2009-03-06 Thread Sean O
Another good website-on-a-stick software is... well, WOS (now called MoWeS -- Modular Webserver System). http://www.chsoftware.net/en/useware/mowes/mowes.htm The nice thing about this software is the ability to download packages of just about any major server-based software -- Drupal, Mambo,

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 00:12, Clancy clanc...@cybec.com.au wrote: Don't take me too seriously on this. But it riles me that the same peoplewho threw out the GOTO as being too dangerous could then introduce the break statement which, as I said, it's like a GOTO without a target. As a

Re: [PHP] include question

2009-03-06 Thread Stuart
2009/3/6 Daniel Brown danbr...@php.net On Fri, Mar 6, 2009 at 08:37, PJ af.gour...@videotron.ca wrote: good morning all, How can I include src and href in include files that will refer the right paths from files in different hierarchies(directory tree levels)? Example: include

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 08:53, Daniel Brown danbr...@php.net wrote:    Then you'll be happy with the advent of PHP6:        http://php.net/goto Uhh yeah, and 5.3 before that even. Duh. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ ||

Re: [PHP] include question

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 08:53, Stuart stut...@gmail.com wrote:        1.) We use regular open tags to be compatible with all stock PHP configurations.        2.) We echo out the response from dirname() so that it's output to the HTML source.        3.) We use dirname() twice, so it gives the

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 09:15, Robert Cummings rob...@interjinn.com wrote: I remember the internals debate about 2 or 3 years ago. I was on the pro goto side... it does have uses when used properly. I wholeheartedly concur. The first programming language I taught myself was BASIC about 23

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 8:19 AM, Daniel Brown danbr...@php.net wrote: On Fri, Mar 6, 2009 at 09:15, Robert Cummings rob...@interjinn.com wrote: I remember the internals debate about 2 or 3 years ago. I was on the pro goto side... it does have uses when used properly.    I wholeheartedly

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Robert Cummings
On Fri, 2009-03-06 at 08:38 -0600, haliphax wrote: On Fri, Mar 6, 2009 at 8:19 AM, Daniel Brown danbr...@php.net wrote: On Fri, Mar 6, 2009 at 09:15, Robert Cummings rob...@interjinn.com wrote: I remember the internals debate about 2 or 3 years ago. I was on the pro goto side... it does

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 8:46 AM, Robert Cummings rob...@interjinn.com wrote: On Fri, 2009-03-06 at 08:38 -0600, haliphax wrote: On Fri, Mar 6, 2009 at 8:19 AM, Daniel Brown danbr...@php.net wrote: On Fri, Mar 6, 2009 at 09:15, Robert Cummings rob...@interjinn.com wrote: I remember the

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Robert Cummings
On Fri, 2009-03-06 at 08:54 -0500, Daniel Brown wrote: On Fri, Mar 6, 2009 at 08:53, Daniel Brown danbr...@php.net wrote: Then you'll be happy with the advent of PHP6: http://php.net/goto Uhh yeah, and 5.3 before that even. Duh. I remember the internals debate about

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Robert Cummings
On Fri, 2009-03-06 at 08:51 -0600, haliphax wrote: On Fri, Mar 6, 2009 at 8:46 AM, Robert Cummings rob...@interjinn.com wrote: On Fri, 2009-03-06 at 08:38 -0600, haliphax wrote: On Fri, Mar 6, 2009 at 8:19 AM, Daniel Brown danbr...@php.net wrote: On Fri, Mar 6, 2009 at 09:15, Robert

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 8:56 AM, Robert Cummings rob...@interjinn.com wrote: On Fri, 2009-03-06 at 08:51 -0600, haliphax wrote: On Fri, Mar 6, 2009 at 8:46 AM, Robert Cummings rob...@interjinn.com wrote: On Fri, 2009-03-06 at 08:38 -0600, haliphax wrote: On Fri, Mar 6, 2009 at 8:19 AM, Daniel

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Stuart
2009/3/6 Robert Cummings rob...@interjinn.com I just turned 35... today... that's young by the standards of a 70 year old :) Happy Birthday ya wise old git. I started with BBC Basic, moved on to gwbasic then to C, and the rest, as they say, is history. First program I ever wrote was a game

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 9:08 AM, Stuart stut...@gmail.com wrote: 2009/3/6 Robert Cummings rob...@interjinn.com I just turned 35... today... that's young by the standards of a 70 year old :)  Happy Birthday ya wise old git. I started with BBC Basic, moved on to gwbasic then to C, and the

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Shawn McKenzie
Dollah Ihsan wrote: I'm sorry if this is not what you're talking about... /** * assume your table structure just like this. * table: users * | id | country| name | population | * -- * | 1 |Texas

Re: [PHP] include question

2009-03-06 Thread PJ
Daniel Brown wrote: On Fri, Mar 6, 2009 at 08:53, Stuart stut...@gmail.com wrote: 1.) We use regular open tags to be compatible with all stock PHP configurations. 2.) We echo out the response from dirname() so that it's output to the HTML source. 3.) We use dirname()

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread PJ
Robert Cummings wrote: On Fri, 2009-03-06 at 08:51 -0600, haliphax wrote: On Fri, Mar 6, 2009 at 8:46 AM, Robert Cummings rob...@interjinn.com wrote: On Fri, 2009-03-06 at 08:38 -0600, haliphax wrote: On Fri, Mar 6, 2009 at 8:19 AM, Daniel Brown danbr...@php.net wrote:

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread PJ
Shawn McKenzie wrote: Dollah Ihsan wrote: I'm sorry if this is not what you're talking about... /** * assume your table structure just like this. * table: users * | id | country| name | population | *

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Stuart
2009/3/6 haliphax halip...@gmail.com On Fri, Mar 6, 2009 at 9:08 AM, Stuart stut...@gmail.com wrote: 2009/3/6 Robert Cummings rob...@interjinn.com I just turned 35... today... that's young by the standards of a 70 year old :) Happy Birthday ya wise old git. I started with BBC

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Jochem Maas
Anton Heuschen schreef: This might sound trivial, but for the live of me cant seem to get it to work, and I am not familiar with such a thing. seems like you've done your best to make it sound as confusing as possible, this happens sometimes when you no longer see the wood for the trees :-)

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Jochem Maas
PJ schreef: Shawn McKenzie wrote: Dollah Ihsan wrote: I'm sorry if this is not what you're talking about... /** * assume your table structure just like this. * table: users * | id | country| name | population | *

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Michael A. Peters
Anton Heuschen wrote: This might sound trivial, but for the live of me cant seem to get it to work, and I am not familiar with such a thing. What I have is a query lets say : select country,name,population from USERS where id= 'some_id' ; Now I want to assign the result to one set (The

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Jim Lucas
I will take theirs and modify it just a little more to create the print_r() output that the OP suggested. function getPopulationById($id) { $dataSet = array(); if ( ( $result = mysql_query('SELECT country, name, population FROM users WHERE id = ' . $id) !== false ) {

[PHP] verify another flavor

2009-03-06 Thread PJ
I know I'm a pain the butt but I just can't help asking for help. You guys are so nice... ;-) I am trying to do some checks if there are entries in the db so I can then insert the right stuff. And I'm looking for ways to simplify things. I probably dont understand the flow of things here, but this

Re: [PHP] verify another flavor

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 10:36 AM, PJ af.gour...@videotron.ca wrote: I know I'm a pain the butt but I just can't help asking for help. You guys are so nice... ;-) I am trying to do some checks if there are entries in the db so I can then insert the right stuff. And I'm looking for ways to

Re: [PHP] verify another flavor

2009-03-06 Thread Bastien Koert
$sql1 = SELECT first_name, last_name) FROM author WHERE (first_name LIKE 'first_nameIN' last_nameIN LIKE 'last_nameIN') On Fri, Mar 6, 2009 at 11:36 AM, PJ af.gour...@videotron.ca wrote: I know I'm a pain the butt but I just can't help asking for help. You guys are so nice... ;-) I am trying

Re: [PHP] Conclusion of use strict...

2009-03-06 Thread Jochem Maas
Hans Schultz schreef: Hehe, I don't agree with either :-) But I am still searching for some solution, and when (and if) I find it I will be happy to share with you (btw, obviously nobody shared experiences about that compiler) no, but did the comments I made about var vars and vars

[PHP] Unexplained Issue Using Regex

2009-03-06 Thread Nitsan Bin-Nun
Hi lista, I have been trying to figure this out for the last couple of hours but I'm lack of luck. Take a look at these regex's, the string that was inputed into the preg_replace (using Uis modificators) and the results: (the lists have correspondence to each other) ORIGINAL STRING

Re: [PHP] Re: Intermittent problem sending mail with PHP

2009-03-06 Thread Stephen Hutchison
thanks Jim - I change over to SwiftMailer and its working well. Jim Lucas li...@cmsws.com wrote in message news:49ae0375.2040...@cmsws.com... Stephen Hutchison wrote: I'll check with my ISP but if is that then it's a very low limit. I'm finding it's only allowing two or three through before

[PHP] Syntax checker? Character replacing

2009-03-06 Thread Terion Miller
I have this and think maybe something is off, because if there is an amp () in the location then it only displays a comma , and nothing else: if (isset($_SERVER['QUERY_STRING'])) {$Page .= ($_SERVER['QUERY_STRING']? '?'. str_replace(,amp;,$_SERVER['QUERY_STRING']) : '');} is that wrong?

Re: [PHP] Syntax checker? Character replacing

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 2:05 PM, Terion Miller webdev.ter...@gmail.com wrote: I have this and think maybe something is off, because if there is an amp () in the location then it only displays a comma , and nothing else: if (isset($_SERVER['QUERY_STRING'])) {$Page .= ($_SERVER['QUERY_STRING']?

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Adam
would this not work? : ?php $string = http://www.zshare.net/video/541070871c7a8d9c;; $replaceWithThis = 'HELLYES-'; echo $string.\n; echo preg_replace('/\S+video\//',$replaceWithThis,$string).\n; echo $replaceWithThis.substr($string, strripos($string, '/')+1, strlen($string)).\n; echo

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Nitsan Bin-Nun
Haven't tested your code but from a rapid look it would work. The issue here is that I don't understand why my expression doesn't catches the full match and emits the first character? On Fri, Mar 6, 2009 at 10:17 PM, Adam adiszak...@gmail.com wrote: would this not work? : ?php $string =

Re: [PHP] Syntax checker? Character replacing

2009-03-06 Thread Adam
just clean up your code and it will work: ?php $qString = 'http://www.google.ca/search?hl=enq=php+rocks%21%21%21meta='; if (isset($qString)) { $buffer = str_replace(,amp;,$qString); } echo $buffer.\n; ? OUTPUT: C:\php test.php

[PHP] insert array values

2009-03-06 Thread PJ
I've been racking my little peanut-brain as well as big Google with little hope... I can retrieve the array from the multiple select dropdown box but I can't quite manage to insert the data which is just id numbers for a table. I've tried some while stuff but doesn't work. I know I don't have the

[PHP] include_path

2009-03-06 Thread Eric Lease Morgan
My initial PHP script is not recognizing the values in my include_path. Why? I compiled and installed PHP yesterday: $ php -version PHP 5.2.9 (cli) (built: Mar 5 2009 15:33:55) I then installed a PHP script whose beginning looks like this: // Require System Libraries require_once

Re: [PHP] include_path

2009-03-06 Thread 9el
On Sat, Mar 7, 2009 at 3:13 AM, Eric Lease Morgan emor...@nd.edu wrote: My initial PHP script is not recognizing the values in my include_path. Why? I compiled and installed PHP yesterday: $ php -version PHP 5.2.9 (cli) (built: Mar 5 2009 15:33:55) I then installed a PHP script whose

Re: [PHP] include_path

2009-03-06 Thread Eric Lease Morgan
On 3/6/09 4:19 PM, 9el le...@phpxperts.net wrote: Ironically, Smarty/Smarty.class.php IS located under /usr/lib/php. So is PEAR.php. /usr/lib/php is not in the default scope of webroot  ie. /var/www  :) You have to allow apache to access  /usr/lib/php location Thank you for the prompt

Re: [PHP] insert array values

2009-03-06 Thread Bastien Koert
On Fri, Mar 6, 2009 at 4:00 PM, PJ af.gour...@videotron.ca wrote: I've been racking my little peanut-brain as well as big Google with little hope... I can retrieve the array from the multiple select dropdown box but I can't quite manage to insert the data which is just id numbers for a table.

Re: [PHP] include_path

2009-03-06 Thread Bastien Koert
On Fri, Mar 6, 2009 at 4:21 PM, Eric Lease Morgan emor...@nd.edu wrote: On 3/6/09 4:19 PM, 9el le...@phpxperts.net wrote: Ironically, Smarty/Smarty.class.php IS located under /usr/lib/php. So is PEAR.php. /usr/lib/php is not in the default scope of webroot ie. /var/www :) You have

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Jim Lucas
Nitsan Bin-Nun wrote: Hi lista, I have been trying to figure this out for the last couple of hours but I'm lack of luck. Take a look at these regex's, the string that was inputed into the preg_replace (using Uis modificators) and the results: (the lists have correspondence to each other)

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Jim Lucas
Jim Lucas wrote: Nitsan Bin-Nun wrote: Hi lista, I have been trying to figure this out for the last couple of hours but I'm lack of luck. Take a look at these regex's, the string that was inputed into the preg_replace (using Uis modificators) and the results: (the lists have correspondence

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Nitsan Bin-Nun
I'm not looking for other ideas, the main thing here is that I have about 30-100 regex's in the database and the script fetches them and applies them to the string. I can't build again the engine and I'm not going to do that. I'm trying to solve my problem ;) If you have any ideas regarding my

Re: [PHP] insert array values

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 3:00 PM, PJ af.gour...@videotron.ca wrote: I've been racking my little peanut-brain as well as big Google with little hope... I can retrieve the array from the multiple select dropdown box but I can't quite manage to insert the data which is just id numbers for a table.

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 3:44 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: I'm not looking for other ideas, the main thing here is that I have about 30-100 regex's in the database and the script fetches them and applies them to the string. I can't build again the engine and I'm not going to do

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 3:53 PM, haliphax halip...@gmail.com wrote: On Fri, Mar 6, 2009 at 3:44 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: I'm not looking for other ideas, the main thing here is that I have about 30-100 regex's in the database and the script fetches them and applies them to

Re: [PHP] insert array values

2009-03-06 Thread PJ
Bastien Koert wrote: On Fri, Mar 6, 2009 at 4:00 PM, PJ af.gour...@videotron.ca wrote: I've been racking my little peanut-brain as well as big Google with little hope... I can retrieve the array from the multiple select dropdown box but I can't quite manage to insert the data which is

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Nitsan Bin-Nun
Thank you Todd, I also want to capture when I don't have the www in the beginning of the URL. For instance, try to execute your code with $orig = 'http://zshare.net/video/541070871c7a8d9chttp://www.zshare.net/video/541070871c7a8d9c '; That's why I used (www\.|), but I'm not a regex expert and

Re: [PHP] insert array values

2009-03-06 Thread PJ
haliphax wrote: On Fri, Mar 6, 2009 at 3:00 PM, PJ af.gour...@videotron.ca wrote: I've been racking my little peanut-brain as well as big Google with little hope... I can retrieve the array from the multiple select dropdown box but I can't quite manage to insert the data which is just id

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 4:01 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: On Fri, Mar 6, 2009 at 11:53 PM, haliphax halip...@gmail.com wrote: On Fri, Mar 6, 2009 at 3:44 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: I'm not looking for other ideas, the main thing here is that I have about

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Nitsan Bin-Nun
Got it, thank you Todd. I usually tend to use string based functions instead of regex, but sometimes regex is a better option. On Sat, Mar 7, 2009 at 12:16 AM, haliphax halip...@gmail.com wrote: On Fri, Mar 6, 2009 at 4:01 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: On Fri, Mar 6, 2009 at

[PHP] Re: Sending out large amounts of email

2009-03-06 Thread Brian Hansen
Thank you all for some great answer and insights. Special thanks to Chris, Nathan and Manuel for very valuable pointers and sharing of information and experience. For those interested in the subject.. We have our own servers, and since we want to be in control of the situation ourselves we are

Re: [PHP] insert array values

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 4:07 PM, PJ af.gour...@videotron.ca wrote: haliphax wrote: On Fri, Mar 6, 2009 at 3:00 PM, PJ af.gour...@videotron.ca wrote: I've been racking my little peanut-brain as well as big Google with little hope... I can retrieve the array from the multiple select dropdown box

Re: [PHP] insert array values

2009-03-06 Thread PJ
haliphax wrote: On Fri, Mar 6, 2009 at 4:07 PM, PJ af.gour...@videotron.ca wrote: haliphax wrote: On Fri, Mar 6, 2009 at 3:00 PM, PJ af.gour...@videotron.ca wrote: I've been racking my little peanut-brain as well as big Google with little hope... I can retrieve the array from the multiple

Re: [PHP] insert array values

2009-03-06 Thread PJ
haliphax wrote: On Fri, Mar 6, 2009 at 4:07 PM, PJ af.gour...@videotron.ca wrote: haliphax wrote: On Fri, Mar 6, 2009 at 3:00 PM, PJ af.gour...@videotron.ca wrote: I've been racking my little peanut-brain as well as big Google with little hope... I can retrieve the array

Re: [PHP] insert array values

2009-03-06 Thread PJ
I've done some rethingking and this may be the direction to go: What I need to wind up with is something like this: $sql = INSERT INTO book_categories ( book_id, category ) VALUES( '$autoID', '$categoriesID[0]' ), ( '$autoID', '$categoriesID[1]' ), ( '$autoID', '$categoriesID[2]'

Re: [PHP] insert array values

2009-03-06 Thread 9el
On Sat, Mar 7, 2009 at 5:37 AM, PJ af.gour...@videotron.ca wrote: I've done some rethingking and this may be the direction to go: What I need to wind up with is something like this: $sql = INSERT INTO book_categories ( book_id, category ) VALUES( '$autoID', '$categoriesID[0]' ), (

[PHP] PHP and named groups in regex/PCRE

2009-03-06 Thread Daevid Vincent
A friend was showing off his regex-fu and the virtues of named groups and how great Python is, knowing that PHP had to be equally as good (since it uses the same PCRE libraries), we whipped up this little test. So now us PHP folks can enjoy the same benefit! :-) vince...@dev1:~$ cat

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Clancy
On Fri, 6 Mar 2009 08:53:44 -0500, danbr...@php.net (Daniel Brown) wrote: On Fri, Mar 6, 2009 at 00:12, Clancy clanc...@cybec.com.au wrote: Don't take me too seriously on this. But it riles me that the same peoplewho threw out the GOTO as being too dangerous could then introduce the break

Re: [PHP] PHP and named groups in regex/PCRE

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 19:12, Daevid Vincent dae...@daevid.com wrote: A friend was showing off his regex-fu and the virtues of named groups and how great Python is, knowing that PHP had to be equally as good (since it uses the same PCRE libraries), we whipped up this little test. So now us PHP

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 19:29, Clancy clanc...@cybec.com.au wrote: Great news! .. Now ALL I have to do is to persuade my host to update from 4.3.9. (or maybe switch!) If your host is only using PHP4, you probably should switch because who knows what else they've chosen not to

Re: [PHP] Website on a USB key?

2009-03-06 Thread Clancy
On Fri, 6 Mar 2009 05:51:36 -0800 (PST), seanodot...@yahoo.com (Sean O) wrote: Another good website-on-a-stick software is... well, WOS (now called MoWeS -- Modular Webserver System). http://www.chsoftware.net/en/useware/mowes/mowes.htm The nice thing about this software is the ability to

Re: [PHP] insert array values

2009-03-06 Thread PJ
9el wrote: On Sat, Mar 7, 2009 at 5:37 AM, PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca wrote: I've done some rethingking and this may be the direction to go: What I need to wind up with is something like this: $sql = INSERT INTO book_categories ( book_id,

Re: [PHP] insert array values

2009-03-06 Thread Jim Lucas
PJ wrote: 9el wrote: On Sat, Mar 7, 2009 at 5:37 AM, PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca wrote: I've done some rethingking and this may be the direction to go: What I need to wind up with is something like this: $sql = INSERT INTO book_categories (

Re: [PHP] PHP and named groups in regex/PCRE

2009-03-06 Thread Jim Lucas
Daevid Vincent wrote: A friend was showing off his regex-fu and the virtues of named groups and how great Python is, knowing that PHP had to be equally as good (since it uses the same PCRE libraries), we whipped up this little test. So now us PHP folks can enjoy the same benefit! :-)

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Clancy
On Fri, 6 Mar 2009 08:58:17 -0600, halip...@gmail.com (haliphax) wrote:    I wholeheartedly concur.  The first programming language I taught myself was BASIC about 23 years ago.  We may never see the inclusion of GOSUB in PHP, but GOTO is certainly worthwhile.    Side note: I

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Paul M Foster
On Sat, Mar 07, 2009 at 11:29:41AM +1100, Clancy wrote: On Fri, 6 Mar 2009 08:53:44 -0500, danbr...@php.net (Daniel Brown) wrote: On Fri, Mar 6, 2009 at 00:12, Clancy clanc...@cybec.com.au wrote: snip Then you'll be happy with the advent of PHP6: http://php.net/goto

Re: [PHP] verify another flavor

2009-03-06 Thread Paul M Foster
On Fri, Mar 06, 2009 at 10:49:12AM -0600, haliphax wrote: snip I would go about it like this: $sql1 = select concat_ws(' ', first_name, last_name) as Author_Name from author where first_name = '$first_nameIN' and last_name = '$last_nameIN'; If you already know the first_name and