php-general Digest 25 Oct 2009 13:44:45 -0000 Issue 6409

2009-10-25 Thread php-general-digest-help
php-general Digest 25 Oct 2009 13:44:45 - Issue 6409 Topics (messages 299308 through 299315): Re: php mail() function 299308 by: Per olof Ljungmark 299313 by: James Prentice 299314 by: James Prentice cannot compile PHP 5.2.11 on Mac OS X 10.6.1 299309 by:

php-general Digest 26 Oct 2009 02:17:20 -0000 Issue 6410

2009-10-25 Thread php-general-digest-help
php-general Digest 26 Oct 2009 02:17:20 - Issue 6410 Topics (messages 299316 through 299332): Re: How to Get the Sub Classes of a Parent Class 299316 by: Raymond Irving 299319 by: David Otton RewriteRule to hide PHP vars in URL 299317 by: Rob Gould 299321

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

2009-10-25 Thread David Otton
2009/10/25 Raymond Irving xwis...@yahoo.com: 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?

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 phpm...@jawbone.freeserve.co.uk To: Raymond Irving xwis...@yahoo.com Cc:

[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-xliveventid=1 The good news is that it does transform

[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

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

2009-10-25 Thread David Otton
2009/10/25 Raymond Irving xwis...@yahoo.com: 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):

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

2009-10-25 Thread David Otton
2009/10/25 Jeffry Lunggot jef...@rogon.com.my: 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] 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:

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 jef...@rogon.com.my: 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

[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] 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:

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 follow the

[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 דניאל דנון
As Ashley said, its the wrong way to approach this problem. I suggest you read about base href. (base href=http://.; / ) it is a HTML tag. On Sun, Oct 25, 2009 at 6:51 PM, Rob Gould gould...@me.com wrote: Isn't there a way to tell the Rewrite rule to skip anything found in a js or images

[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 spaces,

[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

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

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

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

2009-10-25 Thread kranthi
base will just complicate things... (its sure to solve your problems but you have to type the relative path to your document root for every URI) seems you are looking for http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#RewriteCond

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