Re: [PHP] convert a string into an array

2010-04-09 Thread Rene Veerman
On Mon, Apr 5, 2010 at 4:09 PM, Ashley Sheridan wrote: > On Mon, 2010-04-05 at 05:53 +0100, Nathan Rixham wrote: > > you sure you're only smoking cigarettes? > > has to be one of the most random replies to any php thread I've ever > seen - awesome! > > regards > > Rene Veerman wrote: > > yea i'

Re: [PHP] convert a string into an array

2010-04-09 Thread Rene Veerman
it's about telepathy. mass-telepathy ;) telepathic pressure. death threats through telepathy, of which i've had quite a few in past weeks.. fear begets fear begets disease... but thanks for the compliment ;) On Mon, Apr 5, 2010 at 6:53 AM, Nathan Rixham wrote: > you sure you're only smoking ci

Re: [PHP] 404 redirects "stolen" by provider

2010-04-09 Thread kranthi
header('HTTP/1.1 200 Ok'); in /subapp_members/search_user.php will do the job -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] another "useless" message.

2010-04-09 Thread Rene Veerman
On Sat, Apr 10, 2010 at 12:08 AM, Rene Veerman wrote: > On Fri, Apr 9, 2010 at 3:49 PM, Dan Joseph wrote: >> On Fri, Apr 9, 2010 at 6:28 AM, Peter Lind wrote: >> >>> That said, there can be little doubt that the response you got went a >>> tad too far - some netiquette lessons would be useful, I

Re: [PHP] another "useless" message.

2010-04-09 Thread Rene Veerman
On Fri, Apr 9, 2010 at 3:49 PM, Dan Joseph wrote: > On Fri, Apr 9, 2010 at 6:28 AM, Peter Lind wrote: > >> That said, there can be little doubt that the response you got went a >> tad too far - some netiquette lessons would be useful, I think. >> >> > > In defense of the people that react harshly

Re: [PHP] another "useless" message.

2010-04-09 Thread Rene Veerman
ok, you're right, of course. me posting that was not just about "another plug for htmlmicroscope". there were other, secret, considerations, that led me to post that. --!! but i hereby promise to really try to use only bottom-posting replies and cut-out-posting replies on this list in winter tim

[PHP] Re: APC with horde/imp: 99.9% miss rate and only one cached file

2010-04-09 Thread Derek Chen-Becker
Well, downgrading APC from 3.1.3b1 to 3.0.19 fixed it. Working great now! On 04/08/2010 02:21 PM, Derek Chen-Becker wrote: > I suspect I've either done something horribly wrong or found a weird > bug, probably the former. I'm running PHP 5.2.13 on Solaris 10 under > Apache 2.2.14. Memory usage is

Re: [PHP] 404 redirects "stolen" by provider

2010-04-09 Thread Peter Lind
On 9 April 2010 23:08, Merlin Morgenstern wrote: > > Am 09.04.2010 22:58, schrieb Peter Lind: >> >> On 9 April 2010 22:20, Merlin Morgenstern  wrote: >> >>> >>> This sounds like the best solution to me. The only problem is that my >>> regex >>> knowledge is pretty limited. The command: >>> Rewrite

Re: [PHP] 404 redirects "stolen" by provider

2010-04-09 Thread Merlin Morgenstern
Am 09.04.2010 22:58, schrieb Peter Lind: On 9 April 2010 22:20, Merlin Morgenstern wrote: This sounds like the best solution to me. The only problem is that my regex knowledge is pretty limited. The command: RewriteRule ^(.+) /subapp_members/search_user.php The above rule will try

Re: [PHP] 404 redirects "stolen" by provider

2010-04-09 Thread Peter Lind
On 9 April 2010 22:20, Merlin Morgenstern wrote: > This sounds like the best solution to me. The only problem is that my regex > knowledge is pretty limited. The command: > RewriteRule ^(.+) /subapp_members/search_user.php > The above rule will try to redirect everything to /subapp_members/search

Re: [PHP] 404 redirects "stolen" by provider

2010-04-09 Thread Merlin Morgenstern
Am 09.04.2010 21:53, schrieb Ashley Sheridan: On Fri, 2010-04-09 at 21:29 +0200, Merlin Morgenstern wrote: Hello, I am running a website under apache and php where I do redirects on 404 errors: apache conf: ErrorDocument 404 /subapp_members/search_user.php This is done to allow ULRs with use

