php-general Digest 13 Aug 2008 07:14:39 -0000 Issue 5621

2008-08-13 Thread php-general-digest-help
php-general Digest 13 Aug 2008 07:14:39 - Issue 5621 Topics (messages 277993 through 278020): Re: strip_tags 277993 by: Richard Heyes 277994 by: Philip Thompson 277995 by: Andrew Ballard 277996 by: Richard Heyes 278005 by: Philip Thompson

php-general Digest 13 Aug 2008 20:07:28 -0000 Issue 5622

2008-08-13 Thread php-general-digest-help
php-general Digest 13 Aug 2008 20:07:28 - Issue 5622 Topics (messages 278021 through 278054): Re: More math fun 278021 by: Robert Cummings 278027 by: Jay Blanchard 278032 by: Jim Lucas 278049 by: Robert Cummings Re: If Column Exists 278022 by: Per

RE: [PHP] More math fun

2008-08-13 Thread Alex Chamberlain
1.7763568394E-15 is 0. The computer just had a rounding error somewhere. We had this discussion a few weeks ago, the solution being to decide to what accuracy you want the answer. Upto 14 decimal places will give you 0 here!! Alex -Original Message- From: Robert Cummings [mailto:[EMAIL

RE: [PHP] More math fun

2008-08-13 Thread Robert Cummings
On Wed, 2008-08-13 at 08:14 +0100, Alex Chamberlain wrote: 1.7763568394E-15 is 0. The computer just had a rounding error somewhere. We had this discussion a few weeks ago, the solution being to decide to what accuracy you want the answer. Upto 14 decimal places will give you 0 here!! I thought

RE: [PHP] If Column Exists

2008-08-13 Thread Per Jessen
Jay Blanchard wrote: [snip] I am working on data migration for one mysql db to another using PHP. How do I check if a particular table has a particular column. If not alter... [/snip] Use DESCRIBE TABLE; Then you'd have to parse the output - how about SELECT column FROM table LIMIT 1

[PHP] Anyone using Lighttpd + webdav and a PHP handler?

2008-08-13 Thread mike
i.e. using PUT and using a .php script as the handler for it? I can successfully PUT a file to /path/to/file-that-doesnt-exist.txt However, when I try to do a PUT to an existing .php script it gives me access denied, most likely due to the fact that a file exists. I don't want it to actually try

Re: [PHP] If Column Exists

2008-08-13 Thread Robin Vickery
2008/8/12 VamVan [EMAIL PROTECTED]: Hello, I am working on data migration for one mysql db to another using PHP. How do I check if a particular table has a particular column. If not alter... Thanks Use the information_schema: SELECT COUNT(*) AS column_exists FROM

[PHP] Re: A dumb question regarding sending email

2008-08-13 Thread tedd
Hi gang: Problem solved. I was tired last night and used http:www.example.com and wondered why it wouldn't work. Duh! I knew it was a dumb question that should have waited until I had a good night's sleep. Cheers, tedd -- --- http://sperling.com http://ancientstones.com

[PHP] SOAP - return a list of items

2008-08-13 Thread Dan Joseph
Hi, I am using the PHP5 SOAP Functions... I am trying to find some information on how to properly build a function into my web service to return a list of quotes. Each list will have a QuoteID, Origin, Destination, Name. Example: 1011, 48167, 90222, John Smith 1012, 54888, 19893, Joe Johnson

RE: [PHP] More math fun

2008-08-13 Thread Jay Blanchard
[snip] 1.7763568394E-15 is 0. The computer just had a rounding error somewhere. We had this discussion a few weeks ago, the solution being to decide to what accuracy you want the answer. Upto 14 decimal places will give you 0 here!! I thought we had a different discussion a couple of weeks ago

[PHP] phpguru.org back up

2008-08-13 Thread Richard Heyes
Hi, You'll be pleased to know (I'm sure) that phpguru.org is back up and working (for the most part I would imagine). -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: A dumb question regarding sending email

2008-08-13 Thread Richard Heyes
NSW Australia North, South, West? Can't you make up your mind? :-) -- Richard Heyes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpguru.org back up

2008-08-13 Thread David Giragosian
On 8/13/08, Richard Heyes [EMAIL PROTECTED] wrote: Hi, You'll be pleased to know (I'm sure) that phpguru.org is back up and working (for the most part I would imagine). Congratulations, Richard. Server crashes, data loss, and downtime are concerns for all of us. --David.

Re: [PHP] Re: A dumb question regarding sending email

2008-08-13 Thread Ross McKay
On Wed, 13 Aug 2008 15:32:12 +0100, Richard Heyes wrote: NSW Australia North, South, West? Can't you make up your mind? :-) :) we move around a bit... though not so much for a while now! Good to see you backup. I mean, back up! (NSW is the state of New South Wales, on the East Coast of

Re: [PHP] More math fun

