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 - 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
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
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
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
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
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
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
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
[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
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
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
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.
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/)
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
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
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
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
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
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=([^]+)+/';
-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
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 =
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
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
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
45 matches
Mail list logo