[PHP] php.net down?

2009-07-16 Thread Thijs Lensselink
Anybody noticed php.net is down? It's responding to pings. But no pages load. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.net down?

2009-07-16 Thread Tom Chubb
2009/7/16 Thijs Lensselink > Anybody noticed php.net is down? > > It's responding to pings. But no pages load. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > UK servers are working: uk2.php.net

Re: [PHP] php.net down?

2009-07-16 Thread Ashley Sheridan
On Thursday 16 July 2009 11:30:52 Thijs Lensselink wrote: > Anybody noticed php.net is down? > > It's responding to pings. But no pages load. I thought it was just me, guess not! What are we going to do?! -- Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.p

Re: [PHP] php.net down?

2009-07-16 Thread muzy
Yeah noticed this fact also, try one mirror for example us.php.net or de.php.net There are also a lot of other mirrors ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.net down?

2009-07-16 Thread muzy
Hmm, I thought it was just me, guess not! What are we going to do?! regarding to this question we should use the mirrors provided until this problem is solved ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Exception not being caught

2009-07-16 Thread David Otton
2009/7/15 Weston C : > > class A { } > > $a = new A();                           // Ayn would be proud, right? > > try { >    echo "a is ",$a,"\n"; > } catch(Exception $e) { >    echo "\nException Caught: "; >    echo $e, $n; > } > > ?> > > This does not run as expected. I'd think that when the i

[PHP] Re: php.net down?

2009-07-16 Thread Carlos Medina
Thijs Lensselink schrieb: Anybody noticed php.net is down? It's responding to pings. But no pages load. no -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sub Menu System?

2009-07-16 Thread David Stoltz
Folks, I'm developing a rather large site in PHP. The main horizontal nav bar never changes, no matter how deep you are in the site. However, on the left side is a vertical "sub-menu" system. This menu is proving to be a real pain to program. I have it limited the menu system to 3 levels: MAIN:

Re: [PHP] Alphabetical pagination (RESOLVED)

2009-07-16 Thread Miller, Terion
Here is what finally worked: '; foreach(range('A','Z') as $c){ ($letter == $c) ? printf('%s ',$c)

Re: [PHP] Exception not being caught

2009-07-16 Thread Martin Scotta
There are many examples of error_handlers at http://ar.php.net/manual/es/function.set-error-handler.php The handler only have to cast the error to exception. YOu can write a simple handler or a fully featured one, but the essence is the same... function errorHandler(/*args*/) { $e = new Exce

Re: [PHP] Sub Menu System?

2009-07-16 Thread Martin Scotta
you can make the menu based on the files. Open the directory, read the files and save some sort of "cache" that use the site. When you need to move something, just delete the "cache" an let php do the rest. On Thu, Jul 16, 2009 at 9:55 AM, David Stoltz wrote: > Folks, > > I'm developing a rathe

Re: [PHP] Scope of Variables and use of global and this->var

2009-07-16 Thread Govinda
On Jul 15, 2009, at 3:28 PM, tedd wrote: My way -- every time I open a database, I do so by including the configuration.php file that holds the logon/password et other data to connect with the database. When I'm done with what I want from the database, I close it. If one does not close i

Re: [PHP] Scope of Variables and use of global and this->var

2009-07-16 Thread Eddie Drapkin
On Thu, Jul 16, 2009 at 9:53 AM, Govinda wrote: > > On Jul 15, 2009, at 3:28 PM, tedd wrote: > >> My way -- every time I open a database, I do so by including the >> configuration.php file that holds the logon/password et other data to >> connect with the database. When I'm done with what I want fr

Re: [PHP] Alphabetical pagination (RESOLVED)

2009-07-16 Thread Andrew Ballard
On Thu, Jul 16, 2009 at 9:33 AM, Miller, Terion wrote: > > Here is what finally worked: > >     isset($_GET['letter']) ? $_GET['letter'] : "A";                               >                          //alphabetical pagination links                       >                                  echo '

Re: [PHP] Exception not being caught

2009-07-16 Thread Weston C
On Thu, Jul 16, 2009 at 7:42 AM, David Otton wrote: >> If it's catchable, why isn't it caught in my example? > > It's not an exception, it's a "fatal error". Fatal errors are caught > by error handling functions, not by catch blocks. > > Consequence of having (at least) two separate error handling

