Re: [PHP] Highlighting image map on load

2009-12-15 Thread leledumbo
> I'm not sure if you can use CSS alone to highlight, but if you can, just > give the area a class as you output it with PHP That's the problem, area itself isn't visible, so giving a CSS class won't highlight it. -- View this message in context: http://old.nabble.com/Highlighting-image-map-on-

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-15 Thread René Fournier
On 2009-12-15, at 11:55 PM, Richard Quadling wrote: > Do you have a default stream context defined for the http stream? Nope. > > A _LONG_ time ago, when I was using a firewall with NTLM > authentication (which PHP doesn't deal with), I had to route all my > calls through a local proxy. > > Th

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-15 Thread René Fournier
On 2009-12-15, at 11:55 PM, Richard Quadling wrote: > Do you have a default stream context defined for the http stream? Nope. > > A _LONG_ time ago, when I was using a firewall with NTLM > authentication (which PHP doesn't deal with), I had to route all my > calls through a local proxy. > > Th

Re: [PHP] Class not functioning

2009-12-15 Thread Shawn McKenzie
Sorry, and then I didn't keep it on list :-( Shawn McKenzie wrote: > Please reply to the list. Just google for "php registry pattern". Here is a > very basic example. There are better OOP people here than I. > > class Registry { > protected $_objects = array(); > > function set($name,

Re: [PHP] Class not functioning

2009-12-15 Thread Allen McCabe
Wouter, Implementing your static idea was pretty easy, I was already referencing Notifier with the :: operator in my other methods, however I am running into trouble assigning new values to the static array. I am getting a "syntax error, unexpected '[' " on this line of my Notifier class: Notifi

Re: [PHP] Class not functioning

2009-12-15 Thread Wouter van Vliet / Interpotential
Allen, The short answer (but don't follow this): addToQ( .. ); } } ?> The long(er) answer: I assume your Notifier object functions as singleton? Ie; accross your entire application, there is only one instance of that class? Why not go-static? That is, to my experience, the sweetest way to make

Re: [PHP] Class not functioning

2009-12-15 Thread Shawn McKenzie
Allen McCabe wrote: > Hey all (and Nirmalya, thanks for the help!), > > > I have a question that I just can't seem to find via Google. > > I want to be able to add messages to a qeue whenever my classes complete (or > fail to complete) specific functions. I think have a call within my html to >

Re: [PHP] can't retrieve more than 1 record at the time still

2009-12-15 Thread Catherine Madsen
Thank you so much for sending me in the right direction. I've re-written the first part of the script using PDO statements and it works great. Catherine Richard Quadling wrote: 2009/12/14 Catherine Madsen : Hi Again, Following the suggestions I received from a earlier post, I've closed

Re: [PHP] Class not functioning

2009-12-15 Thread Allen McCabe
Hey all (and Nirmalya, thanks for the help!), I have a question that I just can't seem to find via Google. I want to be able to add messages to a qeue whenever my classes complete (or fail to complete) specific functions. I think have a call within my html to my Notifier class to print all qeued

Re: [PHP] strip tags but preserve title attributes

2009-12-15 Thread Brady Mitchell
On Tue, Dec 15, 2009 at 6:44 AM, Wouter van Vliet / Interpotential wrote: > And if that doesn't suit your needs - you might want to take a look at this: > >    http://sourceforge.net/projects/simplehtmldom/ +1 I've never used the html2text library, but simplehtmldom is very easy to use and has wo

[PHP] Re: strip tags but preserve title attributes

2009-12-15 Thread Al
Ashley Sheridan wrote: I'm looking for a way to strip HTML tags out of some text content (sourced from a web page) to leave just the text which I'll be running some basic analysis on. The thing is, I want to preserve text that is in alt and title attributes. I can't use any DOM functions, as I

Re: [PHP] Parsing JSON; back-slash problem

2009-12-15 Thread Andrew Burgess
Thanks guys; I've got it working now! On Tue, Dec 15, 2009 at 9:54 AM, Wouter van Vliet / Interpotential wrote: >> >> If you don't have access to do this, look at stripslashes() > > And if you absolutely want to be on the safe side - check* if the > magic_quotes option is enabled - if so; do stri

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-15 Thread Richard Quadling
2009/12/14 Ashley Sheridan > > On Mon, 2009-12-14 at 17:03 +0200, Cafer Şimşek wrote: > > René Fournier writes: > > > On 2009-12-14, at 10:44 PM, Cafer Şimşek wrote: > > > >> René Fournier writes: > >> > >>> 4.as per php.ini, allow_url_fopen On > >> > >> Look at from phpinfo() the settin

Re: [PHP] MySQL Appeal from Monty

2009-12-15 Thread Paul M Foster
On Tue, Dec 15, 2009 at 12:03:23PM +, Ashley Sheridan wrote: > > I've always been led to believe that you go with MySQL if you want > speed, Oracle if you want data integrity. I know they both handle each > one admirably, but Oracle is known more for guarding the data against > mishaps and

Re: [PHP] PHP + ODBC

2009-12-15 Thread Richard Quadling
2009/12/15 Philip Thompson : > On Dec 14, 2009, at 8:47 PM, James McLean wrote: > >> On Tue, Dec 15, 2009 at 10:03 AM, Philip Thompson >> wrote: >>> My head hurts from hitting it on my desk all day, so I thought I'd turn to >>> a fresher set of eyes. The issue I'm having is getting PHP to connect

Re: [PHP] can't retrieve more than 1 record at the time still

2009-12-15 Thread Richard Quadling
2009/12/14 Catherine Madsen : > Hi Again, > > Following the suggestions I received from a earlier post, I've closed the > statement > while ($stmt->fetch(PDO::FETCH_BOUND)) > before $stmt = NULL; > I don't get an error anymore, but still retrieve only one record. > > To check that the array was bei

Re: [PHP] Best ajax library

2009-12-15 Thread Philip Thompson
On Dec 15, 2009, at 3:12 AM, Joseph Masoud wrote: > On 15 Dec 2009, at 08:50, Ali Asghar Toraby Parizy > wrote: > >> Which one is more active than others? I mean which project extends >> faster and better, in future? >> >> On Tue, Dec 15, 2009 at 1:37 AM, Philip Thompson >> wrote: >>> On Dec

Re: [PHP] How to pronounce PHP code over the phone?

2009-12-15 Thread Richard Quadling
2009/10/16 Dotan Cohen : > How would you read this out loud if you were to read it to someone > over  the phone? > > ($item->getServiceId() ? $item->getServiceId() : $item->getId(; > > Thanks! > > -- > Dotan Cohen > > http://what-is-what.com > http://gibberish.co.il > > -- > PHP General Mailing

Re: [PHP] PHP + ODBC

2009-12-15 Thread Philip Thompson
On Dec 14, 2009, at 8:47 PM, James McLean wrote: > On Tue, Dec 15, 2009 at 10:03 AM, Philip Thompson > wrote: >> My head hurts from hitting it on my desk all day, so I thought I'd turn to a >> fresher set of eyes. The issue I'm having is getting PHP to connect ODBC. I >> can get it to work usin

Re: [PHP] How to pronounce PHP code over the phone?

2009-12-15 Thread Richard Quadling
2009/10/16 Dotan Cohen : It's called "vacation away from the 'net but there is an emergency". I'm certain that a fair portion of the list is familiar with that! >>> >>> I haven't the slightest idea what you are talking about. Vacation? Away >>> from the net? We must be from different plan

Re: [PHP] Parsing JSON; back-slash problem

2009-12-15 Thread Wouter van Vliet / Interpotential
> > > If you don't have access to do this, look at stripslashes() > And if you absolutely want to be on the safe side - check* if the magic_quotes option is enabled - if so; do stripslashes. If not - then obviously don't. * http://www.php.net/manual/en/function.get-magic-quotes-gpc.php > > > --

Re: [PHP] strip tags but preserve title attributes

2009-12-15 Thread Wouter van Vliet / Interpotential
I've had quite some luck using the html2text class by Jon Abernathy http://www.chuggnutt.com/html2text.php It's targetted to php 4, and rather old code - but it does the job for me. Where the 'job for me' is converting html to text for when I'm sending out emails in HTML format and want to off

Re: [PHP] Parsing JSON; back-slash problem

2009-12-15 Thread Shawn McKenzie
Ashley Sheridan wrote: > On Tue, 2009-12-15 at 06:52 -0500, Andrew Burgess wrote: > >> This seems like a pretty basic question, but it has me stumped. >> >> Here's my scenario: I'm using Douglas Crockford's JSON2.js to parse an >> object in JavaScript, which I then pass to a PHP script to store in

Re: [PHP] strip tags but preserve title attributes

2009-12-15 Thread Andrew Ballard
On Mon, Dec 14, 2009 at 6:43 PM, Ashley Sheridan wrote: > I'm looking for a way to strip HTML tags out of some text content > (sourced from a web page) to leave just the text which I'll be running > some basic analysis on. The thing is, I want to preserve text that is in > alt and title attributes

RES: [PHP] PHP live chat

2009-12-15 Thread Jônatas Zechim
http://www.livezilla.net/ -Mensagem original- De: Angelo Zanetti [mailto:ang...@zlogic.co.za] Enviada em: terça-feira, 15 de dezembro de 2009 09:59 Para: 'Ghodmode'; php-general@lists.php.net Assunto: RE: [PHP] PHP live chat -Original Message- From: Ghodmode [mailto:ghodm...@gh

RE: [PHP] PHP live chat

2009-12-15 Thread Angelo Zanetti
-Original Message- From: Ghodmode [mailto:ghodm...@ghodmode.com] Sent: 15 December 2009 09:41 AM To: php-general@lists.php.net Subject: Re: [PHP] PHP live chat I've played around with CraftySyntax LiveHelp, but I haven't deployed it in a production environment. It definitely looks lik

Re: [PHP] Parsing JSON; back-slash problem

2009-12-15 Thread Ashley Sheridan
On Tue, 2009-12-15 at 06:52 -0500, Andrew Burgess wrote: > This seems like a pretty basic question, but it has me stumped. > > Here's my scenario: I'm using Douglas Crockford's JSON2.js to parse an > object in JavaScript, which I then pass to a PHP script to store in a > file. I use JSON.stringif

Re: [PHP] MySQL Appeal from Monty

2009-12-15 Thread Ashley Sheridan
On Tue, 2009-12-15 at 02:53 +, Joseph Masoud wrote: > On 14 Dec 2009, at 22:01, Ashley Sheridan > wrote: > > > On Mon, 2009-12-14 at 15:59 -0600, Philip Thompson wrote: > > > >> On Dec 14, 2009, at 12:51 AM, Lester Caine wrote: > >> > >>> Lenin wrote: > You might also like this: > >>>

[PHP] Debian Lenny: Which 5.3 package should I use?

2009-12-15 Thread Wouter van Vliet / Interpotential
Hi Guys & Gals, I've been playing around with PHP 5.3 for a while now on development servers and servers solely used for start-ups and lower-profile apps. But now I'm about to upgrade the servers for a high profile/high traffic website and with this upgrade I'd also like to make the switch from 5.

[PHP] Parsing JSON; back-slash problem

2009-12-15 Thread Andrew Burgess
This seems like a pretty basic question, but it has me stumped. Here's my scenario: I'm using Douglas Crockford's JSON2.js to parse an object in JavaScript, which I then pass to a PHP script to store in a file. I use JSON.stringify() on the object, which logs to the console as this: {"employees":

Fwd: [PHP] Re: ErrorException and set_exception_handler()

2009-12-15 Thread Richard Quadling
-- Forwarded message -- From: Randall Girard Date: 2009/12/14 Subject: RE: [PHP] Re: ErrorException and set_exception_handler() To: rquadl...@googlemail.com I understood exactly what was going on in the code! (I'm no fool when it comes to this) I just thought (logically) that if

Re: [PHP] Best ajax library

2009-12-15 Thread Joseph Masoud
On 15 Dec 2009, at 08:50, Ali Asghar Toraby Parizy > wrote: Which one is more active than others? I mean which project extends faster and better, in future? On Tue, Dec 15, 2009 at 1:37 AM, Philip Thompson > wrote: On Dec 14, 2009, at 4:27 AM, Ali Asghar Toraby Parizy wrote: Hi I think the b

Re: [PHP] Best ajax library

2009-12-15 Thread Ali Asghar Toraby Parizy
Which one is more active than others? I mean which project extends faster and better, in future? On Tue, Dec 15, 2009 at 1:37 AM, Philip Thompson wrote: > On Dec 14, 2009, at 4:27 AM, Ali Asghar Toraby Parizy wrote: > >> Hi >> I think the best choice is jquery until now. >> But, is it reasonable