[PHP] Issues with MySQL connectivity ... on only one machine, and for a while now

2009-10-25 Thread Michael Shadle
Oct 25 22:00:01 sql02 php: PHP Warning: mysqli_connect(): (HY000/2013): Lost connection to MySQL server at 'sending authentication information', system error: 32 in /home/foo/web/foo.com/core.php on line 2394 It's either this or one or two others. What is odd is I have switched to making it socke

Re: [PHP] getcsv error

2009-10-25 Thread Steve
Brian Hazelton wrote: Brian Hazelton wrote: Brian Hazelton wrote: I have a script which uploads csv data into a database. This works well and has worked in every instance so far. However what I am noticing is that today, even if I escape the data before putting it into mysql it will not enter

Re: [PHP] RewriteRule to hide PHP vars in URL

2009-10-25 Thread kranthi
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#RewriteCond

Re: [PHP] getcsv error

2009-10-25 Thread Brian Hazelton
Brian Hazelton wrote: Brian Hazelton wrote: I have a script which uploads csv data into a database. This works well and has worked in every instance so far. However what I am noticing is that today, even if I escape the data before putting it into mysql it will not enter a line if it has a sin

Re: [PHP] getcsv error

2009-10-25 Thread Brian Hazelton
Brian Hazelton wrote: I have a script which uploads csv data into a database. This works well and has worked in every instance so far. However what I am noticing is that today, even if I escape the data before putting it into mysql it will not enter a line if it has a single quote, once I take

[PHP] getcsv error

2009-10-25 Thread Brian Hazelton
I have a script which uploads csv data into a database. This works well and has worked in every instance so far. However what I am noticing is that today, even if I escape the data before putting it into mysql it will not enter a line if it has a single quote, once I take out the single quote i

[PHP] Re: how to replace many spaces with one space?

2009-10-25 Thread Al
Jeffry Lunggot wrote: Hi, how to replace many spaces in any string of character with one space? Regrads Be careful about the word "spaces" do you mean exactly " "; or white spaces defined by "\s", which include spaces, tabs CRLFs. If you want specifically spaces and not all white spac

Re: [PHP] RewriteRule to hide PHP vars in URL

2009-10-25 Thread דניאל דנון
As Ashley said, its the wrong way to approach this problem. I suggest you read about "base href". (http://."; /> ) it is a HTML tag. On Sun, Oct 25, 2009 at 6:51 PM, Rob Gould wrote: > Isn't there a way to tell the Rewrite rule to skip anything found in a js > or images subfolder? > > > >

[PHP] strange issue with PHP $basename, first character in filename missing (FreeBSD)

2009-10-25 Thread Per olof Ljungmark
Sorry for the long post but this problem have plagued us for a few months and we suspect that this is a OS-specific issue with FreeBSD/PHP, AFAICS it has not been reported from the Linux camp. I'm posting here in the hope that someone on this list might have a clue. In brief, intermittently, the

Re: [PHP] RewriteRule to hide PHP vars in URL

2009-10-25 Thread Ashley Sheridan
On Sun, 2009-10-25 at 12:51 -0400, Rob Gould wrote: > Isn't there a way to tell the Rewrite rule to skip anything found in a > js or images subfolder? > > > On Oct 25, 2009, at 12:26 PM, Ashley Sheridan wrote: > > > On Sun, 2009-10-25 at 11:04 -0400, Rob Gould wrote: > >> > >> I'm trying to f

Re: [PHP] RewriteRule to hide PHP vars in URL

2009-10-25 Thread Rob Gould
Isn't there a way to tell the Rewrite rule to skip anything found in a js or images subfolder? On Oct 25, 2009, at 12:26 PM, Ashley Sheridan wrote: On Sun, 2009-10-25 at 11:04 -0400, Rob Gould wrote: I'm trying to follow the RewriteRule docs to make it so that: http://benchwarmersports.

[PHP] [SOLVED] Re: [PHP] cannot compile PHP 5.2.11 on Mac OS X 10.6.1

2009-10-25 Thread Mari Masuda
Hi, So I found out there are two bugs filed in bugs.php.net that are related to this problem. The bugs are http://bugs.php.net/bug.php?id=49332and http://bugs.php.net/bug.php?id=49267. To anyone else that has the same issues as me, here is how to get around the problem if you are trying

Re: [PHP] how to replace many spaces with one space?

2009-10-25 Thread Ashley Sheridan
On Sun, 2009-10-25 at 16:59 +0100, David Otton wrote: > 2009/10/25 Jeffry Lunggot : > > Hi, > > > > how to replace many spaces in any string of character with one space? > > $str = preg_replace('/\s\s+/', ' ', $str); > $str = preg_replace('/\s+/', ' ', $str); You don't need both space charac

Re: [PHP] RewriteRule to hide PHP vars in URL

2009-10-25 Thread Ashley Sheridan
On Sun, 2009-10-25 at 11:04 -0400, Rob Gould wrote: > I'm trying to follow the RewriteRule docs to make it so that: > > http://benchwarmersports.com/packages/super-bowl-xliv/1 > > can be entered into the web-browser, and it transforms into: > > http://benchwarmersports.com/packages.php?title=

Re: [PHP] how to replace many spaces with one space?

2009-10-25 Thread David Otton
2009/10/25 Jeffry Lunggot : > Hi, > > how to replace many spaces in any string of character with  one space? $str = preg_replace('/\s\s+/', ' ', $str); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to Get the Sub Classes of a Parent Class

2009-10-25 Thread David Otton
2009/10/25 Raymond Irving : > I want to automatically initialize a specific sub class when the php page is > loaded. > > I'm looking for a solution for php 5.1+ or anything that's optimized for 5.3 You may be able solve this with a simple class_exists() (pseudo-code ahead): if(class_exists($var

[PHP] how to replace many spaces with one space?

2009-10-25 Thread Jeffry Lunggot
Hi, how to replace many spaces in any string of character with one space? Regrads -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RewriteRule to hide PHP vars in URL

2009-10-25 Thread Rob Gould
I'm trying to follow the RewriteRule docs to make it so that: http://benchwarmersports.com/packages/super-bowl-xliv/1 can be entered into the web-browser, and it transforms into: http://benchwarmersports.com/packages.php?title=super-bowl-xliv&eventid=1 The good news is that it does transform

Re: [PHP] How to Get the Sub Classes of a Parent Class

2009-10-25 Thread Raymond Irving
I want to automatically initialize a specific sub class when the php page is loaded. I'm looking for a solution for php 5.1+ or anything that's optimized for 5.3 From: David Otton To: Raymond Irving Cc: php-general@lists.php.net Sent: Sun, October 25, 2009 8

Re: [PHP] How to Get the Sub Classes of a Parent Class

2009-10-25 Thread David Otton
2009/10/25 Raymond Irving : > Hello, > > Does any know of an optimized solution to get all the subclasses for a parent > class? That's not exactly a typical thing to want, although I can see a couple of ways to do it... what exactly are you trying to do, and are you using PHP5.3? -- PHP Genera