Re: [PHP] Alphabetical pagination (RESOLVED)

2009-07-16 Thread Martin Scotta
On Thu, Jul 16, 2009 at 11:01 AM, Andrew Ballard wrote: > On Thu, Jul 16, 2009 at 9:33 AM, Miller, > Terion wrote: > > > > Here is what finally worked: > > > > = isset($_GET['letter']) ? $_GET['letter'] : "A"; > //alphabetical pagination links >

Re: [PHP] Alphabetical pagination (RESOLVED)

2009-07-16 Thread Miller, Terion
One question I still have...I had help with this script of course and I'm confused with the %s what does it do? On 7/16/09 9:53 AM, "Martin Scotta" wrote: On Thu, Jul 16, 2009 at 11:01 AM, Andrew Ballard wrote: On Thu, Jul 16, 2009 at 9:33 AM, Miller, Terion wrote: > > Here is what finally w

Re: [PHP] Alphabetical pagination (RESOLVED)

2009-07-16 Thread Martin Scotta
On Thu, Jul 16, 2009 at 12:01 PM, Miller, Terion < tmil...@springfi.gannett.com> wrote: > > One question I still have...I had help with this script of course and I'm > confused with the %s what does it do? > > On 7/16/09 9:53 AM, "Martin Scotta" wrote: > > > On Thu, Jul 16, 2009 at 11:01 AM, Andr

[PHP] Add php.net to my browser search box

2009-07-16 Thread Martin Scotta
Hi all! I'd like to add php.net to my browser search box. Most browser can do it by "looking" at some XML provided by the site. The HTML must contain a simple link tag like this http://php.net/osd.xml"; /> and osd.xml should be something like this PHP.net Quick search in PHP.net! p

Re: [PHP] Add php.net to my browser search box

2009-07-16 Thread Daniel Brown
On Thu, Jul 16, 2009 at 11:59, Martin Scotta wrote: > Hi all! > > I'd like to add php.net to my browser search box. > Most browser can do it by "looking" at some XML provided by the site. I had written one about two and a half years ago. It's the dumbest, simplest thing, and yet it's now been

[PHP] Inverting a dependency list

2009-07-16 Thread Bob McConnell
I recall, years ago, having a set of utilities that would build a call tree from application code written in C. This was useful for figuring out dependencies in code that someone else had written. I would like to do something similar with a large PHP application I am now maintaining, but with a sli

[PHP] Syntax Snag need extra eyes

2009-07-16 Thread Miller, Terion
I'm almost there with my little pagination script but now I'm hung on the "Unexpected T_Variable" error...which in the past has been a semi-colon missing so I'm not sure why this is throwing it...eyes please: printf('%s%s',$row['name'] ,$row['address']); -- PHP General Mailing List (http://www.

RE: [PHP] Syntax Snag need extra eyes

2009-07-16 Thread Bob McConnell
From: Miller, Terion > I'm almost there with my little pagination script but now I'm hung on the > "Unexpected T_Variable" error...which in the past has been a semi-colon > missing so I'm not sure why this is throwing it...eyes please: > > printf(' href="view.php?name=$row['name']">%s%s',$row['n

Re: [PHP] Syntax Snag need extra eyes

2009-07-16 Thread Jim Lucas
Miller, Terion wrote: > I'm almost there with my little pagination script but now I'm hung on the > "Unexpected T_Variable" error...which in the past has been a semi-colon > missing so I'm not sure why this is throwing it...eyes please: > > printf(' href="view.php?name=$row['name']">%s%s',$row['n

Re: [PHP] Sub Menu System?

2009-07-16 Thread tedd
At 8:55 AM -0400 7/16/09, David Stoltz wrote: Folks, I'm developing a rather large site in PHP. The main horizontal nav bar never changes, no matter how deep you are in the site. However, on the left side is a vertical "sub-menu" system. This menu is proving to be a real pain to program. I have

Re: [PHP] Syntax Snag need extra eyes (RESOLVED)

2009-07-16 Thread Miller, Terion
Thanks Jim!! I did read the manual and don't get it, like why is printf used and not echo...how do you decided which to use? On 7/16/09 11:25 AM, "Jim Lucas" wrote: printf( '%s%s', $row['name'], $row['name'], $row['address'] ); -- PHP General Mailing List (ht

