[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 p...@addmissions.nl 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

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 west...@gmail.com: ?php 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

[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: ?php$letter = isset($_GET['letter']) ? $_GET['letter'] : A; //alphabetical pagination links

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

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 dsto...@shh.org wrote: Folks, I'm

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

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, Govindagovinda.webdnat...@gmail.com 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

Re: [PHP] Alphabetical pagination (RESOLVED)

2009-07-16 Thread Andrew Ballard
On Thu, Jul 16, 2009 at 9:33 AM, Miller, Teriontmil...@springfi.gannett.com wrote: Here is what finally worked:     ?php                                                        $letter = isset($_GET['letter']) ? $_GET['letter'] : A;                                                        

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 martinsco...@gmail.com wrote: On Thu, Jul 16, 2009 at

[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 link rel=search type=application/opensearchdescription+xml title=PHP.net href=http://php.net/osd.xml; / and osd.xml

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 Scottamartinsco...@gmail.com 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

[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

[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('a href=view.php?name=$row['name']b%s/bbr%s/brbr/a',$row['name']

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('a

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('a

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 li...@cmsws.com wrote: printf( 'a href=view.php?name=%sb%s/bbr /%sbr /br //a', $row['name'], $row['name'],

Re: [PHP] Syntax Snag need extra eyes

2009-07-16 Thread Andrew Ballard
On Thu, Jul 16, 2009 at 12:25 PM, Jim Lucas li...@cmsws.com 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

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 li...@cmsws.com 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

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 li...@cmsws.com wrote: printf( 'a href=view.php?name=%sb%s/bbr /%sbr /br //a',

Re: [PHP] Inverting a dependency list

2009-07-16 Thread Eric Butera
On Thu, Jul 16, 2009 at 12:09 PM, Bob McConnellr...@cbord.com 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

Re: [PHP] Syntax Snag need extra eyes

2009-07-16 Thread Bastien Koert
On Thu, Jul 16, 2009 at 12:43 PM, Andrew Ballardaball...@gmail.com wrote: On Thu, Jul 16, 2009 at 12:35 PM, Jim Lucas li...@cmsws.com wrote: Andrew Ballard wrote: On Thu, Jul 16, 2009 at 12:25 PM, Jim Lucas li...@cmsws.com wrote: [snip] Also, this is the wrong way to use printf().  Please

[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 Ballardaball...@gmail.com wrote: On Thu, Jul 16, 2009 at 12:35 PM, Jim Lucas li...@cmsws.com wrote: Andrew Ballard wrote: On Thu, Jul 16, 2009 at 12:25 PM, Jim Lucas li...@cmsws.com wrote: [snip] Also, this is the wrong way to use

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?

[PHP] Invalid Argument why?

2009-07-16 Thread Miller, Terion
Why is this an invalid argument? foreach(($row['inType']) as $inType){ echo $inType,'br';} 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

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,'br';} 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

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

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,'br';} 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?

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;

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 UL and LI 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

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

2009-07-16 Thread Dan Joseph
On Thu, Jul 16, 2009 at 3:51 PM, Robert Cummings rob...@interjinn.comwrote: 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 ?php if( !is_scalar( $collection ) ) foreach( $collection as $element ) print_r( $element ); On Thu, Jul 16, 2009 at 4:53 PM, Kyle Smith kyle.sm...@inforonics.comwrote:

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

[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

[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

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 kolb0...@umn.edu 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

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

2009-07-16 Thread Daniel Brown
2009/7/16 José Miguel Santibáñez A. j...@caos.cl: 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

Re: [PHP] Internal PHP caching methodology

2009-07-16 Thread Eric Butera
On Thu, Jul 16, 2009 at 5:50 PM, Daniel Kolbokolb0...@umn.edu 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

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 Browndanbr...@php.net wrote: On Thu, Jul 16, 2009 at 11:59, Martin Scottamartinsco...@gmail.com 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

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 Buterae...@ericbutera.us 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

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 is not going

[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 contacting off the

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:

Re: [PHP] php.net down?

2009-07-16 Thread Daniel Brown
On Thu, Jul 16, 2009 at 21:55, Michael A. Petersmpet...@mac.com 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