php-general Digest 25 Feb 2008 10:08:55 -0000 Issue 5313

2008-02-25 Thread php-general-digest-help
php-general Digest 25 Feb 2008 10:08:55 - Issue 5313 Topics (messages 270015 through 270028): Re: mysql test and error 270015 by: Brady Mitchell Re: temprorary error 270016 by: Nathan Rixham 270017 by: Shawn McKenzie 270020 by: Wolf 270028 by: Zoltán

Re: [PHP] Re: temporary error

2008-02-25 Thread Peter Ford
Greg Donald wrote: On 2/22/08, tedd [EMAIL PROTECTED] wrote: Shouldn't the reason why we ask if be sufficient proof that it is? I don't believe having an interrogative nature proves existence in God, no. I imagine there are a great number of things that don't exist that we never mention

Re: [PHP] RE: temprorary error

2008-02-25 Thread Zoltán Németh
2008. 02. 24, vasárnap keltezéssel 15.55-kor tedd ezt írta: At 7:38 PM +0100 2/24/08, Zoltán Németh wrote: 2008. 02. 24, vasárnap keltezéssel 09.59-kor Mary Anderson ezt írta: Hey guys, Isn't this thread a bit OT? well, for a php list sure it is... but not the first one, and it

Re: [PHP] PHP 24 hour processes?

2008-02-25 Thread Bojan Tesanovic
Windows also have something similar to cron Schedule accessory can also be set to execute some php every xxx minutes/days etc For linux it is much easier , create file eg cron.txt that has this content #=== * 1 * * * /home/user/cleanUpDB.php

Re: [PHP] Copying specific fields from table to table

2008-02-25 Thread Bojan Tesanovic
On Feb 25, 2008, at 5:37 AM, Rob Gould wrote: I've got 2 tables. One table which contains a series of barcodes assigned to product id #'s, and another table with JUST product id #'s. I need to somehow transfer all the barcodes from the first table into the second table, but only where

Re: [PHP] Copying specific fields from table to table

2008-02-25 Thread Robin Vickery
On 25/02/2008, Rob Gould [EMAIL PROTECTED] wrote: I've got 2 tables. One table which contains a series of barcodes assigned to product id #'s, and another table with JUST product id #'s. I need to somehow transfer all the barcodes from the first table into the second table, but only where

Re: [PHP] PHP 24 hour processes?

2008-02-25 Thread Richard Heyes
create file eg cron.txt Or if your version of crontab supports it (not all do) then you can use: crontab -e And to get the manual page, you can do this: man 5 crontab -- Richard Heyes http://www.phpguru.org Free PHP and Javascript code -- PHP General Mailing List (http://www.php.net/) To

[PHP] insert text with no specific format into database table

2008-02-25 Thread jeffry s
i have text file and a table created with create table word( id int not null auto_increment primary key, word varchar(50), definition text ) the text contain list of words but not really in specific format word, some text definition word, some text definition, some text definition, etc i want

Re: [PHP] RE: temprorary error

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: Robert Cummings wrote: On Sun, 2008-02-24 at 15:55 -0500, tedd wrote: At 7:38 PM +0100 2/24/08, Zoltán Németh wrote: 2008. 02. 24, vasárnap keltezéssel 09.59-kor Mary Anderson ezt írta: Hey guys, Isn't this thread a bit OT?

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread tedd
At 8:50 PM -0600 2/24/08, Larry Garfield wrote: Design patterns are just that: A formalization of various common patterns that come up over and over in programming. Ever get the feeling wow, I know I've written something kinda like this at least three times now? That means it's probably a

Re: [PHP] RE: temprorary error

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 09:28 -0500, tedd wrote: At 8:49 AM -0500 2/25/08, Robert Cummings wrote: On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: [can you resist?] No I can't resist. It would be tantamount to agreeing with you. Since I disagree with you I feel compelled to

Re: [PHP] RE: temprorary error