Re: [PHP] Syntax Snag need extra eyes

2009-07-16 Thread Andrew Ballard
On Thu, Jul 16, 2009 at 12:25 PM, Jim Lucas wrote: > Miller, Terion wrote: > > I'm almost there with my little pagination script but now I'm hung on the > > "Unexpected T_Variable" error...which in the past has been a semi-colon > > missing so I'm not sure why this is throwing it...eyes please: >

Re: [PHP] Syntax Snag need extra eyes

2009-07-16 Thread Jim Lucas
Andrew Ballard wrote: > On Thu, Jul 16, 2009 at 12:25 PM, Jim Lucas wrote: > >> Miller, Terion wrote: >>> I'm almost there with my little pagination script but now I'm hung on the >>> "Unexpected T_Variable" error...which in the past has been a semi-colon >>> missing so I'm not sure why this is t

Re: [PHP] Syntax Snag need extra eyes (RESOLVED)

2009-07-16 Thread Jim Lucas
Miller, Terion wrote: > Thanks Jim!! I did read the manual and don't get it, like why is printf used > and not echo...how do you decided which to use? > > > > On 7/16/09 11:25 AM, "Jim Lucas" wrote: > > printf( > '%s%s', > $row['name'], > $row['name'], > $row['

Re: [PHP] Add php.net to my browser search box

2009-07-16 Thread Jim Lucas
Martin Scotta wrote: > Hi all! > > I'd like to add php.net to my browser search box. > Most browser can do it by "looking" at some XML provided by the site. > > The HTML must contain a simple link tag like this > title="PHP.net" > href="http://php.net/osd.xml"; /> > > and osd.xml should be

Re: [PHP] Syntax Snag need extra eyes

