Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-08-20 Thread Robert Cummings
On 12-08-21 01:11 AM, Robert Cummings wrote: On 12-08-21 12:32 AM, John Taylor-Johnston wrote: This is usually a first-year CS programming problem (word frequency counts) complicated a little bit by needing to extract the text. You've started off fine, stripping tags, converting to lower case

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-08-20 Thread Robert Cummings
On 12-08-21 12:32 AM, John Taylor-Johnston wrote: This is usually a first-year CS programming problem (word frequency counts) complicated a little bit by needing to extract the text. You've started off fine, stripping tags, converting to lower case, you'll want to either convert or strip HTML

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-08-20 Thread John Taylor-Johnston
This is usually a first-year CS programming problem (word frequency counts) complicated a little bit by needing to extract the text. You've started off fine, stripping tags, converting to lower case, you'll want to either convert or strip HTML entities as well, deciding what you want to do with

Re: [PHP] mysqlnd and mysqli as shared extensions?

2012-08-20 Thread David OBrien
On Mon, Aug 20, 2012 at 10:20 AM, Lester Caine wrote: > Can mysqlnd be built as a shared module? > > make test is telling me the resulting .so is not a valid > "Warning: PHP Startup: Invalid library (maybe not a PHP library) > 'mysqlnd.so' in Unknown on line 0" > > I'm still on PHP5.4.3 on that m

[PHP] mysqlnd and mysqli as shared extensions?

2012-08-20 Thread Lester Caine
Can mysqlnd be built as a shared module? make test is telling me the resulting .so is not a valid "Warning: PHP Startup: Invalid library (maybe not a PHP library) 'mysqlnd.so' in Unknown on line 0" I'm still on PHP5.4.3 on that machine as I've not had time to upgrade as yet. It's running my o

Re: [PHP] Crash course

2012-08-20 Thread Lester Caine
admin wrote: First of all, I HIGHLY doubt that 1and1 AKA Cisco messed up the DNS. I would be very careful blaming them and publically announcing it. We can publish the list of sites that were unavailable for 48 hours. It was the last straw for the customer as this was not the first occasion it h

Re: [PHP] Cost of redirect and site domain switch? Good Practice/ Bad Practice / Terrible Practice

2012-08-20 Thread Sebastian Krebs
2012/8/20 Jim Giner > > On 8/20/2012 12:19 AM, Jim Lucas wrote: > >> On 8/17/2012 6:35 PM, Jim Giner wrote: >> >>> On 8/17/2012 7:16 PM, Jim Lucas wrote: >>> You could simply remove all full domain+path URL links and replace them with absolute path urls only. turn h

RE: [PHP] Crash course

2012-08-20 Thread admin
-Original Message- From: Lester Caine [mailto:les...@lsces.co.uk] Sent: Monday, August 20, 2012 6:52 AM To: php-general@lists.php.net Subject: [PHP] Crash course OK - MySQL is not an area I've had to bother with, but I'm trying to sort out a tranche of websites that 1&1 messed up the DNS

Re: [PHP] Cost of redirect and site domain switch? Good Practice/ Bad Practice / Terrible Practice

2012-08-20 Thread Jim Giner
On 8/20/2012 12:19 AM, Jim Lucas wrote: On 8/17/2012 6:35 PM, Jim Giner wrote: On 8/17/2012 7:16 PM, Jim Lucas wrote: You could simply remove all full domain+path URL links and replace them with absolute path urls only. turn http://www.somedomain.com/path/to/my/webpage.html into /path/to/my

Re: [PHP] Display Array Tree as Menu - Can't figure out how to finddepth with something over 2 levels : ANSWERED

2012-08-20 Thread Maciek Sokolewicz
On 16-08-2012 20:28, Tristan wrote: Thanks for all your help. The answer was so simple in the end. Thanks Tim for clearing that up!!! Perfect little script now for creating navigation. Just feed it an array like posted at the bottom of this message. function createTree(&$list, $parent){ gl

Re: [PHP] Crash course

2012-08-20 Thread Lester Caine
Simon Schick wrote: Hi, Lester I know how you feel ... I didn't want to disable E_STRICT either, but as most of those errors come from the Joomla-Core or some extensions, I don't have the nerves to fix code that's not mine and the developer just says "aaa ... those E_STRICTs ... why do you even

Re: [PHP] Crash course

2012-08-20 Thread Simon Schick
Hi, Lester I know how you feel ... I didn't want to disable E_STRICT either, but as most of those errors come from the Joomla-Core or some extensions, I don't have the nerves to fix code that's not mine and the developer just says "aaa ... those E_STRICTs ... why do you even care ...". Therefore

Re: [PHP] Crash course

2012-08-20 Thread Lester Caine
Simon Schick wrote: Just try to connect to your mysqlserver using a simple php script first. Actually my next step was to try phpMyAdmin ;) Having created a new user with the correct rights it just worked out of the box. I was simply trying to use 'root' just to get going, but it seems that i

Re: [PHP] Crash course

2012-08-20 Thread Simon Schick
Hi, Lester Just try to connect to your mysqlserver using a simple php script first. Example for MySqli: http://www.php.net/manual/en/mysqli.construct.php#example-1625 Example for MySql: http://www.php.net/manual/en/function.mysql-connect.php#refsect1-function.mysql-connect-examples If you still

[PHP] Crash course

2012-08-20 Thread Lester Caine
OK - MySQL is not an area I've had to bother with, but I'm trying to sort out a tranche of websites that 1&1 messed up the DNS on last week and we have take over support for. All the databases have backed up and been restored ... although after Firebird's backup and restore system having to dump

RE: [PHP] How do I do count the occurrence of each word?

2012-08-20 Thread Ford, Mike
> -Original Message- > From: Marco Behnke [mailto:ma...@behnke.biz] > Sent: 19 August 2012 06:39 > To: php-general@lists.php.net > Subject: Re: [PHP] How do I do count the occurrence of each word? > > Am 19.08.12 06:59, schrieb tamouse mailing lists: > > On Sat, Aug 18, 2012 at 6:44 PM, Jo

[PHP] [PHP-DEV] Separate apc-caches for each fpm-pool

2012-08-20 Thread Simon Schick
Hi, all Not to get the bugfix https://bugs.php.net/bug.php?id=57825 too much off-topic, I write this question in the mailinglist here: Taking the case I have two fpm-pools on different sockets - the first pool is responsible for www.example1.com and the second one for www.example2.com. If www.ex

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-20 Thread Lester Caine
l...@afan.net wrote: Special points for me are (not a must, though) - multiple websites with single core (both CMSs have the capability but I got impression Drupal does it better?) because of maintenance - compatibility with CiviCRM There are a lot more than just Drupal and WordPress and as oth

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-20 Thread Simon Schick
Hi, all +1 for that Joomla sucks ... worked with it for a while and just got more and more disappointed of the way they write stuff. Just look at how complicate it is to write an extension ... Just a bit off-toppic (since you're talking about WP vs Drupal), but I use Wordpress for small blogs and

[PHP] Re: Need Help in Yaf spreading

2012-08-20 Thread Laruence
CC to php-general. thanks On Mon, Aug 20, 2012 at 4:06 PM, Laruence wrote: > Hi: > Yaf (http://pecl.php.net/yaf) is a PHP MVC framework, which is > build as a PHP extension. > > It could be considered as the fastest PHP framework for > now(http://www.laruence.com/2011/12/02/2333.html),