Re: [PHP] Re: 404 redirects "stolen" by provider

2010-04-09 Thread Ashley Sheridan
On Fri, 2010-04-09 at 21:03 +0100, Nathan Rixham wrote: > Merlin Morgenstern wrote: > > Hello, > > > > I am running a website under apache and php where I do redirects on 404 > > errors: > > > > apache conf: > > ErrorDocument 404 /subapp_members/search_user.php > > > > This is done to allow ULR

Re: [PHP] Zend DB Table - WHERE as OR?

2010-04-09 Thread Andrew Ballard
On Fri, Apr 9, 2010 at 3:15 PM, Dan Joseph wrote: > Hi Everyone, > > I'm trying to figure out if something is even an option with the Zend > Framework.  We use the DB Table stuff.  I don't see it in the manual, so I > figured I'd ask you all... > > I have: > > $select = $table->select()->where( "h

[PHP] Re: 404 redirects "stolen" by provider

2010-04-09 Thread Nathan Rixham
Merlin Morgenstern wrote: > Hello, > > I am running a website under apache and php where I do redirects on 404 > errors: > > apache conf: > ErrorDocument 404 /subapp_members/search_user.php > > This is done to allow ULRs with usernames like this: > www.server.com/username > > The PHP script sea

Re: [PHP] 404 redirects "stolen" by provider

2010-04-09 Thread Andrew Ballard
On Fri, Apr 9, 2010 at 3:29 PM, Merlin Morgenstern wrote: > Hello, > > I am running a website under apache and php where I do redirects on 404 > errors: > > apache conf: > ErrorDocument 404 /subapp_members/search_user.php > > This is done to allow ULRs with usernames like this: > www.server.com/us

Re: [PHP] 404 redirects "stolen" by provider

2010-04-09 Thread Ashley Sheridan
On Fri, 2010-04-09 at 21:29 +0200, Merlin Morgenstern wrote: > Hello, > > I am running a website under apache and php where I do redirects on 404 > errors: > > apache conf: > ErrorDocument 404 /subapp_members/search_user.php > > This is done to allow ULRs with usernames like this: > www.server

Re: [PHP] No notices for undefined index

2010-04-09 Thread Ashley Sheridan
On Fri, 2010-04-09 at 14:15 +0100, Nathan Rixham wrote: > Ashley Sheridan wrote: > > can't find anything in the manual that explains what should happen when > > you treat a string like an array in PHP. > > http://www.php.net/manual/en/language.types.string.php#language.types.string.substr > > :

[PHP] 404 redirects "stolen" by provider

2010-04-09 Thread Merlin Morgenstern
Hello, I am running a website under apache and php where I do redirects on 404 errors: apache conf: ErrorDocument 404 /subapp_members/search_user.php This is done to allow ULRs with usernames like this: www.server.com/username The PHP script search_user.php looks in a db if the user name is

Re: [PHP] Zend DB Table - WHERE as OR?

2010-04-09 Thread Dan Joseph
On Fri, Apr 9, 2010 at 3:25 PM, Andrew Ballard wrote: > Try this: > > $select = $table->select()->where( "home_team_id = ?", $home_team_id ) > ->orWhere( "away_team_id = ?", > $away_team_id ); > > Perfect...thank you! -- -Dan Joseph www.canishosting.com - Unlim

[PHP] Zend DB Table - WHERE as OR?

2010-04-09 Thread Dan Joseph
Hi Everyone, I'm trying to figure out if something is even an option with the Zend Framework. We use the DB Table stuff. I don't see it in the manual, so I figured I'd ask you all... I have: $select = $table->select()->where( "home_team_id = ?", $home_team_id )

Re: [PHP] Sort two coupled arrays [my solution]

2010-04-09 Thread Robert Cummings
tedd wrote: Rob: You're never confused because you are always right. I should have you mention this to my wife... I'll provide the helmet >:) Congrats, you were the first to solve this problem this simply. To tell the truth, I didn't fully understand how array_multisort() worked until I re

Re: [PHP] another "useless" message.

2010-04-09 Thread Dan Joseph
On Fri, Apr 9, 2010 at 6:28 AM, Peter Lind wrote: > That said, there can be little doubt that the response you got went a > tad too far - some netiquette lessons would be useful, I think. > > In defense of the people that react harshly, there has been a lot of people who just spam the list over

Re: [PHP] Sort two coupled arrays [my solution]

2010-04-09 Thread tedd
At 10:26 AM -0400 4/8/10, Robert Cummings wrote: tedd wrote: At 8:28 AM -0400 4/8/10, Andrew Ballard wrote: On Wed, Apr 7, 2010 at 6:46 PM, Ryan Sun wrote: > rsort(array_combine(array2, array1)); you should expect array( 'Personal Email' => 75, 'USPS mail' => 40, 'Personal Phone' =

Re: [PHP] No notices for undefined index

2010-04-09 Thread Nathan Rixham
Ashley Sheridan wrote: > can't find anything in the manual that explains what should happen when > you treat a string like an array in PHP. http://www.php.net/manual/en/language.types.string.php#language.types.string.substr :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

RE: [PHP] Forgot what to install

2010-04-09 Thread Bob McConnell
From: David McGlone > On Fri, 2010-04-09 at 08:37 +0530, kranthi wrote: >> you forgot httpd >> KK. >> >> On Fri, Apr 9, 2010 at 08:32, David McGlone wrote: >> > Hey guys, quick question. I had to re-install my Ubuntu, and I forgot >> > what package I needed so firefox will display the php files

Re: [PHP] Forgot what to install

2010-04-09 Thread David McGlone
On Fri, 2010-04-09 at 08:37 +0530, kranthi wrote: > you forgot httpd > KK. > > > > On Fri, Apr 9, 2010 at 08:32, David McGlone wrote: > > Hey guys, quick question. I had to re-install my Ubuntu, and I forgot > > what package I needed so firefox will display the php files and not ask > > me to i

RE: [PHP] No notices for undefined index

2010-04-09 Thread Bob McConnell
From: Shawn McKenzie > Bob McConnell wrote: >> In the first case, $a=5 creates a multi-typed variable. The interpreter >> makes its best guess how the next two expressions should be interpreted. >> In both cases, they look a lot like an index into a character array >> (string), and 'test' evaluate

Re: [PHP] another "useless" message.

2010-04-09 Thread Peter Lind
On 9 April 2010 12:20, Rene Veerman wrote: > lolz :)) u try to be nice, and this is what u get?!?! :-D > Rene, it's nice of you to post messages on the availability of some OS tools. However, you should also be aware that it's a minority of people on this list that use those tools - which in

Re: [PHP] another "useless" message.

2010-04-09 Thread Rene Veerman
lolz :)) u try to be nice, and this is what u get?!?! :-D On Fri, Apr 9, 2010 at 11:52 AM, Nilesh Govindarajan wrote: > Somebody ban this person. He/she is creating nuisance here. ^) > > -- > Nilesh Govindarajan > Site & Server Administrator > www.itech7.com > मेरा भारत महान ! > मम भारत: महत

Re: [PHP] another "useless" message.

2010-04-09 Thread Nilesh Govindarajan
Somebody ban this person. He/she is creating nuisance here. ^) -- Nilesh Govindarajan Site & Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Beginner's question: How to run a PHP web application locally?

2010-04-09 Thread Rene Veerman
cmon, just search for "ubuntu install lamp" via google.. or google for "download ubuntu", select the stable branch (karmic), install it, and then type this into a terminal window: sudo apt-get install apache2 mysql5 php5 from there, running LAMP development on linux should be a breeze for you.

Re: [PHP] No notices for undefined index

2010-04-09 Thread Ashley Sheridan
On Fri, 2010-04-09 at 07:52 +0530, kranthi wrote: > >> print $a[0]; // prints 5 > >> print $a[100]; // Notice: Uninitialized string offset: 100 > Yup, this should happen when 5 is treated as an array of characters. > In other words as a string. > $a = '5'; > echo $a[0]; > echo $a[100]; > gives

[PHP] Sending e-mail through an SMTP with authentification

2010-04-09 Thread Andre Polykanine
Hello everyone, Sorry, don't remember who exactly needed this functionality. My class is finally ready and approved by the site admins) http://www.phpclasses.org/package/6128 -- With best regards from Ukraine, Andre Http://oire.org/ - The Fantasy blogs of Oire Skype: Francophile; Wlm&MSN: arthael

[PHP] another "useless" message.

2010-04-09 Thread Rene Veerman
Service Announcement :)) htmlMicroscope on http://mediabeez.ws/ is down because of technical difficulties, not-related to the body of the owner of the machine that runs mediabeez.ws atm. That mediabeez.ws runs on a home PC (ubuntu karmic), but i'm away from home atm, travelling around, and the thi