2009-07-16 Thread Andrew Ballard
On Thu, Jul 16, 2009 at 12:35 PM, Jim Lucas wrote: > > Andrew Ballard wrote: > > On Thu, Jul 16, 2009 at 12:25 PM, Jim Lucas wrote: [snip] > >> Also, this is the wrong way to use printf().  Please go read the manual > >> page for this function. > >> > >> Try: > >> > >> printf( > >>        '%s%s',

Re: [PHP] Inverting a dependency list

2009-07-16 Thread Eric Butera
On Thu, Jul 16, 2009 at 12:09 PM, Bob McConnell wrote: > I recall, years ago, having a set of utilities that would build a call > tree from application code written in C. This was useful for figuring > out dependencies in code that someone else had written. I would like to > do something similar wi

Re: [PHP] Syntax Snag need extra eyes

2009-07-16 Thread Bastien Koert
On Thu, Jul 16, 2009 at 12:43 PM, Andrew Ballard wrote: > On Thu, Jul 16, 2009 at 12:35 PM, Jim Lucas wrote: >> >> Andrew Ballard wrote: >> > On Thu, Jul 16, 2009 at 12:25 PM, Jim Lucas wrote: > [snip] >> >> Also, this is the wrong way to use printf().  Please go read the manual >> >> page for th

[PHP] Case Conversion of US Person Names

2009-07-16 Thread phphelp -- kbk
Hi, All -- -- - - I occasionally find myself in need of a utility to do case conversion of people's names, especially when I am converting data from an old to a new system. This is the first such occasion in PHP. I know about ucwords() and mb_convert_case(). They do not accommodate names

Re: [PHP] Syntax Snag need extra eyes

2009-07-16 Thread Jim Lucas
Bastien Koert wrote: > On Thu, Jul 16, 2009 at 12:43 PM, Andrew Ballard wrote: >> On Thu, Jul 16, 2009 at 12:35 PM, Jim Lucas wrote: >>> Andrew Ballard wrote: On Thu, Jul 16, 2009 at 12:25 PM, Jim Lucas wrote: >> [snip] > Also, this is the wrong way to use printf(). Please go read the m

RES: [PHP] Case Conversion of US Person Names

2009-07-16 Thread Jônatas Zechim
U can try this: function fNme($n){ $tN=count($n=explode(' ',strtolower($n))); $nR=''; for($i=0;$i<$tN;$i++){if($i==0){$nR.=strlen($n[$i])>3?ucwords($n[$i]):$n[$i] ;}else{$nR.=strlen($n[$i])>3?' '.ucwords($n[$i]):' '.$n[$i];}} return $nR; } echo fNme('a

Re: RES: [PHP] Case Conversion of US Person Names

2009-07-16 Thread phphelp -- kbk
On Jul 16, 2009, at 1:19 PM, Jônatas Zechim wrote: U can try this: function fNme($n){ $tN=count($n=explode(' ',strtolower($n))); $nR=''; for($i=0;$i<$tN;$i++){if($i==0){$nR.=strlen($n[$i])>3?ucwords($n [$i]):$n[$i] ;}else{$nR.=strlen($n[$i])>3?' '.ucwords($n[$i]):' '.

[PHP] dictionary/spell check...

2009-07-16 Thread Dan Joseph
Hi Everyone, This is slightly off topic... We're building an application, and have a need for an opensource dictionary. Basically a way to match words against a dictionary to see if they are valid, and what type of word they are. noun, adv, etc.. Can anyone point me in the right direction? Yes

[PHP] Invalid Argument why?

2009-07-16 Thread Miller, Terion
Why is this an invalid argument? foreach(($row['inType']) as $inType){ echo $inType,'';} I am trying to output results from a data base that may have multiple results for the same name So trying to use an array and foreach that is the right track ...right? -- PHP General Mailing List (ht

Re: [PHP] Invalid Argument why?

2009-07-16 Thread Ashley Sheridan
On Thu, 2009-07-16 at 15:41 -0400, Miller, Terion wrote: > Why is this an invalid argument? > > foreach(($row['inType']) as $inType){ > > echo $inType,'';} > > I am trying to output results from a data base that may have multiple > results for the same name > > So trying to use an array an

Re: [PHP] dictionary/spell check...

2009-07-16 Thread Robert Cummings
Aspell. Dan Joseph wrote: Hi Everyone, This is slightly off topic... We're building an application, and have a need for an opensource dictionary. Basically a way to match words against a dictionary to see if they are valid, and what type of word they are. noun, adv, etc.. Can anyone point m

Re: [PHP] Invalid Argument why?

2009-07-16 Thread Kyle Smith
Miller, Terion wrote: Why is this an invalid argument? foreach(($row['inType']) as $inType){ echo $inType,'';} I am trying to output results from a data base that may have multiple results for the same name So trying to use an array and foreach that is the right track ...right? Loo

Re: [PHP] Invalid Argument why? (RESOLVED)

2009-07-16 Thread Miller, Terion
Actually this ended up doing what I needed: $result = mysql_query($sql) or die(mysql_error()); $header = false; while

RE: [PHP] Sub Menu System?

2009-07-16 Thread Daevid Vincent
There are a plethora of solutions to do this type of navigation. All of them free. They usually use an and sections and CSS. You should look into jQuery as it has some of this built in too I believe. Lastly, consider using an array to build your menu with, then you can filter and do authenticatio

Re: [PHP] dictionary/spell check...

2009-07-16 Thread Dan Joseph
On Thu, Jul 16, 2009 at 3:51 PM, Robert Cummings wrote: > Aspell. > >> Can anyone point me in the right direction? Yes.. I did google already... >> >> >> Thanks! -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month.

Re: [PHP] Invalid Argument why?

2009-07-16 Thread Martin Scotta
foreach iterates over an array or a object (see Traversable ). If you pass anything different he complains wrote: > Miller, Terion wrote: > >> Why is this an invalid argument? >> >> foreach(($row['inType']) as $inType){ >> >> echo $inType,'';} >> >> I am trying to output results from a data base

Re: [PHP] Add php.net to my browser search box

2009-07-16 Thread Michelle Konzack
Good evening Daniel, thank you for the link... I was searching such tool... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant Am 2009-07-16 12:09:07, schrieb Daniel Brown: > I had written one about tw

[PHP] Characters causing problems in search strings?

2009-07-16 Thread Miller, Terion
My little browse /search restaurant project is coming along, but I just noticed that any restaurant with a &, () or # in the name like say for example Arby's Store #12 ...will not return results... Yet if a name has a / or a - it's not a problem... 1. why is this and how do and where do I escape th

[PHP] Internal PHP caching methodology

2009-07-16 Thread Daniel Kolbo
Hello, Call me a dreamer...but I got to ask. Is there any software for helping speed up PHP by utilizing internal PHP caching? I am not talking about the external php cache/header control. Smarty caching doesn't give me the control I need either. I would like to cache to a finer level than pag

Re: [PHP] Case Conversion of US Person Names

2009-07-16 Thread phphelp -- kbk
On Jul 16, 2009, at 4:06 PM, Leonard Burton wrote: Try this class here: http://code.google.com/p/lastname/ Oo! That looks *very* interesting. Thank you. Have you tried it? Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Internal PHP caching methodology

2009-07-16 Thread Phpster
On Jul 16, 2009, at 5:50 PM, Daniel Kolbo wrote: Hello, Call me a dreamer...but I got to ask. Is there any software for helping speed up PHP by utilizing internal PHP caching? I am not talking about the external php cache/header control. Smarty caching doesn't give me the control I n

[PHP] Re: [HEADSUP] rsync going temporarily down

2009-07-16 Thread Daniel Brown
2009/7/16 José Miguel Santibáñez A. : > > Hi, here (http://cl.php.net) we lost all documentation... > > I'll try a re-sync manually, but nothing happenes... Just a heads-up for those of you reading the newsgroup in real-time and emailing me directly or contacting off the PHP General list, do n

Re: [PHP] Internal PHP caching methodology

2009-07-16 Thread Eric Butera
On Thu, Jul 16, 2009 at 5:50 PM, Daniel Kolbo wrote: > Hello, > > Call me a dreamer...but I got to ask. > > Is there any software for helping speed up PHP by utilizing internal PHP > caching? > > I am not talking about the external php cache/header control.  Smarty > caching doesn't give me the con

Re: [PHP] Add php.net to my browser search box

2009-07-16 Thread Eric Butera
On Thu, Jul 16, 2009 at 12:09 PM, Daniel Brown wrote: > On Thu, Jul 16, 2009 at 11:59, Martin Scotta wrote: >> Hi all! >> >> I'd like to add php.net to my browser search box. >> Most browser can do it by "looking" at some XML provided by the site. > >    I had written one about two and a half years

Re: [PHP] Add php.net to my browser search box

2009-07-16 Thread Daniel Brown
On Thu, Jul 16, 2009 at 20:24, Eric Butera wrote: > > Interesting content on that site, Dan! One of those situations where I bought a domain name with the intent and desire to do something, and wound up converting it to personal usage. In this case, doing nothing but putting up random crap to

Re: [PHP] php.net down?

2009-07-16 Thread Daniel Kolbo
Thijs Lensselink wrote: > Anybody noticed php.net is down? > > It's responding to pings. But no pages load. > > I noticed this -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [HEADSUP] rsync going temporarily down

2009-07-16 Thread José Miguel Santibáñez A.
>> >> Hi, here (http://cl.php.net) we lost all documentation... >> >> I'll try a re-sync manually, but nothing happenes... > > Just a heads-up for those of you reading the newsgroup in > real-time and emailing me directly or contacting off the PHP General > list, do not worry: the PHP website i

[PHP] Re: [HEADSUP] rsync going temporarily down

2009-07-16 Thread Derick Rethans
On Thu, 16 Jul 2009, José Miguel Santibáñez A. wrote: > >> > >> Hi, here (http://cl.php.net) we lost all documentation... > >> > >> I'll try a re-sync manually, but nothing happenes... > > > > Just a heads-up for those of you reading the newsgroup in > > real-time and emailing me directly or c

Re: [PHP] php.net down?

2009-07-16 Thread Michael A. Peters
Daniel Kolbo wrote: Thijs Lensselink wrote: Anybody noticed php.net is down? It's responding to pings. But no pages load. I noticed this They probably just have their asp.net module misconfigured. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] php.net down?

2009-07-16 Thread Daniel Brown
On Thu, Jul 16, 2009 at 21:55, Michael A. Peters wrote: > > They probably just have their asp.net module misconfigured. IIS crashed. We tried to CTRL+ALT+DEL, but it didn't work. We've been on the phone with Tech Support for nine hours, and hope to be able to install Service Pack 31 next wee