2008-08-13 Thread Jim Lucas
Jay Blanchard wrote: [snip] 1.7763568394E-15 is 0. The computer just had a rounding error somewhere. We had this discussion a few weeks ago, the solution being to decide to what accuracy you want the answer. Upto 14 decimal places will give you 0 here!! I thought we had a different

[PHP] Re: SOAP - return a list of items

2008-08-13 Thread Dan Joseph
Maybe more info will help: Here is what I have so far for the WSDL... xsd:complexType name=getQuoteHistory xsd:all xsd:element name=id type=xsd:string/ xsd:element name=key type=xsd:string/ xsd:element name=username type=xsd:string/

Re: [PHP] phpguru.org back up

2008-08-13 Thread Wolf
Richard Heyes [EMAIL PROTECTED] wrote: Hi, You'll be pleased to know (I'm sure) that phpguru.org is back up and working (for the most part I would imagine). Glad to hear it! So, which backup solution are you using? Or should I say which 12 backup solutions? ;) Wolf -- PHP

[PHP] Re: A dumb question regarding sending email

2008-08-13 Thread Jonesy
On Thu, 14 Aug 2008 00:47:39 +1000, Ross McKay wrote: On Wed, 13 Aug 2008 15:32:12 +0100, Richard Heyes wrote: NSW Australia North, South, West? Can't you make up your mind? :-) :) we move around a bit... though not so much for a while now! Good to see you backup. I mean, back up! (NSW is

Re: [PHP] phpguru.org back up

2008-08-13 Thread Richard Heyes
Congratulations, Richard. Server crashes, data loss, and downtime are concerns for all of us. Thanks. Fortunately I managed to get away with minimal data loss, and, unsurprisingly, I've now got backups. :-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List

Re: [PHP] phpguru.org back up

2008-08-13 Thread Richard Heyes
Really? It doesn't work for me. http://www.phpguru.org/ I'm getting the following : Unable to connect Firefox can't establish a connection to the server at www.phpguru.org. * The site could be temporarily unavailable or too busy. Try again in a few moments. * If

Re: [PHP] phpguru.org back up

2008-08-13 Thread Richard Heyes
So, which backup solution are you using? Or should I say which 12 backup solutions? ;) Lol. Not that sophisticated actually, trusty old tar and gzip, along with regular downloads to my desktop so that they're in two locations. -- Richard Heyes http://www.phpguru.org -- PHP General

Re: [PHP] Re: A dumb question regarding sending email

2008-08-13 Thread Richard Heyes
I'd've thought with Aussie, Southern Cross-oriented globes Charlaton. :-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpguru.org back up

2008-08-13 Thread Ashley M. Kirchner
Richard Heyes wrote: Lol. Not that sophisticated actually, trusty old tar and gzip, along with regular downloads to my desktop so that they're in two locations If I may suggest ... if you have a second system that doesn't have a big load, you can simply rsync the data from one to the other

Re: [PHP] phpguru.org back up

2008-08-13 Thread Wolf
Richard Heyes [EMAIL PROTECTED] wrote: So, which backup solution are you using? Or should I say which 12 backup solutions? ;) Lol. Not that sophisticated actually, trusty old tar and gzip, along with regular downloads to my desktop so that they're in two locations. Before I got

Re: [PHP] Re: A dumb question regarding sending email

2008-08-13 Thread Richard Heyes
Good to see you backup. I mean, back up! I think both would apply now... :-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpguru.org back up

2008-08-13 Thread Richard Heyes
And the forms are fully secured out. :) You think... ;-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpguru.org back up

2008-08-13 Thread Richard Heyes
If I may suggest ... if you have a second system that doesn't have a big load, you can simply rsync the data from one to the other every 24 hours or however many times you want. This way, when your primary system bites the dust, you can easily switch to the backup one and keep running while

Re: [PHP] phpguru.org back up

2008-08-13 Thread Stut
On 13 Aug 2008, at 17:26, Richard Heyes wrote: If I may suggest ... if you have a second system that doesn't have a big load, you can simply rsync the data from one to the other every 24 hours or however many times you want. This way, when your primary system bites the dust, you can

Re: [PHP] Re: A dumb question regarding sending email

2008-08-13 Thread tedd
At 12:47 AM +1000 8/14/08, Ross McKay wrote: On Wed, 13 Aug 2008 15:32:12 +0100, Richard Heyes wrote: NSW Australia North, South, West? Can't you make up your mind? :-) :) we move around a bit... though not so much for a while now! Good to see you backup. I mean, back up! (NSW is the

Re: [PHP] phpguru.org back up

2008-08-13 Thread Richard Heyes
but I've been using the service since it launched and have never had a problem. Out of interest, when was that? -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpguru.org back up

2008-08-13 Thread tedd
At 5:04 PM +0100 8/13/08, Richard Heyes wrote: Thanks. Fortunately I managed to get away with minimal data loss, and, unsurprisingly, I've now got backups. :-) -- Richard Heyes That's good to hear -- on both counts. Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] More math fun