2008-02-25 Thread Wolf
Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: Robert Cummings wrote: On Sun, 2008-02-24 at 15:55 -0500, tedd wrote: At 7:38 PM +0100 2/24/08, Zoltán Németh wrote: 2008. 02. 24, vasárnap keltezéssel 09.59-kor Mary Anderson ezt

Re: [PHP] RE: temprorary error

2008-02-25 Thread tedd
At 8:49 AM -0500 2/25/08, Robert Cummings wrote: On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: [can you resist?] No I can't resist. It would be tantamount to agreeing with you. Since I disagree with you I feel compelled to answer your direct reference to me. There are plenty of

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Matty Sarro
Actually thats exactly what design patterns were created for. You come up with a basic structure and then modify it as needed for other projects. I mean, the objects/structures/whatever may change, but the patterns of logic you use will often be the same or only require minor adjustments. Its a

RE: [PHP] Re: temporary error

2008-02-25 Thread Andrés Robinet
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Sunday, February 24, 2008 4:57 AM To: Andrés Robinet Cc: php-general@lists.php.net Subject: RE: [PHP] Re: temporary error On Sun, 2008-02-24 at 03:34 -0500, Andrés Robinet wrote: -Original Message-

Re: [PHP] RE: temprorary error

2008-02-25 Thread Wolf
Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2008-02-25 at 09:28 -0500, tedd wrote: At 8:49 AM -0500 2/25/08, Robert Cummings wrote: On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: [can you resist?] No I can't resist. It would be tantamount to agreeing with

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Eric Butera
On Mon, Feb 25, 2008 at 9:20 AM, tedd [EMAIL PROTECTED] wrote: At 8:50 PM -0600 2/24/08, Larry Garfield wrote: Design patterns are just that: A formalization of various common patterns that come up over and over in programming. Ever get the feeling wow, I know I've written something

Re: [PHP] RE: temprorary error

2008-02-25 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2008-02-25 at 09:28 -0500, tedd wrote: At 8:49 AM -0500 2/25/08, Robert Cummings wrote: On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: [can you resist?] No I can't resist. It would be tantamount to agreeing with you. Since I disagree with you I feel

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Nathan Nobbe
On Mon, Feb 25, 2008 at 9:20 AM, tedd [EMAIL PROTECTED] wrote: At 8:50 PM -0600 2/24/08, Larry Garfield wrote: Design patterns are just that: A formalization of various common patterns that come up over and over in programming. Ever get the feeling wow, I know I've written something kinda

Re: [PHP] RE: temprorary error

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 14:50 +, Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2008-02-25 at 09:28 -0500, tedd wrote: At 8:49 AM -0500 2/25/08, Robert Cummings wrote: On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: [can you resist?] No I can't resist. It would be

Re: [PHP] Cross-Post: Installing on Palm Treo?

