Re: [PHP] Re: Dan Brown

2009-08-03 Thread Sam Stelfox
tedd wrote: Everything is backed up at least three fold. I am considering online backup and waiting for the cost to go down. You should add paper backups to that list! http://ollydbg.de/Paperbak/ Sam Stelfox -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Martin Scotta
I want to say 'Congratulations' in the php-style! _daughters[] = new HaileighBrown(); } function getName() { return 'Daniel P. Brown'; } } $dan = new DanielBrown(); On Mon, Aug 3, 2009 at 1:29 PM, Daniel Brown wrote: >    ALL: > >    It's

[PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Shawn McKenzie
Miller, Terion wrote: > All of a sudden this stopped working and keeps defaulting to A again > > if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { > > $default = "A"; > > } > > > else { > > $default = ""; > >

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Paul M Foster
On Mon, Aug 03, 2009 at 12:29:29PM -0400, Daniel Brown wrote: > ALL: > > It's far easier to drop a line to the mailing lists and BCC a few > others than to write back to many individually. (I thought you were just heads down coding, not adding to the Brown population. ;-) And this mea

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Paul M Foster
On Mon, Aug 03, 2009 at 01:54:05PM -0400, tedd wrote: > Everything is backed up at least three fold. I am considering online > backup and waiting for the cost to go down. Tried Carbonite.com? I think they're like US$55 / year. Work on Mac and PC, but I doubt Linux, and I don't know about their

Re: [PHP] Multiple MySQL Queries

2009-08-03 Thread sono-io
I'd like to revisit this one last time. Below is the revised code I'm using, but I don't like having individual 'Add To Cart' buttons for each item. I've tried to find a way to have only one that resides outside the nested tables for all items, but without luck. It would need to send ev

Re: [PHP] underscore in php functions?

2009-08-03 Thread Ashley Sheridan
On Mon, 2009-08-03 at 22:46 +0200, Oral Timocin wrote: > Stuart wrote: > > > 2009/8/3 Oral Timocin : > >> Hi all, > >> > >> i am a newbie to php an want to learn it. Aftere reading some sample Code > >> an the documetation i have an unanswered question! > >> > >> for example: > >> > >> public func

Re: [PHP] underscore in php functions?

2009-08-03 Thread Oral Timocin
Stuart wrote: > 2009/8/3 Oral Timocin : >> Hi all, >> >> i am a newbie to php an want to learn it. Aftere reading some sample Code >> an the documetation i have an unanswered question! >> >> for example: >> >> public function _example(){ >> } >> >> what does the _ mean in that function. Could anyo

Re: [PHP] underscore in php functions?

2009-08-03 Thread Stuart
2009/8/3 Oral Timocin : > Hi all, > > i am a newbie to php an want to learn it. Aftere reading some sample Code > an the documetation i have an unanswered question! > > for example: > > public function _example(){ > } > > what does the _ mean in that function. Could anyone help me? Absolutely. But

[PHP] underscore in php functions?

2009-08-03 Thread Oral Timocin
Hi all, i am a newbie to php an want to learn it. Aftere reading some sample Code an the documetation i have an unanswered question! for example: public function _example(){ } what does the _ mean in that function. Could anyone help me? regards -- PHP General Mailing List (http://www.php.n

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Govinda
On Mon, 2009-08-03 at 12:29 -0400, Daniel Brown wrote: ALL: It's far easier to drop a line to the mailing lists and BCC a few others than to write back to many individually. My favorite of my teachers told us repeatedly to just "maintain ourselves". He meant hold on to the unchanging, in

Re: [PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Miller, Terion
On 8/3/09 2:22 PM, "Ollisso" wrote: On Mon, 03 Aug 2009 21:48:08 +0300, "Miller, Terion" wrote: > > Thanks but it still doesn't work, it defaults to 'A' and I want it to > default to show 'A" only on browse.php all other pages should show NO > default selections. > ' Create file with this

Re: [PHP] Re: setting cookie doesn't work

2009-08-03 Thread Ashley Sheridan
On Mon, 2009-08-03 at 20:44 +0200, Grega Leskovsek wrote: > I made two files now of the program: (the main one and the one where I > set the cookie and open pdf)and I noticed that it doesn't work setting > the cookie the first time I call the file where I set the cookie but > only after the second

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Ashley Sheridan
On Mon, 2009-08-03 at 12:29 -0400, Daniel Brown wrote: > ALL: > > It's far easier to drop a line to the mailing lists and BCC a few > others than to write back to many individually. > > Thanks for the concern and well-wishes from the many who wrote to > me during the last 10 days. It's v

Re: [PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Ollisso
On Mon, 03 Aug 2009 21:48:08 +0300, "Miller, Terion" wrote: Thanks but it still doesn't work, it defaults to 'A' and I want it to default to show 'A" only on browse.php all other pages should show NO default selections. ' Create file with this content: and run it with browser. an

Re: [PHP] Can a range be passed to a query?(RESOLVED)

2009-08-03 Thread Miller, Terion
Sorry group, I keep thinking they are real text...I'm new on a iMac and Entourage... On 8/3/09 2:13 PM, "Ashley Sheridan" wrote: On Mon, 2009-08-03 at 09:33 -0700, Miller, Terion wrote: Here is is incase anyone else ever needs it. //Create array with l

Re: [PHP] Can a range be passed to a query?(RESOLVED)

2009-08-03 Thread Ashley Sheridan
On Mon, 2009-08-03 at 09:33 -0700, Miller, Terion wrote: > Here is is incase anyone else ever needs it. > >//Create array with letters AND number > sign$letters = range('A','Z'); > array_push($letters, 'nums'

Re: [PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Miller, Terion
On 8/3/09 1:40 PM, "Ollisso" wrote: On Mon, 03 Aug 2009 20:26:35 +0300, "Miller, Terion" wrote: > All of a sudden this stopped working and keeps defaulting to A again > > if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { > > $default = "A"; > } > > else { > $default = ""; > } > it sho

[PHP] Re: setting cookie doesn't work

2009-08-03 Thread Grega Leskovsek
I made two files now of the program: (the main one and the one where I set the cookie and open pdf)and I noticed that it doesn't work setting the cookie the first time I call the file where I set the cookie but only after the second header redirection. How do I refresh the page in php? Thanks in

[PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Ben Dunlap
Miller, Terion wrote: > if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { You're using the assignment operator above ('=') instead of the comparison ('=='). If that's not simply a typo that entered the code when you composed your email, then that's the source of your problem. You might cons

[PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Ollisso
On Mon, 03 Aug 2009 20:26:35 +0300, "Miller, Terion" wrote: All of a sudden this stopped working and keeps defaulting to A again if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { $default = "A"; } else { $default = ""; } it should be: if ($_SERVER['SCRIPT_FILENAME'] == "browse.ph

Re: [PHP] What makes _SERVER stop working need default view to show nothing

2009-08-03 Thread Miller, Terion
On 8/3/09 12:26 PM, "Miller, Terion" wrote: All of a sudden this stopped working and keeps defaulting to A again if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { $default = "A"; } else { $default = ""; } I was using the above successfully until the boss rewrote the script now

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Daniel Brown
On Mon, Aug 3, 2009 at 13:54, tedd wrote: > > I had that happen a few years ago. I had/have a $20k insurance policy on my > office computers and data. However, I was very surprised to find that it > didn't cover flooding. > > Since then I keep a HD backup of everything in a waterproof safe inside a

Re: [PHP] Re: PHP programming strategy

2009-08-03 Thread Michael A. Peters
Ollisso wrote: 4. If you have huge load, then it is much more efficient (and easier) to use other methods. For Example: install APC (http://fi2.php.net/apc ) It will cache all requests to your files and this will have huge impact on your performance. Much more than you can achieve by strippin

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Richard Heyes
Hi, > ... As said over IM, best wishes. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 25th July) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Dan Brown

2009-08-03 Thread tedd
Daniel: As I previously said privately -- congratulations. Kids are wonderful (until they reach teenage years) At 12:29 PM -0400 8/3/09, Daniel Brown wrote: On a different note, thanks to all of the rain we've had here in the northeast US this year, my basement office flooded while I was

[PHP] Re: PHP programming strategy

2009-08-03 Thread Ollisso
On Sun, 02 Aug 2009 04:25:40 +0300, Clancy wrote: Is anyone here interested in discussing programming strategy, or or know of a discussion group which is interested in the subject? The sorts of questions I am interested in are: 1. I have a highly variable program which always shows the same

RE: [PHP] What makes _SERVER stop working

2009-08-03 Thread Yuri Yarlei
Maybe the $_SERVER variable has been disable in the server, if is it, you will just need enable the $_SERVER again Yuri Yarlei. Programmer PHP, CSS, Java, PostregreSQL; Today PHP, tomorrow Java, after the world. Kyou wa PHP, ashita wa Java, sono ato sekai desu. > From: tmil...@springfi.gann

RE: [PHP] isset not functioning

2009-08-03 Thread Yuri Yarlei
Io, try do like this: You should use $_POST for the security, using $_REQUEST some users can pass a inject or someting to crash the aplication, and addslashes is for more security $firstName = addslashes($_POST['firstname']); if(isset($firstName) && !empty($firstName)) { $name = $

[PHP] What makes _SERVER stop working

2009-08-03 Thread Miller, Terion
All of a sudden this stopped working and keeps defaulting to A again if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { $default = "A"; } else { $default = ""; }

Re: [PHP] isset not functioning

2009-08-03 Thread Steve Brown
> if(isset($_REQUEST['firstname']) && !empty($RESULT['firstname'])) { >  $name = $_REQUEST['firstname']; >  } else { >  $name = 'Sir or Madam'; > } > > Can anyone see any problems with the code? Your conditional will never evaluate to true. What is $RESULT? Where did it come from? $RESULT is no

Re: [PHP] Re: PHP 5.3.0 Released!

2009-08-03 Thread steve
On Thu, Jul 2, 2009 at 3:54 AM, Michael A. Peters wrote: > Nick Cooper wrote: >> >> Does anyone have any further information on the PECL Binaries for 5.3, >> will >> they be released? > > I don't, but I suspect it is just a matter of compile + test. We develop on Windows and deploy on Linux, so wi

RE: [PHP] Re: Dan Brown

2009-08-03 Thread Ford, Mike
> So Haileigh Grace Brown, born at 02:45 EDT Monday morning, 27 > July, 2009, weighed in at 6lbs 4oz and was 17.5 inches long. Oh, wow, congrats! My best wishes to Haileigh and her parents! I: (a) approve the choice of middle name, since that's what we called our daughter ;) (b) sympathis

Re: [PHP] isset not functioning -RESOLVED

2009-08-03 Thread Allen McCabe
Thanks! On Mon, Aug 3, 2009 at 10:13 AM, Andrew Ballard wrote: > On Mon, Aug 3, 2009 at 1:08 PM, Allen McCabe > wrote: > > I created a simple survey for my work website, most of the PHP is on my > > process.php document, which is referenced by a form on a seperate page > > containing the form w

Re: [PHP] isset not functioning

2009-08-03 Thread Ollisso
On Mon, 03 Aug 2009 20:11:44 +0300, "Parham Doustdar" wrote: Your if-statement should be like this: [code] if(isset($_REQUEST['firstname']) && !empty($_REQUEST['firstname'])) { ... } [/code] Or even: [code] if(!empty($_REQUEST['firstname'])) { ... } [/code] Because empty will also check

Re: [PHP] isset not functioning

2009-08-03 Thread Parham Doustdar
Your if-statement should be like this: [code] if(isset($_REQUEST['firstname']) && !empty($_REQUEST['firstname'])) { ... } [/code] -- --- Contact info: Skype: parham-d MSN: fire_lizard16 at hotmail dot com email: parham90 at GMail dot com "Allen McCabe" wrote in message news:657acef20908031008nc

Re: [PHP] isset not functioning

2009-08-03 Thread Andrew Ballard
On Mon, Aug 3, 2009 at 1:08 PM, Allen McCabe wrote: > I created a simple survey for my work website, most of the PHP is on my > process.php document, which is referenced by a form on a seperate page > containing the form with the method of "post". > > On my process.php page, the script obtains the

[PHP] isset not functioning

2009-08-03 Thread Allen McCabe
I created a simple survey for my work website, most of the PHP is on my process.php document, which is referenced by a form on a seperate page containing the form with the method of "post". On my process.php page, the script obtains the field data using the $_REQUEST[] function. I have a small if

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Paul Scott
Daniel Brown wrote: > (behind schedule) and distribute refunds to clients. Having a baby is > difficult enough; having a baby and a career is more difficult; having > a baby and working as a freelancer or owner/operator of a company is > the epitome of masochism --- I'm learning that quite thoroug

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Stuart
Congratulations to you and your wife and best wishes for the future. That's quite a few issues to have to deal with at once and I'm happy to see you emerge from the other side more or less ok. -Stuart 2009/8/3 Daniel Brown : >    ALL: > >    It's far easier to drop a line to the mailing lists and

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Robert Cummings
Oh wow, I didn't know your wife had gone into labour or anything :( Sorry to hear of the stress and very glad to hear both are alive and doing well. Congratulations! Cheers, Rob. Daniel Brown wrote: ALL: It's far easier to drop a line to the mailing lists and BCC a few others th

Re: [PHP] Re: file upload question

2009-08-03 Thread Daniel Echalar
i add me to the question. 2009/8/3 Peter Ford > seb wrote: > > Hey all, > > > > i am using move_upload function to upload files to the server, but i > > want to add a feature that will allow files to be archived that have > > been uploaded already. > > > > so, the problem is: > > > > i upload a

Re: [PHP] Can a range be passed to a query?(RESOLVED)

2009-08-03 Thread Miller, Terion
Here is is incase anyone else ever needs it. //Create array with letters AND number sign$letters = range('A','Z'); array_push($letters, 'nums'); $menu = '';

[PHP] Re: Dan Brown

2009-08-03 Thread Daniel Brown
ALL: It's far easier to drop a line to the mailing lists and BCC a few others than to write back to many individually. Thanks for the concern and well-wishes from the many who wrote to me during the last 10 days. It's very, very kind of you, and much appreciated. I'm honored that yo

[PHP] Re: setting cookie doesn't work

2009-08-03 Thread Grega Leskovsek
And here is the objective: Alter your Acme, Inc. download interface from the previous lesson(I had to not to allow users on computers straing IP with 202 and allow only IE for Win and FF for Mac to download file) so that each user must register her email address in order to download the file. Use c

Re: [PHP] setting cookie doesn't work

2009-08-03 Thread Ashley Sheridan
On Mon, 2009-08-03 at 17:35 +0200, Grega Leskovsek wrote: > Here is one of my final objectives at PHP introductory course ot > O'Reilly. The strange thing that setting a cookie in that program > les13uadownload.php doesn't work. I don't have a clue - sometimes in > other programs when I run them th

[PHP] setting cookie doesn't work

2009-08-03 Thread Grega Leskovsek
Here is one of my final objectives at PHP introductory course ot O'Reilly. The strange thing that setting a cookie in that program les13uadownload.php doesn't work. I don't have a clue - sometimes in other programs when I run them they set cookies and sometimes not. To see the full functionality of

Re: [PHP] Can a range be passed to a query?

2009-08-03 Thread Miller, Terion
On 8/3/09 9:46 AM, "sono...@fannullone.us" wrote: On Aug 3, 2009, at 7:19 AM, Miller, Terion wrote: > Not sure why none of these are working for me since you have them > tested against your tableI get this error... Hopefully I'm not speaking out of turn here, but did you by any

Re: [PHP] Can a range be passed to a query?

2009-08-03 Thread sono-io
On Aug 3, 2009, at 7:19 AM, Miller, Terion wrote: Not sure why none of these are working for me since you have them tested against your tableI get this error... Hopefully I'm not speaking out of turn here, but did you by any chance copy and paste that code from an e-mail? If so, ther

[PHP] Re: file upload question

2009-08-03 Thread Peter Ford
seb wrote: > Hey all, > > i am using move_upload function to upload files to the server, but i > want to add a feature that will allow files to be archived that have > been uploaded already. > > so, the problem is: > > i upload a file that i want to "upgrade" and move the old file to an > archiv

Re: [PHP] Can a range be passed to a query?

2009-08-03 Thread Miller, Terion
On 8/1/09 1:47 AM, "Andrew Ballard" wrote: On Fri, Jul 31, 2009 at 5:55 PM, Phpster wrote: > What about > > $sql = "SELECT DISTINCT ID, name, address FROM restaurants WHERE > left(name, 1) between 0 and 9"; > > > > > Bastien > > Sent from my iPod You need to wrap the 0 and the 9 in single quo

Re: [PHP] Can a range be passed to a query?

2009-08-03 Thread Miller, Terion
On 8/1/09 12:04 AM, "Paul M Foster" wrote: $values = implode(',', $other); For some reason no matter how I tried to get it to say # should pull anything that does not start with a letter. It pulls all restaurantsor it breaks the full script. Here are all the things I have tried so fa

Re: [PHP] file upload question

2009-08-03 Thread Phpster
On Aug 3, 2009, at 7:04 AM, seb wrote: Hey all, i am using move_upload function to upload files to the server, but i want to add a feature that will allow files to be archived that have been uploaded already. so, the problem is: i upload a file that i want to "upgrade" and move the

[PHP] file upload question

2009-08-03 Thread seb
Hey all, i am using move_upload function to upload files to the server, but i want to add a feature that will allow files to be archived that have been uploaded already. so, the problem is: i upload a file that i want to "upgrade" and move the old file to an archive directory but I want to

RE: [PHP] how to pass variable argument list in a childconstructor to parent constructor, ideas wanted

2009-08-03 Thread Ford, Mike
> -Original Message- > From: Ralph Deffke [mailto:ralph_def...@yahoo.de] > Sent: 03 August 2009 02:41 > > problem: > > __ construct( $something ... variable argument list ){ > parent::__construct( ??? ); > } > > I tried with func_get_args, but the problem is that it gives an > indexe

Re: [PHP] Re: Problem: Writing into Files?

2009-08-03 Thread Richard Heyes
Hi > The thing with this method is that it's just like the previous one; it opens > then adds something. I'm assuming if again two visitors visit at the same > time, this'd reset to zero. No, the "a" mode (IIRC) handles file locking for you. Even if it doesn't, the file won't be truncated, so you

[PHP] Re: Clean break.

2009-08-03 Thread Peter Ford
Paul Halliday wrote: > Whats the cleanest (I have a really ugly) way to break this: > > [21/Jul/2009:00:00:47 -0300] > > into: > > date=21/jul/2009 > time=00:00:47 > > Caveats: > > 1) if the day is < 10 the beginning of the string will look like > "[1/... > 2) the "-0300" will differ dependin

[PHP] Re: Problem: Writing into Files?

2009-08-03 Thread Ollisso
On Sun, 02 Aug 2009 13:14:42 +0300, "Parham Doustdar" wrote: Now this one always sets the file to one for some reason. I'll reiterate just in case there's been a misunderstanding on my part: [code] $fp = fopen($f, "r+"); while (!flock($fp, LOCK_EX)) sleep(1); $count = fgets($fp,filesize($fp));

Re: [PHP] Radio buttons problem

2009-08-03 Thread Ollisso
On Mon, 03 Aug 2009 11:01:13 +0300, leledumbo wrote: How can I make a radio button in one entry to behave independently from the one in another so that it can be accessed as name and email above? This should work: -- -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Radio buttons problem

2009-08-03 Thread leledumbo
I'm creating a form with variable number of entries (user controlled) where each entry consists of some input fields. For most input types, appending [] to their names is enough to allow me processing each entry. So, for instance, if there are 3 entries with field name[] and email[], they can be a