2008-08-13 Thread Robert Cummings
On Wed, 2008-08-13 at 07:47 -0700, Jim Lucas wrote: Jay Blanchard wrote: [snip] 1.7763568394E-15 is 0. The computer just had a rounding error somewhere. We had this discussion a few weeks ago, the solution being to decide to what accuracy you want the answer. Upto 14 decimal places

Re: [PHP] If Column Exists

2008-08-13 Thread VamVan
Interesting. Thanks guys!! On Wed, Aug 13, 2008 at 1:32 AM, Robin Vickery [EMAIL PROTECTED] wrote: 2008/8/12 VamVan [EMAIL PROTECTED]: Hello, I am working on data migration for one mysql db to another using PHP. How do I check if a particular table has a particular column. If not

[PHP] Class diagram util

2008-08-13 Thread Christoph Boget
I'm curious, what utilities do you guys use, if any at all, to map out/diagram your classes? I'm looking for a decent (I don't really need a ton of bells and whistles) freeware app but my searches thus far have proven fruitless. thnx, Christoph -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] phpguru.org back up

2008-08-13 Thread Stut
On 13 Aug 2008, at 17:39, Richard Heyes wrote: but I've been using the service since it launched and have never had a problem. Out of interest, when was that? Now you're asking... I think it was around April 2006 but if I'm honest I can't remember. Prior to that I was using a hosting

Re: [PHP] Class diagram util

2008-08-13 Thread Nathan Nobbe
On Wed, Aug 13, 2008 at 11:33 AM, Christoph Boget [EMAIL PROTECTED] wrote: I'm curious, what utilities do you guys use, if any at all, to map out/diagram your classes? I'm looking for a decent (I don't really need a ton of bells and whistles) freeware app but my searches thus far have proven

[PHP] Re: regex

2008-08-13 Thread Philip Thompson
Figured it out. Just needed to stretch my brain a lil. On Aug 13, 2008, at 3:07 PM, Philip Thompson wrote: ?php function blegh ($subject) { // I know this pattern doesn't exactly work $pattern = '/(.*).php\?action=([^].*)/'; $pattern = '/(.*).php\?action=([^]+)+/'; preg_match

Re: [PHP] Re: regex

2008-08-13 Thread Micah Gersten
Take a look at this function, it'll make things a little easier: http://us3.php.net/manual/en/function.parse-str.php Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Philip Thompson wrote: Figured it out. Just needed to stretch my brain a lil. On Aug 13,

[PHP] regex

2008-08-13 Thread Philip Thompson
?php function blegh ($subject) { // I know this pattern doesn't exactly work $pattern = '/(.*).php\?action=([^].*)/'; preg_match ($pattern, $subject, $matches); return $matches; } blegh ('somePage.php?action=doSomethingid='); ? Ok, the important parts that I need to obtain from this

[PHP] Re: regex

2008-08-13 Thread Shawn McKenzie
Philip Thompson wrote: Figured it out. Just needed to stretch my brain a lil. On Aug 13, 2008, at 3:07 PM, Philip Thompson wrote: ?php function blegh ($subject) { // I know this pattern doesn't exactly work $pattern = '/(.*).php\?action=([^].*)/'; $pattern = '/(.*).php\?action=([^]+)+/';

RE: [PHP] Re: regex

2008-08-13 Thread Boyd, Todd M.
-Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 3:31 PM To: php-general@lists.php.net Subject: [PHP] Re: regex Philip Thompson wrote: Figured it out. Just needed to stretch my brain a lil. On Aug 13, 2008, at 3:07 PM, Philip

Re: [PHP] Re: regex

2008-08-13 Thread Philip Thompson
On Aug 13, 2008, at 3:31 PM, Shawn McKenzie wrote: Philip Thompson wrote: Figured it out. Just needed to stretch my brain a lil. On Aug 13, 2008, at 3:07 PM, Philip Thompson wrote: ?php function blegh ($subject) { // I know this pattern doesn't exactly work $pattern =

Re: [PHP] Re: regex

2008-08-13 Thread Philip Thompson
On Aug 13, 2008, at 4:06 PM, Boyd, Todd M. wrote: -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 3:31 PM To: php-general@lists.php.net Subject: [PHP] Re: regex Philip Thompson wrote: Figured it out. Just needed to stretch my brain a

[PHP] Re: A dumb question regarding sending email

2008-08-13 Thread Ross McKay
On Wed, 13 Aug 2008 15:46:47 + (UTC), Jonesy wrote: I'd've thought with Aussie, Southern Cross-oriented globes, it would be to the _right_ of Kalifornia and _up_ a bit. Yes, but I was translating from Strine to Wronglish for the North Americans ;) -- Ross McKay, Toronto, NSW Australia I

[PHP] On one of my computers, php can't see an external javascript I included

2008-08-13 Thread googling1000
I have apache and php on Windows. I have 3 computers. A php file is calling an external .js file. Two of my computers have no problem calling a .js file, there's only one machine that doesn't execute functions inside of the .js file. My .php file has the following line in the beginning of the