Re: [PHP] Should I go with the Singleton Pattern or wait for 5.3?

2008-07-15 Thread Luigi Perroti
On Tue, Jul 15, 2008 at 2:10 AM, Chris wrote: Is this a decision for the whole project or just one particular part of it? Can that one part be put off until later or does it need to be done first? This decision will impact the whole project. I think that maybe I should go with the Singleton

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: Hi, Rob: I forgot to mention that I have been using yum install. I have reinstalled the entire thing, put back all the packages, and then I went to /var and did a chmod -R 777 var, and then did a [EMAIL PROTECTED] var]# chown -R apache:apache . Interestingly, I do

Re: [PHP] Math Weirdness - Can it be done with integers alone??

2008-07-15 Thread Waynn Lue
There's an algorithm known as banker's rounding that I thought all US banks used. I'm on blackberry right now so I don't have a pointer, but essentially you round to the nearest even cent. 1.5 goes to 2, as does 2.5. Waynn On 7/15/08, tedd [EMAIL PROTECTED] wrote: At 4:15 PM -0400 7/14/08,

[PHP] Advice on a radar chart

2008-07-15 Thread Richard Heyes
Hey, Can anyone suggest an efficient method for plotting the marks on a radar chart? I have the background done (http://www.phpguru.org/downloads/HTML5_radar/ - FF required), but that not exactly difficult. Cheers. -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Yeti
I dont think using all these regular expressions is a very efficient way to do so. As i previously pointed out there are many users who had a similar problem, which can be viewed at: http://it.php.net/manual/en/function.strtr.php One of my favourites is what derernst at gmx dot ch used.

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Yeti
Oh, and i forgot about this one ... jorge at seisbits dot com wrote on 11-Jul-2008 09:04 If you try to make a strtr of not usual charafters when you are in a utf8 enviroment, you can do that: function normaliza ($string){ $string = utf8_decode($string); $string = strtr($string, utf8_decode(

Re: [PHP] Advice on a radar chart

2008-07-15 Thread Bernhard Kohl
If you are willing to use googles chart api .. http://code.google.com/apis/chart/#radar Yeti On Tue, Jul 15, 2008 at 11:35 AM, Richard Heyes [EMAIL PROTECTED] wrote: Hey, Can anyone suggest an efficient method for plotting the marks on a radar chart? I have the background done (

[PHP] Login without cookies enabled help

2008-07-15 Thread Shelley
Hi all, What is your way to organize user login without Client Cookies being disabled? Sample code will be appreciated. Waiting for your reply... -- Regards, Shelley

RE: [PHP] Math Weirdness

2008-07-15 Thread Ford, Mike
On 14 July 2008 20:47, tedd advised: Round-off errors normally don't enter into things unless your doing multiplication and division operations. At that point, what you get back from the operation is an approximation and not the actual number. Bull! Nearly all computer floating point numbers

[PHP] Re: Login without cookies enabled help

2008-07-15 Thread Shelley
Sorry, should be with Client Cookies being disabled :) On Tue, Jul 15, 2008 at 6:24 PM, Shelley [EMAIL PROTECTED] wrote: Hi all, What is your way to organize user login without Client Cookies being disabled? Sample code will be appreciated. Waiting for your reply... -- Regards,

RE: [PHP] Math Weirdness

2008-07-15 Thread Ford, Mike
On 14 July 2008 21:44, Jay Blanchard advised: [snip] So does that mean your problem is solved? [/snip] It would appear so. I just need to remember to check for absolute values when working with floats. Yeah, that's Computer Science 101 stuff. (Well, it was when I did my degree 30+ years

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
-Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:06 AM To: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: Hi, Rob: I forgot to mention that I have been using yum install. I have reinstalled

Re: [PHP] Login without cookies enabled help

2008-07-15 Thread Thijs Lensselink
Quoting Shelley [EMAIL PROTECTED]: Hi all, What is your way to organize user login without Client Cookies being disabled? Sample code will be appreciated. Waiting for your reply... -- Regards, Shelley You can use sessions to store data on the server instead of the client.

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:06 AM To: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: Hi, Rob: I forgot to mention that I have been using yum install. I

Re: [PHP] Login without cookies enabled help

2008-07-15 Thread php
[quote] On Tue , Thijs Lensselink [EMAIL PROTECTED] sent: Quoting Shelley [EMAIL PROTECTED]: Hi all, What is your way to organize user login without Client Cookies being disabled? Sample code will be appreciated. Waiting for your reply... -- Regards, Shelley You

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:06 AM

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED]

RE: [PHP] Math Weirdness

2008-07-15 Thread Jay Blanchard
[snip] It would appear so. I just need to remember to check for absolute values when working with floats. Yeah, that's Computer Science 101 stuff. (Well, it was when I did my degree 30+ years ago, so it's probably nearer primary school level by now ;) [/snip] This is what happens when you

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford

RE: [PHP] Math Weirdness

2008-07-15 Thread tedd
At 11:24 AM +0100 7/15/08, Ford, Mike wrote: On 14 July 2008 20:47, tedd advised: Round-off errors normally don't enter into things unless your doing multiplication and division operations. At that point, what you get back from the operation is an approximation and not the actual number.

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Andrew Ballard
On Tue, Jul 15, 2008 at 5:38 AM, Yeti [EMAIL PROTECTED] wrote: I dont think using all these regular expressions is a very efficient way to do so. As i previously pointed out there are many users who had a similar problem, which can be viewed at: http://it.php.net/manual/en/function.strtr.php

Re: [PHP] Math Weirdness

2008-07-15 Thread Robin Vickery
2008/7/15 tedd [EMAIL PROTECTED]: I said: Round-off errors normally don't enter into things unless your doing multiplication and division operations. And that is not Bull -- it's true. You can add and subtract all the floating point numbers (the one's we are talking about here) you want

[PHP] Byte range support

2008-07-15 Thread Manuel Vacelet
Hello all, How can I make my php apps aware of byte range HTTP request ? I have a script that output data to user if she's granted to do so. But as of today, if download fails, she must restart the download from the beginning because my server (my php script) doesn't support range byte requests

[PHP] DB search and case sensitive comparison

2008-07-15 Thread Angelo Zanetti
Hi all, I have a question and I can't seem to get around the problem or finding a total solution. I have a DB with a list of entries, one of the tables has fields and one of the fields is called the lookup_string field. This field is used to checkup values when users enter the site (explained

Re: [PHP] Freelance PHP development in India

2008-07-15 Thread Thiago Melo de Paula
Hello Denis, normally Mr. Manuel Lemos would send this message, but, here is the hint: you can search for professionals at the following link: http://www.phpclasses.org/professionals/ I've take a look and in India had 333 PHP professionals! Regards, Thiago Melo de Paula On Mon, Jul 14, 2008

Re: [PHP] Login without cookies enabled help

2008-07-15 Thread Shelley
Well, as I said the cookies are disabled at the clients. Anybody any opinions? On Tue, Jul 15, 2008 at 7:23 PM, Thijs Lensselink [EMAIL PROTECTED] wrote: Quoting Shelley [EMAIL PROTECTED]: Hi all, What is your way to organize user login without Client Cookies being disabled? Sample

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Andrew Ballard
On Tue, Jul 15, 2008 at 9:46 AM, Andrew Ballard [EMAIL PROTECTED] wrote: On Tue, Jul 15, 2008 at 5:38 AM, Yeti [EMAIL PROTECTED] wrote: I dont think using all these regular expressions is a very efficient way to do so. As i previously pointed out there are many users who had a similar problem,

Re: [PHP] Login without cookies enabled help

2008-07-15 Thread Daniel Brown
On Tue, Jul 15, 2008 at 10:15 AM, Shelley [EMAIL PROTECTED] wrote: Well, as I said the cookies are disabled at the clients. Anybody any opinions? Yes, again, STFW before posting here. Google PHPSESSID. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting

Re: [PHP] mkdir permission errors

2008-07-15 Thread Daniel Brown
On Tue, Jul 15, 2008 at 7:05 AM, Wei, Alice J. [EMAIL PROTECTED] wrote: Do I really have to reinstall the entire Fedora? You may be a prime candidate for Windows. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract!

Re: [PHP] mkdir permission errors

2008-07-15 Thread Wolf
Daniel Brown [EMAIL PROTECTED] wrote: On Tue, Jul 15, 2008 at 7:05 AM, Wei, Alice J. [EMAIL PROTECTED] wrote: Do I really have to reinstall the entire Fedora? You may be a prime candidate for Windows. Well, you *could* load Fedora on another machine, fully update it, and then go

[PHP] Re: DB search and case sensitive comparison

2008-07-15 Thread Shawn McKenzie
Angelo Zanetti wrote: Hi all, I have a question and I can't seem to get around the problem or finding a total solution. I have a DB with a list of entries, one of the tables has fields and one of the fields is called the lookup_string field. This field is used to checkup values when users

RE: [PHP] Math Weirdness

2008-07-15 Thread bruce
hi.. in all seriousness, when you talk about mathmetical operations, you need to really clearly define what the parameters of the conversation are. are you just restricting the conversation to ints, or floats as well.. you should also restrict the range of the number you're discussing. for most

RE: [PHP] Math Weirdness

2008-07-15 Thread Jay Blanchard
[snip] for most of what the majority of php/script apps deal with, it's probably safe to assume that addition/subtraction will be safe, but i can think of numerous examples where this isn't true... [/snip] As demonstrated by the example I provided, just checking the difference (or lack thereof)

Re: [PHP] Math Weirdness

2008-07-15 Thread Daniel Brown
On Tue, Jul 15, 2008 at 11:16 AM, Jay Blanchard [EMAIL PROTECTED] wrote: the errors add up really quickly because the platforms are so darn much quicker than we are. All I need to prove you wrong is an abacus and an old man with Parkinson's. ;-P -- /Daniel P. Brown Dedicated

RE: [PHP] Math Weirdness

2008-07-15 Thread Ford, Mike
On 15 July 2008 14:33, tedd advised: At 11:24 AM +0100 7/15/08, Ford, Mike wrote: On 14 July 2008 20:47, tedd advised: Round-off errors normally don't enter into things unless your doing multiplication and division operations. At that point, what you get back from the operation is an

[PHP] Warning:Cannot modify header information - Error

2008-07-15 Thread Tiji varghese
Hi All ! I am having some problem with the code below. Everytime I run it it gives me the following error: Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\practice.com\displayUserData.php:7) in

Re: [PHP] Warning:Cannot modify header information - Error

2008-07-15 Thread Dan Joseph
On Tue, Jul 15, 2008 at 11:51 AM, Tiji varghese [EMAIL PROTECTED] wrote: Hi All ! I am having some problem with the code below. Everytime I run it it gives me the following error: Warning: Cannot modify header information - headers already sent by (output started at

RE: [PHP] Math Weirdness

2008-07-15 Thread Ford, Mike
On 15 July 2008 16:07, bruce advised: anyone remember the intel debacle in the 1990's.. when they ate a couple hundred million when they had a math err in one of their coprocessors! Oh, yes! And then, back in the day, there was the DEC arithmetic processor which hung if you happened to

RE: [PHP] Math Weirdness

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 11:32 +0100, Ford, Mike wrote: On 14 July 2008 21:44, Jay Blanchard advised: [snip] So does that mean your problem is solved? [/snip] It would appear so. I just need to remember to check for absolute values when working with floats. Yeah, that's Computer

Re: [PHP] mkdir permission errors

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 09:06 +0100, Peter Ford wrote: Wei, Alice J. wrote: Hi, Rob: I forgot to mention that I have been using yum install. I have reinstalled the entire thing, put back all the packages, and then I went to /var and did a chmod -R 777 var, and then did a

RE: [PHP] mkdir permission errors

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 08:16 -0400, Wei, Alice J. wrote: This portion is to answer Rob's question: [EMAIL PROTECTED] var]# ls -la total 92 drwxrwxrwx 22 root root 4096 2008-06-24 08:34 . drwxr-xr-x 21 root root 4096 2008-07-14 08:17 .. drwxrwxrwx 2 root root 4096 2008-06-24 08:25 account

RE: [PHP] Math Weirdness

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 10:16 -0500, Jay Blanchard wrote: [snip] for most of what the majority of php/script apps deal with, it's probably safe to assume that addition/subtraction will be safe, but i can think of numerous examples where this isn't true... [/snip] As demonstrated by the

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
From: Robert Cummings [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 12:16 PM To: Wei, Alice J. Cc: Peter Ford; php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Tue, 2008-07-15 at 08:16 -0400, Wei, Alice J. wrote: This portion is to

RE: [PHP] Math Weirdness

2008-07-15 Thread Jay Blanchard
[snip] So what you're saying is that you've been skimming for a while and the fruits of your mislabour are adding up? [/snip] Not as far as you know. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Math Weirdness

2008-07-15 Thread tedd
At 4:52 PM +0100 7/15/08, Ford, Mike wrote: On 15 July 2008 14:33, tedd advised: Mike: No reason to be rude. I said: Round-off errors normally don't enter into things unless your doing multiplication and division operations. And that is not Bull -- it's true. You can add and subtract

RE: [PHP] mkdir permission errors

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 12:19 -0400, Wei, Alice J. wrote: From: Robert Cummings [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 12:16 PM To: Wei, Alice J. Cc: Peter Ford; php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Tue,

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread tedd
At 10:15 AM -0400 7/15/08, Andrew Ballard wrote: On TueWell, OK, I can think of one optimization. This takes advantage of the fact that preg_replace can accept arrays as parameters. In a couple very quick tests this version is roughly 30% faster than my previous version: -snip- Hey, when you

RE: [PHP] Math Weirdness

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 12:26 -0400, tedd wrote: At 4:52 PM +0100 7/15/08, Ford, Mike wrote: On 15 July 2008 14:33, tedd advised: Mike: No reason to be rude. I said: Round-off errors normally don't enter into things unless your doing multiplication and division operations.

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
From: Robert Cummings [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 12:16 PM To: Wei, Alice J. Cc: Peter Ford; php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Tue, 2008-07-15 at 08:16 -0400, Wei, Alice J. wrote: This

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wolf
Nope, I have set mine to 755, and it does not seem to be giving me any errors. This is the safer way to do it, right? Alice Alice, At this point, you need to re-install the OS or prepare to get your machine completely hacked and trashed. With your permissions that badly screwed up, it

RE: [PHP] Math Weirdness

2008-07-15 Thread tedd
At 12:31 PM -0400 7/15/08, Robert Cummings wrote: Umm... here it is to unlimited precision: ¼ Cheers, Rob. Yeah and here's ƒ Like or not, that's all there is to it. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

[PHP] Removeing duplicates inside for/foreach loop.

2008-07-15 Thread Niccolo Machiavelli
$array = array( 1 = array(order_number = 10DA0DDEDAF97DB, order_payment_first_name = Mike, order_payment_last_name = Smith), 2 = array(order_number = 10DA0DDEDAF97DB, order_payment_first_name = Mike, order_payment_last_name = Smith), 3 = array(order_number = 45Y3453245T23T5,

Re: [PHP] Login without cookies enabled help

2008-07-15 Thread Thiago H. Pojda
Yes, again, STFW before posting here. Google PHPSESSID. Call to undefined function Google(); -- /Daniel P. Brown :) -- Thiago Henrique Pojda

[Fwd: Re: [PHP] Removeing duplicates inside for/foreach loop.]

2008-07-15 Thread Stephen
Niccolo Machiavelli wrote: $array = array( 1 = array(order_number = 10DA0DDEDAF97DB, order_payment_first_name = Mike, order_payment_last_name = Smith), 2 = array(order_number = 10DA0DDEDAF97DB, order_payment_first_name = Mike, order_payment_last_name = Smith), 3 =

Re: [PHP] Removeing duplicates inside for/foreach loop.

2008-07-15 Thread tedd
At 11:50 AM -0500 7/15/08, Niccolo Machiavelli wrote: $array = array( -snip- My question is I want to remove duplicate order numbers in other words ditch *one* of the Mike Smith rows there's a duplicate order number there. And I need to do it in either a for/foreach loop. Somehow there's

[PHP] Re: Removeing duplicates inside for/foreach loop.

2008-07-15 Thread Shawn McKenzie
Niccolo Machiavelli wrote: $array = array( 1 = array(order_number = 10DA0DDEDAF97DB, order_payment_first_name = Mike, order_payment_last_name = Smith), 2 = array(order_number = 10DA0DDEDAF97DB, order_payment_first_name = Mike, order_payment_last_name = Smith), 3 = array(order_number

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Andrew Ballard
On Tue, Jul 15, 2008 at 12:30 PM, tedd [EMAIL PROTECTED] wrote: At 10:15 AM -0400 7/15/08, Andrew Ballard wrote: On TueWell, OK, I can think of one optimization. This takes advantage of the fact that preg_replace can accept arrays as parameters. In a couple very quick tests this version is

RE: [PHP] Removeing duplicates inside for/foreach loop.

2008-07-15 Thread Niccolo Machiavelli
I'm firly certain array unique won't can't handle dimensional arrays. This is what I have for code it almost works $order_data = array(); while ($row = $db-fetchRow($result)) { $order_data[] = 'a href='.setup_uri('orders').'?id=' .

Re: [PHP] Removeing duplicates inside for/foreach loop.

2008-07-15 Thread Eric Butera
On Tue, Jul 15, 2008 at 12:50 PM, Niccolo Machiavelli [EMAIL PROTECTED] wrote: $array = array( 1 = array(order_number = 10DA0DDEDAF97DB, order_payment_first_name = Mike, order_payment_last_name = Smith), 2 = array(order_number = 10DA0DDEDAF97DB, order_payment_first_name = Mike,

RE: [PHP] Math Weirdness

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 12:37 -0400, tedd wrote: At 12:31 PM -0400 7/15/08, Robert Cummings wrote: Umm... here it is to unlimited precision: ¼ Cheers, Rob. Yeah and here's ƒ Like or not, that's all there is to it. Weird... you're client bastar-dized my beautiful pi symbol. Cheers,

Re: [PHP] Removeing duplicates inside for/foreach loop.

2008-07-15 Thread Jim Lucas
Niccolo Machiavelli wrote: I'm firly certain array unique won't can't handle dimensional arrays. This is what I have for code it almost works $order_data = array(); while ($row = $db-fetchRow($result)) { $order_data[] = 'a

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Yeti
The original problem was User X submits a character string A. A PHP scripts uses A to search for it's occurences in a DB, ignoring special characters. The result of ze search is a list of character strings M-LIST with matches. This list gets outputted to the user X, but before that all the

Re: [PHP] Math Weirdness - Can it be done with integers alone??

2008-07-15 Thread Jochem Maas
tedd schreef: At 4:45 PM -0400 7/14/08, Daniel Brown wrote: That's as far OT as I'm going, but it's worth noting how regulation doesn't do shit if it's not enforced. The only thing that's regulated AND enforced is what you owe the government. actually your under no obligation to

Re: [PHP] Math Weirdness

2008-07-15 Thread Jochem Maas
Robin Vickery schreef: 2008/7/15 tedd [EMAIL PROTECTED]: I said: Round-off errors normally don't enter into things unless your doing multiplication and division operations. And that is not Bull -- it's true. You can add and subtract all the floating point numbers (the one's we are talking

Re: [PHP] Math Weirdness

2008-07-15 Thread Jochem Maas
Robert Cummings schreef: On Tue, 2008-07-15 at 12:37 -0400, tedd wrote: At 12:31 PM -0400 7/15/08, Robert Cummings wrote: Umm... here it is to unlimited precision: ¼ Cheers, Rob. Yeah and here's ƒ Like or not, that's all there is to it. Weird... you're client bastar-dized my beautiful pi

Re: [PHP] Math Weirdness

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 20:17 +0200, Jochem Maas wrote: Robin Vickery schreef: 2008/7/15 tedd [EMAIL PROTECTED]: I said: Round-off errors normally don't enter into things unless your doing multiplication and division operations. And that is not Bull -- it's true. You can add and

Re: [PHP] Math Weirdness

2008-07-15 Thread Robert Cummings
On Tue, 2008-07-15 at 20:21 +0200, Jochem Maas wrote: Robert Cummings schreef: On Tue, 2008-07-15 at 12:37 -0400, tedd wrote: At 12:31 PM -0400 7/15/08, Robert Cummings wrote: Umm... here it is to unlimited precision: ¼ Cheers, Rob. Yeah and here's ƒ Like or not, that's all

RE: [PHP] Math Weirdness

2008-07-15 Thread Jay Blanchard
[snip] Ask Jay, he's the skimming master! :) [/snip] Bow down before mebut not too far lest ye be skimmed as well. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Andrew Ballard
On Tue, Jul 15, 2008 at 2:07 PM, Yeti [EMAIL PROTECTED] wrote: The original problem was User X submits a character string A. A PHP scripts uses A to search for it's occurences in a DB, ignoring special characters. The result of ze search is a list of character strings M-LIST with matches.

Re: [PHP] Advice on a radar chart

2008-07-15 Thread Richard Heyes
If you are willing to use googles chart api .. http://code.google.com/apis/chart/#radar Nope. It's not something I need to implement, mmore a personal (albeit with this lists help) project. -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List

Re: [PHP] Math Weirdness

2008-07-15 Thread tedd
At 8:21 PM +0200 7/15/08, Jochem Maas wrote: Robert Cummings schreef: On Tue, 2008-07-15 at 12:37 -0400, tedd wrote: At 12:31 PM -0400 7/15/08, Robert Cummings wrote: Umm... here it is to unlimited precision: 1Ž4 Cheers, Rob. Yeah and here's Ÿ Like or not, that's all there is to it.

Re: [PHP] Advice on a radar chart

2008-07-15 Thread tedd
At 8:26 PM +0100 7/15/08, Richard Heyes wrote: If you are willing to use googles chart api .. http://code.google.com/apis/chart/#radar Nope. It's not something I need to implement, mmore a personal (albeit with this lists help) project. -- Richard Heyes Richard: What do you want to

Re: [PHP] Advice on a radar chart

2008-07-15 Thread Richard Heyes
What do you want to implement as a radar chart? Nothing in particular. Just a generic radar chart for representing data. -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-15 Thread Rod Clay
Hello. Again, I'm fairly new to php so please forgive me if my question is a very simple or obvious one. I've just tried testing for the first time some php code that is pulling text out of a database to print it on the webpage. Some of this text includes HTML, specifically in this case an

Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-15 Thread Stut
On 15 Jul 2008, at 22:36, Rod Clay wrote: Hello. Again, I'm fairly new to php so please forgive me if my question is a very simple or obvious one. I've just tried testing for the first time some php code that is pulling text out of a database to print it on the webpage. Some of this

Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-15 Thread Rod Clay
Yes, here's the code that is retrieving news items from the database and printing them on the page (I do some other stuff with the text before, and after, I print it, for example, find the sentences, so I can print complete sentences, and not just pieces of sentences). As I say, occasionally

Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-15 Thread dg
On Jul 15, 2008, at 3:06 PM, Rod Clay wrote: All of the text is being correctly retrieved from the database and written to the page, including the img src=xxx statement, because I see it all in the page source of the page in my browser. However, the img src= statement is NOT

Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-15 Thread Rod Clay
It's (was) not printing anything. Here's the doctype statement: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; HOWEVER, thanks for all of the responses so far, but please accept my apologies because evidently this is NOT

RE: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-15 Thread Alex Chamberlain
-Original Message- From: Rod Clay [mailto:[EMAIL PROTECTED] Sent: 15 July 2008 22:36 To: php-general@lists.php.net Subject: [PHP] is there a problem with php script pulling HTML out of database as it writes the page?? Hello. Again, I'm fairly new to php so please forgive me if

Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-15 Thread dg
It would be helpful if you could clarify the error you are getting, but could be something involving quotes, stripslashes() and addslashes(); On Jul 15, 2008, at 2:36 PM, Rod Clay wrote: Hello. Again, I'm fairly new to php so please forgive me if my question is a very simple or obvious

Re: [PHP] Warning:Cannot modify header information - Error

2008-07-15 Thread Daniel Brown
On Tue, Jul 15, 2008 at 11:51 AM, Tiji varghese [EMAIL PROTECTED] wrote: Hi All ! I am having some problem with the code below. Everytime I run it it gives me the following error: Warning: Cannot modify header information - headers already sent by (output started at

[PHP] Changing PHP.ini

2008-07-15 Thread Adam Gerson
By visiting php.info in a web browser I have confirmed the location of my php.ini file as /usr/local/php5/lib/php.ini. I open that file and edit the line: ; - display_errors = Off and change it to display_errors = On I then retstart Appache and visit php.info which still reports

RE: [PHP] Changing PHP.ini

2008-07-15 Thread bruce
what os are you using? if you're on linux, type: find / -name php.ini do you see multiple copies of the php.ini file? if you're on windows, use the search function to see if you have multiple copies of php.ini. if you really want to do a quick check to see if you're modifying the right

[Fwd: Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??]

2008-07-15 Thread Rod Clay
Sorry, I'm back again with this same problem! Apparently the only reason it looked like it was solved an hour ago was because the img src=xx statement I tried reading out of the database was pointing to an image already on the page! When the img src=xxx statement points to an image

[PHP] Lookimg for a script....

2008-07-15 Thread Pete Holsberg
Can anyone point me to a (free) script that will ask for a person's email address and username, and then look up the password that's in a plain text file? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DB search and case sensitive comparison

2008-07-15 Thread Chris
Now what I need to do is to ensure that the lookup_string is in the useragent string and the CASE is the same: IE: Mozilla and not MOZILLA or mozilla etc... Make the database do the work if possible. mysql select * from a where a like '%MOZILLA%'; +-+ | a | +-+ |

[PHP] test

2008-07-15 Thread Børge Holen
test -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[Fwd: [Fwd: Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??]]

2008-07-15 Thread Rod Clay
OK. Once again, a problem I thought was abstruse and formidable turns out to be ridiculously simple and embarrassingly obvious (once you realize what it is - image not in web server directory!!!) But I didn't know until this happened that the browser sends a follow-up request to the web

Re: [PHP] Changing PHP.ini

2008-07-15 Thread Thorsten Suckow-Homberg
By visiting php.info in a web browser I have confirmed the location of my php.ini file as /usr/local/php5/lib/php.ini. I open that file and edit the line: ; - display_errors = Off and change it to display_errors = On I then retstart Appache and visit php.info which still reports

[PHP] Downloading a file

2008-07-15 Thread Robbert van Andel
I am having trouble getting a file to download to work in Internet Explorer. The site works fine in FireFox. The page retrieves the contents of a file from a database and outputs the following ?PHP header(Content-type: application/octet-stream); header(Content-Disposition:

Re: [PHP] Lookimg for a script....

2008-07-15 Thread Daniel Brown
On Tue, Jul 15, 2008 at 7:34 PM, Pete Holsberg [EMAIL PROTECTED] wrote: Can anyone point me to a (free) script that will ask for a person's email address and username, and then look up the password that's in a plain text file? http://www.google.com/search?q=flat-file+php+user+management