RE: [PHP] Re: PHP cuts download process prematurely

2008-02-25 Thread Andrés Robinet
> -Original Message- > From: Shawn McKenzie [mailto:[EMAIL PROTECTED] > Sent: Monday, February 25, 2008 11:19 PM > To: php-general@lists.php.net > Subject: [PHP] Re: PHP cuts download process prematurely > > Manuel Barros Reyes wrote: > > I am building a report application that generates s

RE: [PHP] When to use design patterns?

2008-02-25 Thread Wolf
It depends on the size and scope of your project. For the most part, you should know what you have coded before and when encountering something new, the previous work should help in doing the new work. Hth Wolf -Original Message- From: skylark <[EMAIL PROTECTED]> Sent: Saturday, Febru

[PHP] Re: PHP cuts download process prematurely

2008-02-25 Thread Shawn McKenzie
Manuel Barros Reyes wrote: > I am building a report application that generates some text files for > download and when the download starts it stops prematurely. > > The file sizes are currently in the order of the mega bytes and when I > try the script that generates and sends the file in a test s

[PHP] PHP cuts download process prematurely

2008-02-25 Thread Manuel Barros Reyes
I am building a report application that generates some text files for download and when the download starts it stops prematurely. The file sizes are currently in the order of the mega bytes and when I try the script that generates and sends the file in a test server the process goes smoothly no ma

Re: [PHP] Mysql vs. Mysqli crash handling

2008-02-25 Thread Larry Garfield
On Monday 25 February 2008, Daniel Brown wrote: > 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 r

RE: [PHP] Deleting all rows in a database every 24 hours?

2008-02-25 Thread Daevid Vincent
Or make a 'truncate.sql' file with the tables in it to truncate: TRUNCATE TABLE foo; TRUNCATE TABLE bar; Then in the crontab "mysql mydatabase < truncate.sql" No PHP needed. > -Original Message- > From: Daniel Brown [mailto:[EMAIL PROTECTED] > Sent: Friday, February 22, 2008 6:59 AM >

Re: [PHP] RE: temprorary error

2008-02-25 Thread tedd
At 5:49 PM -0500 2/25/08, Matty Sarro wrote: So, if God begat Rasmus, and Rasmus begat PHP... that means PHP is like a gift from God right? Kinda like the Transformers? And microwave burritos? I'm glad that someone get's it. :-) tedd -- --- http://sperling.com http://ancientstones.com h

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

2008-02-25 Thread tedd
At 9:58 PM + 2/25/08, Stut wrote: Not disagreeing with you, but just to be clear Joomla is a fork of Mambo. -Stut Oh, I thought everyone was talking about dances and all along it's been silverware. Damn, I'm never going to get this design pattern thing. :-) Cheers, tedd -- -

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

2008-02-25 Thread tedd
At 4:27 PM -0500 2/25/08, Jason Pruim wrote: On Feb 25, 2008, at 4:18 PM, tedd wrote: I do everything from basic design to back-end stuff and everything in between -- all with the newest buzz-words applied (i.e., graceful degradation, unobtrusive code, accessible, functional, secure, and it va

Re: [PHP] session id

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 5:51 PM, Łukasz Wojciechowski <[EMAIL PROTECTED]> wrote: > Hi, I'm using SWFUpload JavaScript for my upload in my logged part of > website. I'm passing session_id in every post request from flash > object. In my script I set forwarded id with > session_id($_POST['passed_i

RE: [PHP] RE: temprorary error

2008-02-25 Thread Warren Vail
That sound like the lineage to me. (Don't you hear the voices?) Warren Vail > -Original Message- > From: Matty Sarro [mailto:[EMAIL PROTECTED] > Sent: Monday, February 25, 2008 2:50 PM > To: Wolf > Cc: tedd; php-general@lists.php.net > Subject: Re: [PHP] RE: temprorary error > > So, if G

[PHP] session id

2008-02-25 Thread Łukasz Wojciechowski
Hi, I'm using SWFUpload JavaScript for my upload in my logged part of website. I'm passing session_id in every post request from flash object. In my script I set forwarded id with session_id($_POST['passed_id']) but I got logout on that request (it's redirecting me to login page) and I'm also logge

Re: [PHP] RE: temprorary error

2008-02-25 Thread Matty Sarro
So, if God begat Rasmus, and Rasmus begat PHP... that means PHP is like a gift from God right? Kinda like the Transformers? And microwave burritos? On Mon, Feb 25, 2008 at 3:09 PM, Wolf <[EMAIL PROTECTED]> wrote: > > tedd <[EMAIL PROTECTED]> wrote: > > At 11:18 AM -0500 2/25/08, Daniel Brown

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

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 16:35 -0500, Matty Sarro wrote: > Dangit, I can only do web1.9.5 :( > I guess I've been deprecated... Loozers... I come from the year 3129 and we do DWeb 80.3 on the Hyperweb! We can link to the past... we found Zelda! *groan :)* Cheers, Rob. -- .---

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

2008-02-25 Thread Stut
Greg Donald wrote: On 2/25/08, Michael McGlothlin <[EMAIL PROTECTED]> wrote: I've been fighting with stupid Joomla lately because it throws Javascript errors making it unusable. The un-usability began for me when I became aware of the 250+ published exploits under it's current "Joomla" name:

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

2008-02-25 Thread Greg Donald
On 2/25/08, Michael McGlothlin <[EMAIL PROTECTED]> wrote: > I've been fighting with stupid Joomla lately because it throws > Javascript errors making it unusable. The un-usability began for me when I became aware of the 250+ published exploits under it's current "Joomla" name: http://search.sec

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

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 Javasc

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 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] 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 erro

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] 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 http://earthstones.c

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. > > > >-- > > > > > No, that's the Amish. > > Quakers are the one's who make cereal. > Except for Joseph who run the underground power cab

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

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: > https://".$url.$_SERVER['PHP_SELF']."?".$_SERVER['QUE

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. -- 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 General Ma

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 standar

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 Gene

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 Yah

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 > > > $curPort = $_SERVER['SERVER_PO

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 is

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 https://www.domain.com$pageTo";); exit; } ?> -- Stephen Johnson c | eh The Lone Coder http://

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 fil

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] 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

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 everythi

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 c

[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 (h

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:

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] 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 <[EMAI

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

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, v

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

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

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 -- Daniel P. Brown Senior Unix Ge

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. -- Daniel P. Brown Senior Unix Geek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 pa

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 devel

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

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 h

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

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 u

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. Especi

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 weal

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 c

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, w

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 Int

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

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

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 f

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 th

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 PROTECTED

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

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 ke

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

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 ti

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 >

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: Plant

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 PHP

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"

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

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

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.

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 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 t

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 'Error ' . mysql_errno() . ':

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 PROTECT

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] 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 -- Daniel P. Brown Senior Unix Geek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 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 hi

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 thin

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

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 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... -- Daniel P. Brown Senior Unix Geek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

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(). -- Daniel P. Brown Seni

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

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 * * * /home/user/cleanUpDB.php

Re: [PHP] RE: temprorary error

2008-02-25 Thread Daniel Brown
I didn't think Quakers could use computers. Or electricity. -- Daniel P. Brown Senior Unix Geek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 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, Rob.

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 conjunctio

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 te

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 t

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 serve

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

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 somet

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 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 s

  1   2   >