2008-02-25 Thread Daniel Brown
On Sat, Feb 23, 2008 at 4:58 AM, Larry Garfield [EMAIL PROTECTED] wrote: Um. Palm OS Garnet (what every remotely modern Treo runs) is completely incapable of running multiple simultaneous processes without hacking the OS beyond recognition. It is an absolutely horrid concept for a server,

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Matty Sarro
I agree, that head first book is fantabulous. Very well written and easy to read for a techie book. It makes the usage of design patterns incredibly easy to understand. But like all things simply understanding the theory doesn't always equal being able to practice it... that only comes with using

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Robert Cummings
My favourite patterns are the following: factory singleton adaptor These also happen to be the most common I come across. Cheers, Rob. On Mon, 2008-02-25 at 10:31 -0500, Matty Sarro wrote: I agree, that head first book is fantabulous. Very well written and easy to read for a

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Nathan Nobbe
On Mon, Feb 25, 2008 at 10:38 AM, Robert Cummings [EMAIL PROTECTED] wrote: My favourite patterns are the following: factory singleton adaptor i dont know about any favorites at this time but as far as common, id say strategy adapter template method (often used in conjunction w/

Re: [PHP] RE: temprorary error

2008-02-25 Thread Jochem Maas
Robert Cummings schreef: On Mon, 2008-02-25 at 14:50 +, Nathan Rixham wrote: ps: I can't believe how long this thread has lasted without anyone mentioning that the subject line is misspelled. I notice it everytime a post arrives, but usually the content is juicier :) Cheers,

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Jim Lucas
tedd wrote: At 8:50 PM -0600 2/24/08, Larry Garfield wrote: Design patterns are just that: A formalization of various common patterns that come up over and over in programming. Ever get the feeling wow, I know I've written something kinda like this at least three times now? That means it's

Re: [PHP] RE: temprorary error

2008-02-25 Thread Daniel Brown
I didn't think Quakers could use computers. Or electricity. -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--; sleep(86400); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: temprorary error

2008-02-25 Thread Jason Pruim
On Feb 25, 2008, at 11:18 AM, Daniel Brown wrote: I didn't think Quakers could use computers. Or electricity. That's Amish... Maybe Quakers too... I don't know... -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--; sleep(86400); } ? -- PHP General Mailing List

Re: [PHP] RE: temprorary error

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 11:18 -0500, Daniel Brown wrote: I didn't think Quakers could use computers. Or electricity. You're confusing them with Amish. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com |

Re: [PHP] RE: temprorary error

2008-02-25 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2008-02-25 at 11:18 -0500, Daniel Brown wrote: I didn't think Quakers could use computers. Or electricity. You're confusing them with Amish. Cheers, Rob. and coldfusion developers [ps: rob your lucky i keep saving your ass from the dreaded last post] --

RE: [PHP] RE: temprorary error

2008-02-25 Thread Andrés Robinet
-Original Message- From: Nathan Rixham [mailto:[EMAIL PROTECTED] Sent: Monday, February 25, 2008 11:32 AM To: php-general@lists.php.net Subject: Re: [PHP] RE: temprorary error Robert Cummings wrote: On Mon, 2008-02-25 at 11:18 -0500, Daniel Brown wrote: I didn't think Quakers

Re: [PHP] URL modification

2008-02-25 Thread Daniel Brown
On Sat, Feb 23, 2008 at 6:27 AM, Richard Heyes [EMAIL PROTECTED] wrote: You could also forego the Files bit if you're willing to accept URLs like this: /rental.php/property/23425 I was waiting to see if anyone made mention of that while reading through the thread. I think this is a

Re: [PHP] Re: Plant Extracts and Our Factory

2008-02-25 Thread Daniel Brown
Amazing some of the brightest minds on the Internet communicate on these lists and yet no one can recognize an obvious SPAM message. ;-P -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--; sleep(86400); } ? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP 24 hour processes?

2008-02-25 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Feb 25, 2008 at 1:39 AM, Zoran Bogdanov [EMAIL PROTECTED] wrote: Hi, How can you perform a timed event in PHP; for example: Count 24 hours and then delete all rows in a database... Once again, I say verily unto you: RTFM and STFW. Linux/*nix: cron

Re: [PHP] mysql test and error

2008-02-25 Thread Daniel Brown
On Sun, Feb 24, 2008 at 5:00 PM, hE [EMAIL PROTECTED] wrote: The following program gave the error: Parse error: parse error in C:\apache\htdocs\mysqltest.php on line 10 Look at this part of the code: $result = mysql_query($sql); if ($result == 0) echo 'bError ' . mysql_errno() . ': '.

Re: [PHP] URL modification

2008-02-25 Thread Nathan Rixham
Daniel Brown wrote: On Sat, Feb 23, 2008 at 6:27 AM, Richard Heyes [EMAIL PROTECTED] wrote: You could also forego the Files bit if you're willing to accept URLs like this: /rental.php/property/23425 I was waiting to see if anyone made mention of that while reading through the thread.

Re: [PHP] PHP 24 hour processes?

2008-02-25 Thread Nathan Rixham
Nathan Rixham wrote: Daniel Brown wrote: On Mon, Feb 25, 2008 at 1:39 AM, Zoran Bogdanov [EMAIL PROTECTED] wrote: Hi, How can you perform a timed event in PHP; for example: Count 24 hours and then delete all rows in a database... Once again, I say verily unto you: RTFM and STFW.

[PHP] Set PHP session expire to 2 months

2008-02-25 Thread Manuel Barros Reyes
Hi, I'm working on a site that needs that once the user chooses his country the question should not be asked again (while the user doesn't manually delete the cookies in his browser). The question is asked only in the index.php and the answer is stored in $_SESSION[pais]. If the user tries to

Re: [PHP] insert text with no specific format into database table

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 8:35 AM, jeffry s [EMAIL PROTECTED] wrote: i have text file and a table created with create table word( id int not null auto_increment primary key, word varchar(50), definition text ) Look into the PHP function fgetcsv(). -- /Dan Daniel P. Brown Senior

Re: [PHP] PHP 24 hour processes?

2008-02-25 Thread Jim Lucas
Bojan Tesanovic wrote: Windows also have something similar to cron Schedule accessory can also be set to execute some php every xxx minutes/days etc For linux it is much easier , create file eg cron.txt that has this content #=== * 1 * * *

RE: [PHP] URL modification

2008-02-25 Thread Andrés Robinet
-Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Monday, February 25, 2008 11:37 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: Re: [PHP] URL modification On Sat, Feb 23, 2008 at 6:27 AM, Richard Heyes [EMAIL PROTECTED]

Re: [PHP] PHP 24 hour processes?

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 1:39 AM, Zoran Bogdanov [EMAIL PROTECTED] wrote: Hi, How can you perform a timed event in PHP; for example: Count 24 hours and then delete all rows in a database... Once again, I say verily unto you: RTFM and STFW. Linux/*nix: cron Windows: at Cron

Re: [PHP] PHPTriad and php error

2008-02-25 Thread Daniel Brown
On Sun, Feb 24, 2008 at 1:53 PM, hE [EMAIL PROTECTED] wrote: hi to all, I set up phptriad on my computer running windows xp. When I tried to test php with the following program I got an error Parse error: parse error, expecting `','' or `';'' in C:\apache\htdocs\mytest.php on line 10

RES: [PHP] Set PHP session expire to 2 months

2008-02-25 Thread Thiago Pojda
Perhaps the user doesn't have cookies disabled but often clean them? Another software could be doing that. -Mensagem original- De: Manuel Barros Reyes [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 25 de fevereiro de 2008 13:55 Para: php-general@lists.php.net Assunto: [PHP] Set

RES: [PHP] Re: Plant Extracts and Our Factory

2008-02-25 Thread Thiago Pojda
YOu could try reading only the even lines, maybe ther's something... -Mensagem original- De: Matty Sarro [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 25 de fevereiro de 2008 13:58 Para: Daniel Brown Cc: Wolf; [EMAIL PROTECTED] php. net; Shawn McKenzie Assunto: Re: [PHP] Re:

Re: [PHP] Set PHP session expire to 2 months

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 11:54 AM, Manuel Barros Reyes [EMAIL PROTECTED] wrote: The question is asked only in the index.php and the answer is stored in $_SESSION[pais]. If the user tries to enter the site once again and the session variable is still set the question is not asked again as it

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Eric Butera
On Mon, Feb 25, 2008 at 11:07 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Mon, Feb 25, 2008 at 10:38 AM, Robert Cummings [EMAIL PROTECTED] wrote: My favourite patterns are the following: factory singleton adaptor i dont know about any favorites at this time but as far as

[PHP] Re: insert text with no specific format into database table

2008-02-25 Thread Shawn McKenzie
jeffry s wrote: i have text file and a table created with create table word( id int not null auto_increment primary key, word varchar(50), definition text ) the text contain list of words but not really in specific format word, some text definition word, some text definition, some

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Nathan Nobbe
On Mon, Feb 25, 2008 at 12:06 PM, Eric Butera [EMAIL PROTECTED] wrote: I'm not going to even say anything. :) Since we're declaring our love for specifics, I really like the observer pattern lately for adding a way to add features without touching the core. ahh yes, observer is key; i

Re: [PHP] Re: Plant Extracts and Our Factory

2008-02-25 Thread Matty Sarro
This is not spam, obviously there's some sort of UNIXy recursive joke here, we just have to find it. On Mon, Feb 25, 2008 at 11:40 AM, Daniel Brown [EMAIL PROTECTED] wrote: Amazing some of the brightest minds on the Internet communicate on these lists and yet no one can recognize an

[PHP] Re: insert text with no specific format into database table

2008-02-25 Thread Shawn McKenzie
Shawn McKenzie wrote: jeffry s wrote: i have text file and a table created with create table word( id int not null auto_increment primary key, word varchar(50), definition text ) the text contain list of words but not really in specific format word, some text definition word, some

Re: [PHP] Re: Plant Extracts and Our Factory

2008-02-25 Thread Jason Pruim
It's probably a Ottendorf cipher http://en.wikipedia.org/wiki/Arnold_Cipher On Feb 25, 2008, at 11:57 AM, Matty Sarro wrote: This is not spam, obviously there's some sort of UNIXy recursive joke here, we just have to find it. On Mon, Feb 25, 2008 at 11:40 AM, Daniel Brown [EMAIL

Re: [PHP] Shopping Carts

2008-02-25 Thread Daniel Brown
On Fri, Feb 22, 2008 at 9:17 PM, Kista Tucker [EMAIL PROTECTED] wrote: Oh my gosh! [snip!] Kista, The response you got from Tedd is probably the most accurate and best advice you could get on this subject. DO NOT, by any means, attempt to write your own cart. It's reinventing the

Re: [PHP] Session destruction problem

2008-02-25 Thread Daniel Brown
On Sat, Feb 23, 2008 at 10:49 PM, Adil Drissi [EMAIL PROTECTED] wrote: Hi, I made an error i was using unset($_SESSION[sessioname]) instead of unset($_SESSION). I'm sorry, but anyway, now i want to give another detail. All the time i was testing with opera. After testing in firefox and

[PHP] Storing user ID in a cookie security precautions

2008-02-25 Thread Steve Finkelstein
Hi folks, I just completed my first reading of Advanced PHP Programming by George Schlossnagle and was very impressed and thankful for the wealth of information with examples provided by George. With that said, there is a chapter dedicated to Authentication using client-side cookies and

Re: [PHP] Re: Plant Extracts and Our Factory

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 11:57 -0500, Matty Sarro wrote: This is not spam, obviously there's some sort of UNIXy recursive joke here, we just have to find it. On Mon, Feb 25, 2008 at 11:40 AM, Daniel Brown [EMAIL PROTECTED] wrote: Amazing some of the brightest minds on the Internet

Re: [PHP] Storing user ID in a cookie security precautions

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 12:28 -0500, Steve Finkelstein wrote: Hi folks, I just completed my first reading of Advanced PHP Programming by George Schlossnagle and was very impressed and thankful for the wealth of information with examples provided by George. With that said, there is a chapter

Re: [PHP] Storing user ID in a cookie security precautions

2008-02-25 Thread Nathan Nobbe
On Mon, Feb 25, 2008 at 12:43 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2008-02-25 at 12:28 -0500, Steve Finkelstein wrote: Hi folks, I just completed my first reading of Advanced PHP Programming by George Schlossnagle and was very impressed and thankful for the wealth of

Re: [PHP] Storing user ID in a cookie security precautions

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 12:28 PM, Steve Finkelstein [EMAIL PROTECTED] wrote: [snip!] My question to the community is -- I'd like to try something similar to this approach for an application I'm working on. Although I'm a bit concerned as in the event of XSS or something of that nature, what

RE: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Andrés Robinet
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Sunday, February 24, 2008 9:09 AM To: php-general@lists.php.net Subject: RE: [PHP] Question about PHP Licence and it's future! Rob (Other Rob that is actually called Andrés) Yeah, that confused me too. Especially when

Re: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Daniel Brown
On Sat, Feb 23, 2008 at 11:50 PM, Tamer Higazi [EMAIL PROTECTED] wrote: Hi! Hi!!! I have asked myself a question. And what answer did you get? After I saw, that SAP will no more release future Versions of their open source Database MaxDB under

Re: [PHP] System errno in PHP

2008-02-25 Thread Daniel Brown
On Sun, Feb 24, 2008 at 10:22 AM, Michal Maras [EMAIL PROTECTED] wrote: Hi Thank you for answer, but I do not understand. How can I use this class Errno after unsuccessful fopen? I want to get the number, for example 13 if there is not enough permissions to open file. It is not

Re: [PHP] Ignoring user cancel

2008-02-25 Thread Daniel Brown
On Fri, Feb 22, 2008 at 9:19 PM, K T Ligesh [EMAIL PROTECTED] wrote: Hello, I have a php process running on lighty that should continue even if the user presses cancel in his browser. The default behavior is that the web-server will kill the cgi process on user cancellation. Is there

[PHP] Password protected ZIP file

2008-02-25 Thread Petrus Bastos
Hey folks, I just wanna say thanks for whole help you've had give to me. I did solve my problem with clues you give to me. Now, I have a server exclusively to my project and I enabled the system command and zip command works fine. Thanks again, Petrus Bastos.

Re: [PHP] Flash menu

2008-02-25 Thread Daniel Brown
On Sat, Feb 23, 2008 at 3:46 AM, Alain Roger [EMAIL PROTECTED] wrote: Hi, i have a problem with my animated web flash menu (+images+sounds). basically my menu in embedded into flash, and each time that i click on menu link, my flash is playing from start as it is integrated into each PHP

Re: [PHP] All Survey leading to PHP

2008-02-25 Thread Daniel Brown
On Sun, Feb 24, 2008 at 8:35 AM, tedd [EMAIL PROTECTED] wrote: Now, that doesn't mean that you can't patent your idea -- and that's the best protection I know. That is, until I finish development of the CodeCondom[TM]. Just cover the electric plugs to every computer of every

RE: [PHP] Re: When to use design patterns?

2008-02-25 Thread Jay Blanchard
[snip] Design patterns are used to solve common problems to in OOP programming. [/snip] It is just not limited to OOP, design patterns are used to solve common programming problems regardless of methodology. They have come into vogue with OOP and have been leveraged heavily in that case. Design

Re: [PHP] More than one values returned?

2008-02-25 Thread Daniel Brown
On Sat, Feb 23, 2008 at 6:21 AM, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2008-02-22 at 18:13 -0500, tedd wrote: At 5:27 PM -0500 2/22/08, Robert Cummings wrote: On Fri, 2008-02-22 at 17:04 -0500, Nathan Nobbe wrote: and btw; your narratives are are just damned hilarious rob

[PHP] checking for and enforcing https

2008-02-25 Thread Rick Pasotto
What is the best or recomended proceedure for making sure that a page is accessed only via a secure connection? -- The secret of being miserable is to have the leisure to bother about whether you are happy or not. The cure is occupation. -- George Bernard Shaw Rick Pasotto[EMAIL

RE: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Andrés Robinet
-Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Monday, February 25, 2008 1:24 PM To: Andrés Robinet Cc: tedd; php-general@lists.php.net Subject: Re: [PHP] Question about PHP Licence and it's future! On Mon, Feb 25, 2008 at 1:23 PM, Daniel Brown [EMAIL

Re: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Jason Pruim
On Feb 25, 2008, at 1:24 PM, Daniel Brown wrote: On Mon, Feb 25, 2008 at 1:23 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Mon, Feb 25, 2008 at 12:53 PM, Andrés Robinet [EMAIL PROTECTED] wrote: Thanks for pointing out the *who* instead of *that* :), since I didn't realized it until now.

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Per Jessen
Rick Pasotto wrote: What is the best or recomended proceedure for making sure that a page is accessed only via a secure connection? The guaranteed way is not serving it over an insecure connection. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: checking for and enforcing https

2008-02-25 Thread Shawn McKenzie
Rick Pasotto wrote: What is the best or recomended proceedure for making sure that a page is accessed only via a secure connection? Best is subjective, however I check in $_SERVER['SERVER_PROTOCOL'], also https will appear in some other $_SERVER vars. -Shawn -- PHP General Mailing List

Re: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 1:23 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Mon, Feb 25, 2008 at 12:53 PM, Andrés Robinet [EMAIL PROTECTED] wrote: Thanks for pointing out the *who* instead of *that* :), since I didn't realized it until now. That's realize, Andrés. ;-P Oh,

Re: [PHP] URL modification

2008-02-25 Thread Richard Heyes
I think this is a highly underused built-in feature. Agreed. I started to use it on my blog instead of a query string and pages reported by Google went up. -- Richard Heyes http://www.phpguru.org Free PHP and Javascript code -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: Plant Extracts and Our Factory

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 12:38 PM, Robert Cummings [EMAIL PROTECTED] wrote: It is... (S)PAM (P)HP (A)d (M)ail Damn those recursive acronyms. -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--; sleep(86400); } ? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 12:53 PM, Andrés Robinet [EMAIL PROTECTED] wrote: Thanks for pointing out the *who* instead of *that* :), since I didn't realized it until now. That's realize, Andrés. ;-P Rob, Robber, Robot, Robin-Laid-An-Egg -- /Dan Daniel P. Brown Senior Unix Geek

Re: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 13:24 -0500, Daniel Brown wrote: On Mon, Feb 25, 2008 at 1:23 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Mon, Feb 25, 2008 at 12:53 PM, Andrés Robinet [EMAIL PROTECTED] wrote: Thanks for pointing out the *who* instead of *that* :), since I didn't realized

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Wolf
Rick Pasotto [EMAIL PROTECTED] wrote: What is the best or recomended proceedure for making sure that a page is accessed only via a secure connection? Make the server only send over 443 instead of 80... But if you don't have the ability to change .htaccess or httpd.conf then you can

Re: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 1:45 PM, Jason Pruim [EMAIL PROTECTED] wrote: Does that mean we can also subscribe to [EMAIL PROTECTED] ? I've always like the idea of being an outlaw... But the closet I ever came to that was a speeding ticket when I was 16! :P Don't worry, J. With everything

Re: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 1:44 PM, Andrés Robinet [EMAIL PROTECTED] wrote: Oh dear, I think I can't help it! I'll need a good lawyer in order to avoid life imprisonment! But... in order to have a fair court on this trial, only people capable of quickly repeating tres tristes tigres comen

Re: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Jason Pruim
On Feb 25, 2008, at 1:59 PM, Daniel Brown wrote: On Mon, Feb 25, 2008 at 1:45 PM, Jason Pruim [EMAIL PROTECTED] wrote: Does that mean we can also subscribe to [EMAIL PROTECTED] ? I've always like the idea of being an outlaw... But the closet I ever came to that was a speeding ticket when I

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 1:40 PM, Rick Pasotto [EMAIL PROTECTED] wrote: What is the best or recomended proceedure for making sure that a page is accessed only via a secure connection? Provided you're running SSL on the standard HTTPS port of 443, include this at the very top of every file,

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Stephen Johnson
Or you can cheat... $url = $_SERVER['SERVER_NAME']; header( 'Location:https://'.$url.''); I think that would cause an infinite loop of redirection... This would be better ?php $curPort = $_SERVER['SERVER_PORT']; $pageTo = $_SERVER['REQUEST_URI']; if($curPort == 80) { //

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Wolf
Nope, it works like a charm for me, but I have it in an IF statement checking to see if the requestor is https or not to begin with. I actually have it called as a function that passes in the rest of the path of the file that is being requested, which is called within an included page, which

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Wolf
Stephen Johnson [EMAIL PROTECTED] wrote: Or you can cheat... $url = $_SERVER['SERVER_NAME']; header( 'Location:https://'.$url.''); I think that would cause an infinite loop of redirection... This would be better ?php $curPort = $_SERVER['SERVER_PORT']; $pageTo

Re: [PHP] Re: AMP installer

2008-02-25 Thread Ryan A
Hey! Just a thank you to all who replied to this thread, I will be taking your suggestion and installing xampp, will post back if I hit any walls. Thanks again! Cheers! R Never miss a thing. Make

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Stut
On 25 Feb 2008, at 18:40, Rick Pasotto wrote: What is the best or recomended proceedure for making sure that a page is accessed only via a secure connection? What web server are you using? In my experience this is best done there rather than in PHP. -Stut -- http://stut.net/ -- PHP

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Stephen Johnson
OK.. I was referring to the lack of if checking on your post.. But I should have assumed that you did it that way. As long as your validating whether you are secure before you try and go secure is what I was getting at. Also, I agree on odd usage of port numbers, most of my stuff runs on

Re: [PHP] RE: temprorary error

2008-02-25 Thread tedd
At 11:18 AM -0500 2/25/08, Daniel Brown wrote: I didn't think Quakers could use computers. Or electricity. -- /Dan No, that's the Amish. Quakers are the one's who make cereal. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Dan Joseph
On Mon, Feb 25, 2008 at 2:09 PM, Daniel Brown [EMAIL PROTECTED] wrote: ? if($_SERVER['SERVER_PORT'] != '443') { $url = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']; header(Location:

[PHP] Mysql vs. Mysqli crash handling

2008-02-25 Thread Larry Garfield
Hi folks. I've an odd issue. If I connect to a MySQL DB using ext/mysql, and for whatever reason the process dies (uncaught exception, fatal error, etc.) the connection is garbage collected and closed. If, however, I use ext/mysqli, the connection remains open forever and just eats up

Re: [PHP] RE: temprorary error

2008-02-25 Thread Wolf
tedd [EMAIL PROTECTED] wrote: At 11:18 AM -0500 2/25/08, Daniel Brown wrote: I didn't think Quakers could use computers. Or electricity. -- /Dan No, that's the Amish. Quakers are the one's who make cereal. Except for Joseph who run the underground power cable through

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread tedd
At 10:31 AM -0500 2/25/08, Matty Sarro wrote: Also maybe look at Head First Design Patterns if you are interested in ever understanding them. Okay -- thanks for the recommendation -- I just bought it. Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 3:51 PM, Tamer Higazi [EMAIL PROTECTED] wrote: Hey Daniel! Hey, Tamer! Thanks for your feedback. My pleasure. However, please keep all replies on-list as the discussion continues, because this also helps people who are attempting to find the information on

Re: [PHP] Mysql vs. Mysqli crash handling

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 3:07 PM, Larry Garfield [EMAIL PROTECTED] wrote: Hi folks. I've an odd issue. Only fair. You're an odd bird, and we're an odd bunch. ;-P If I connect to a MySQL DB using ext/mysql, and for whatever reason the process dies (uncaught exception, fatal error,

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread tedd
At 9:51 AM -0500 2/25/08, Eric Butera wrote: To each their own I guess. Just out of curiosity, are you primarily writing entire web applications or one off scripts? If a client can describe it, that's what I do. As compared to some of the others of this list, I'm just a script-kiddy. But, I

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Jason Pruim
On Feb 25, 2008, at 4:18 PM, tedd wrote: At 9:51 AM -0500 2/25/08, Eric Butera wrote: To each their own I guess. Just out of curiosity, are you primarily writing entire web applications or one off scripts? If a client can describe it, that's what I do. As compared to some of the others of

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Michael McGlothlin
Can you do web 2.0? Because it just HAS to be web 2.0... anything else is s last version :) Yuck - I hate overuse of 'web 2.0' stuff. Don't add features that don't benefit your users and if you must do fancy stuff then please make sure your site still works for users without

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Matty Sarro
Dangit, I can only do web1.9.5 :( I guess I've been deprecated... On Mon, Feb 25, 2008 at 4:27 PM, Jason Pruim [EMAIL PROTECTED] wrote: On Feb 25, 2008, at 4:18 PM, tedd wrote: At 9:51 AM -0500 2/25/08, Eric Butera wrote: To each their own I guess. Just out of curiosity, are you

  1   2   >