php-general Digest 15 Dec 2009 13:44:52 -0000 Issue 6489

2009-12-15 Thread php-general-digest-help
php-general Digest 15 Dec 2009 13:44:52 - Issue 6489 Topics (messages 300506 through 300519): Re: Class not functioning 300506 by: Nirmalya Lahiri Re: PHP + ODBC 300507 by: James McLean Re: MySQL Appeal from Monty 300508 by: Joseph Masoud 300509 by: Lester

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

Re: [PHP] Best ajax library

2009-12-15 Thread Joseph Masoud
On 15 Dec 2009, at 08:50, Ali Asghar Toraby Parizy aliasghar.tor...@gmail.com 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 philthath...@gmail.com wrote: On Dec 14, 2009, at 4:27 AM,

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

2009-12-15 Thread Richard Quadling
-- Forwarded message -- From: Randall Girard randallgir...@hotmail.com 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

[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:

[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

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 a...@ashleysheridan.co.uk 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:

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.stringify()

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

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

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 a...@ashleysheridan.co.uk 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

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 a file.

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

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] How to pronounce PHP code over the phone?

2009-12-15 Thread Richard Quadling
2009/10/16 Dotan Cohen dotanco...@gmail.com: 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

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

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

2009-12-15 Thread Richard Quadling
2009/10/16 Dotan Cohen dotanco...@gmail.com: 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

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

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

2009-12-15 Thread Richard Quadling
2009/12/14 Catherine Madsen cmad...@berkeley.edu: 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

Re: [PHP] PHP + ODBC

2009-12-15 Thread Richard Quadling
2009/12/15 Philip Thompson philthath...@gmail.com: On Dec 14, 2009, at 8:47 PM, James McLean wrote: On Tue, Dec 15, 2009 at 10:03 AM, Philip Thompson philthath...@gmail.com 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

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: snip 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] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-15 Thread Richard Quadling
2009/12/14 Ashley Sheridan a...@ashleysheridan.co.uk On Mon, 2009-12-14 at 17:03 +0200, Cafer Şimşek wrote: René Fournier m...@renefournier.com writes: On 2009-12-14, at 10:44 PM, Cafer Şimşek wrote: René Fournier m...@renefournier.com writes: 4.as per php.ini,

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 pub...@interpotential.com 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

[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] 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 pub...@interpotential.com 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

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

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 cmad...@berkeley.edu: Hi Again, Following the suggestions I received from a

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 my

Re: [PHP] Class not functioning

2009-12-15 Thread Wouter van Vliet / Interpotential
Allen, The short answer (but don't follow this): ?php class Meetgreet { public function deleteSingle($id, $number) { // do something global $Notify; $Notify-addToQ( .. ); } } ? The long(er) answer: I assume your Notifier object functions as singleton? Ie; accross your

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:

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] 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. This was

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. This was

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: