Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-22 Thread Stefan Wixfort
On 22.12.2012 00:31, Bastien wrote: On 2012-12-21, at 5:05 PM, Ken Robinson kenrb...@rbnsn.com wrote: A much easier way to do this would be to use a temporary array and then explode: $tmp = array(); while($row = mysql_fetch_array($result)) // pulling stuff from a database

Re: [PHP] Friday - Return of Brain Teasers

2012-10-06 Thread Stefan Wixfort
On 06.10.2012 03:08, Tamara Temple wrote: On Fri, 2012-10-05 at 22:50 +0200, iostream wrote: If you want to execute some code... I'm sure you've all heard of the new goes to operator by now, but I hope it might be new to somebody. $i = 10; while ($i -- 0) { // while $i goes to 0

Re: [PHP] Need help to understand a code

2012-09-22 Thread Stefan Wixfort
On 22.09.2012 12:34, Ashickur Rahman Noor wrote: Hi all I need some help to understand a code. The code is like this $result = mysql_query($sSQL) or die(err: . mysql_error().$sSQL); if($row = mysql_fetch_array($result)) { foreach($row as $key =$value){

Re: [PHP] What's happened to our newsgroup?

2012-06-26 Thread Stefan Wixfort
On 26.06.2012 23:48, Simon J Welsh wrote: On 27/06/2012, at 9:45 AM, Daniel Brown wrote: On Tue, Jun 26, 2012 at 5:42 PM, Matijn Woudt tijn...@gmail.com wrote: Isn't everyday friday in summer? ;) If it is, then it could be argued that every day is a Monday in winter --- and right now,

RE: [PHP] Parse domain from URL

2007-06-06 Thread Stefan Wixfort
From: Brad Fuller [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 5:44 PM Subject: [PHP] Parse domain from URL Hey guys, I'm faced with an interesting problem, and wondering if there's an easy solution. I need to strip out a domain name from a URL, and ignore subdomains