Re: [PHP] PHP live chat

2009-12-14 Thread Ghodmode
I've played around with CraftySyntax LiveHelp, but I haven't deployed it in a production environment. It definitely looks like it's worth a try, though. http://www.craftysyntax.com/ On 14/12/09 21:14, Angelo Zanetti wrote: Hi all, I know there are a lot of scripts that one can pay for, for "

RE: [PHP] PHP live chat

2009-12-14 Thread Angelo Zanetti
-Original Message- From: Philip Thompson [mailto:philthath...@gmail.com] Sent: 15 December 2009 12:01 AM To: Angelo Zanetti Cc: php-general@lists.php.net Subject: Re: [PHP] PHP live chat On Dec 14, 2009, at 2:14 AM, Angelo Zanetti wrote: > Hi all, > > I know there are a lot of script

Re: [PHP] MySQL Appeal from Monty

2009-12-14 Thread Lester Caine
Philip Thompson wrote: On Dec 14, 2009, at 12:51 AM, Lester Caine wrote: Lenin wrote: You might also like this: Come on Monty - Lukas Smith http://bit.ly/5lmwwD I've been watching some of this debate with interest, but I'll stay with a database that has none of the baggage that MySQL has alw

Re: [PHP] MySQL Appeal from Monty

2009-12-14 Thread Joseph Masoud
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: Come on Monty - Lukas Smith http://bit.ly/5lmwwD I've been watching some of this debate wi

Re: [PHP] PHP + ODBC

2009-12-14 Thread James McLean
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 using isql from the command line. Can you verify my > settin

Re: [PHP] Class not functioning

2009-12-14 Thread Nirmalya Lahiri
--- On Tue, 12/15/09, Allen McCabe wrote: > From: Allen McCabe > Subject: [PHP] Class not functioning > To: "phpList" > Date: Tuesday, December 15, 2009, 6:17 AM > Hey everyone, I just delved into > classes recently and have been having > moderate success so far. > > I have a puzzler though. >

[PHP] Class not functioning

2009-12-14 Thread Allen McCabe
Hey everyone, I just delved into classes recently and have been having moderate success so far. I have a puzzler though. I have the following class decalred and instantiated: class Notify { var $q = array(); public function addtoQ($string, $class) { $message = ''. $string .''; $this->q[]

[PHP] strip tags but preserve title attributes

2009-12-14 Thread Ashley Sheridan
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 can't guarantee that the co

[PHP] PHP + ODBC

2009-12-14 Thread Philip Thompson
Hello all. 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 using isql from the command line. Can you verify my settings: /etc/odbc.ini: [MySQL] Description = MySQ

Re: [PHP] MySQL Appeal from Monty

2009-12-14 Thread Ashley Sheridan
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: > >> Come on Monty - Lukas Smith http://bit.ly/5lmwwD > > > > I've been watching some of this debate with interest, but I'll stay with a

Re: [PHP] Best ajax library

2009-12-14 Thread Philip Thompson
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 to combine jquery and other library to client > side and server side scripting respectively? > By the way, where i can find good lessons about jquery and php? I

Re: [PHP] PHP live chat

2009-12-14 Thread Philip Thompson
On Dec 14, 2009, at 2:14 AM, Angelo Zanetti wrote: > Hi all, > > I know there are a lot of scripts that one can pay for, for "live chat" - > website support. > > Are there are any free open source ones that work well? > > I found: www.phplivechat.com > > But still waiting to evaluate it. > >

Re: [PHP] MySQL Appeal from Monty

2009-12-14 Thread Philip Thompson
On Dec 14, 2009, at 12:51 AM, Lester Caine wrote: > Lenin wrote: >> You might also like this: >> Come on Monty - Lukas Smith http://bit.ly/5lmwwD > > I've been watching some of this debate with interest, but I'll stay with a > database that has none of the baggage that MySQL has always had, and

[PHP] Problem with LDAP functions in PHP

2009-12-14 Thread Lic. Eduardo Ricardo Hernandez Osorio
Hello: I am trying to accomplish searches in a Windows active directory through LDAP functions in PHP, but the function ldap_search and ldap_get_entries are out of service, they give the following error messages Warning: ldap_search() [function.ldap-search]: Search: Operations error in C:\xampp\h

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

2009-12-14 Thread 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 being filled correctly, I inserted in several

Re: [PHP] Problem with XPath query

2009-12-14 Thread Jim Lucas
Lester Caine wrote: > > I often find that it's quicker to ask - because invariably the answer > presents itself the second you hit send ;) > Isn't that the truth! Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with XPath query

2009-12-14 Thread Lester Caine
Christoph Boget wrote: You are missing a quote after widgetType: Yeah, I realized that about 2 minutes after I sent the message. Man, I'm dumb. :p I was banging my head against the wall for a while because of that. I guess when you bring your stupidity public, you'll find the solution yourse

Re: [PHP] Problem with XPath query

2009-12-14 Thread Christoph Boget
> You are missing a quote after widgetType: Yeah, I realized that about 2 minutes after I sent the message. Man, I'm dumb. :p I was banging my head against the wall for a while because of that. I guess when you bring your stupidity public, you'll find the solution yourself that much quicker. ;)

Re: [PHP] Problem with XPath query

2009-12-14 Thread Jonathan Tapicer
Hi, You are missing a quote after widgetType: [...@alias="widgetType and @value="system"] should be [...@alias="widgetType" and @value="system"] Regards, Jonathan On Mon, Dec 14, 2009 at 1:52 PM, Christoph Boget wrote: > Given the following XML: > > >   >     >       >     >   > > > I'm u

[PHP] Problem with XPath query

2009-12-14 Thread Christoph Boget
Given the following XML: I'm using the following query: $oXPath->query( '//DisplayRef/paramet...@alias="widgetType and @value="system"]' ); and I'm getting the following error: Warning: DOMXPath::query() [function.DOMXPath-query]: Invalid predicate If I remove this pa

Re: [PHP] Highlighting image map on load

2009-12-14 Thread tedd
At 4:37 AM -0800 12/14/09, leledumbo wrote: I have image map with dynamic circle areas whose coordinates stored in database. I'd like to colorize these areas so that it's obvious to see them. Most solutions I found on the net highlights the area on mouse hover, while my needs is to do it once whe

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

2009-12-14 Thread 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 settings is already "On". > > > > Ye

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

2009-12-14 Thread Cafer Şimşek
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 settings is already "On". > > Yes, I know. > > Which is why it's odd that the function fails on URLs. try to get ur

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread tedd
At 1:12 PM +0330 12/14/09, Parham Doustdar wrote: Thank you, everyone. All fixed. Really?!? I think you would be well advised to sanitize the values coming into from a public $_POST. That habit allows MySQL injection problems. Cheers, tedd -- --- http://sperling.com http://ancientst

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

2009-12-14 Thread René Fournier
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 settings is already "On". Yes, I know. Which is why it's odd that the function fails on URLs. -- PHP General Mailing List (http://www.php.net/

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

2009-12-14 Thread Cafer Şimşek
René Fournier writes: > 4.as per php.ini, allow_url_fopen On Look at from phpinfo() the settings is already "On". Best Regards. -- Cafer Şimşek DEV Staff Leader http://pazar.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-12-14 Thread René Fournier
Well thanks for trying. For anyone reading this, who wants to be a hero and solve the impossible: 1. file_get_contents ($url) doesn't work -- (on remote URLs or local URLs) 2. file_get_contents ($file) works. 3. CURL works (on remote and local URLs). 4. as per php.ini, allow_u

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

2009-12-14 Thread Gaurav Kumar
Sorry buddy, I cant think of anything else which is going on wrong. 2009/12/14 René Fournier > > PHP Version 5.3.0 > > Directive Local Value Master Value > allow_call_time_pass_reference Off Off > allow_url_fopen On > > > On 2009-12-14, at 12:26 AM, Gaurav Kumar wrote: > > What is the value for

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread Floyd Resler
You're missing a tick in the query. There should be a tick before the $_POST[ISBN]. Take care, Floyd On Dec 14, 2009, at 3:41 AM, Parham Doustdar wrote: > Hello there, > Here's a short PHP script a friend has written, and given to me to test. > However, I am getting a MySQL error saying that t

Re: [PHP] Highlighting image map on load

2009-12-14 Thread Ashley Sheridan
On Mon, 2009-12-14 at 04:37 -0800, leledumbo wrote: > I have image map with dynamic circle areas whose coordinates stored in > database. I'd like to colorize these areas so that it's obvious to see them. > Most solutions I found on the net highlights the area on mouse hover, while > my needs is to

[PHP] Highlighting image map on load

2009-12-14 Thread leledumbo
I have image map with dynamic circle areas whose coordinates stored in database. I'd like to colorize these areas so that it's obvious to see them. Most solutions I found on the net highlights the area on mouse hover, while my needs is to do it once when the window is loaded. Any idea? -- View th

RE: [PHP] ip-to-country

2009-12-14 Thread Angelo Zanetti
-Original Message- From: John Black [mailto:s...@network-technologies.org] Sent: 19 October 2009 11:03 AM To: php-general@lists.php.net Subject: Re: [PHP] ip-to-country SED wrote: > How can I access an index for IP to a country (or a more detailed location)? > I have not yet found a func

RE: [PHP] ip-to-country

2009-12-14 Thread Angelo Zanetti
-Original Message- From: George Langley [mailto:george.lang...@shaw.ca] Sent: 19 October 2009 01:38 AM To: php-general@lists.php.net Subject: Re: [PHP] ip-to-country On 18-Oct-09, at 1:03 PM, SED wrote: > > How can I access an index for IP to a country (or a more detailed > location)?

RE: [PHP] all local sites stopped working ... [SOLVED]

2009-12-14 Thread Angelo Zanetti
-Original Message- From: cr.vege...@gmail.com [mailto:cr.vege...@gmail.com] Sent: 17 October 2009 02:20 PM To: Tommy Pham; general php Subject: Re: [PHP] all local sites stopped working ... [SOLVED] - Original Message - From: "Tommy Pham" To: "general php" Sent: Saturday, Oct

RE: [PHP] avoid Denial of Service

2009-12-14 Thread Angelo Zanetti
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 08 October 2009 04:20 PM To: Gaurav Kumar Cc: Gerardo Benitez; php-general@lists.php.net Subject: Re: [PHP] avoid Denial of Service On Thu, 2009-10-08 at 19:40 +0530, Gaurav Kumar wrote: > Not sure what e

RE: [PHP] Re: what is php4 popularity?

2009-12-14 Thread Angelo Zanetti
-Original Message- From: Eric Bauman [mailto:baum...@livejournal.dk] Sent: 08 October 2009 02:39 PM To: php-general@lists.php.net; Paul M. Subject: [PHP] Re: what is php4 popularity? On 8/10/2009 4:28 PM, Paul M. wrote: > Hey guys, does anyone have a good link for an article where php4

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

2009-12-14 Thread Angelo Zanetti
LOL, This post really has so many replies. If only all the questions had as many answers this post! I enjoyed the laugh... cheers Angelo http://www.elemental.co.za http://www.wapit.co.za -Original Message- From: Dotan Cohen [mailto:dotanco...@gmail.com] Sent: 24 October 2009 11:12

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

2009-12-14 Thread Richard Quadling
2009/12/11 Hannes Magnusson : > On Fri, Dec 11, 2009 at 23:39, Randall Girard > wrote: >> Okay, my mistake. >> >> >> E_USER_WARNING and E_USER_NOTICE are supposed to continue execution, >> correct? > > Correct. > > >> Then  I will restate what I previously said. throwing ErrorException from an >

Re: [PHP] Best ajax library

2009-12-14 Thread Ali Asghar Toraby Parizy
Hi I think the best choice is jquery until now. But, is it reasonable to combine jquery and other library to client side and server side scripting respectively? By the way, where i can find good lessons about jquery and php? On Mon, Dec 14, 2009 at 1:16 PM, Angelo Zanetti wrote: > >>  On Sat, 20

RE: [PHP] Re: Learning PHP

2009-12-14 Thread Angelo Zanetti
-Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Robert H Sent: 13 December 2009 10:46 PM To: php-general@lists.php.net Subject: [PHP] Re: Learning PHP On 12/13/09 8:50 AM, tedd wrote: > > As such, the best book I've read lately has been "PHP, MySQL & > Javascript"

RE: [PHP] Best ajax library

2009-12-14 Thread Angelo Zanetti
> On Sat, 2009-12-12 at 15:34 +0330, shahrzad khorrami wrote: > > salam ;) > > JQuery is good one. > > > Yes I agree with JQuery but you also get JQuery UI (user interface). You can also check out extjs.com. good luck. Angelo http://www.elemental.co.za http://www.wapit.co.za > > > JQuery i

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread Parham Doustdar
Thank you, everyone. All fixed. "metastable" wrote in message news:4b260641.80...@metastable-services.net... > Parham Doustdar wrote: >> Hi there, >> Does it differ? I thought when in quotations, variables like that would >> be >> automatically interpreted? >> Also, the MySQL is meant to connect

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread metastable
Parham Doustdar wrote: > Hi there, > Does it differ? I thought when in quotations, variables like that would be > automatically interpreted? > Also, the MySQL is meant to connect to localhost. I had emptied it for > testing purposes. With or without it, I get the same error. > "Jochen Schultz" w

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread shahrzad khorrami
Salaaam $sql = "INSERT INTO BOOK(bookname, authorsname, ISBN) VALUES ('".$_POST[bookname]."'' , '".$_POST[authorsname]."',''".$_POST[ISBN]."')"; above line is correct, your code is wrong ,$_POST[ISBN]')"; and add $host = 'localhost'; $con = mysql_connect($host, $username, $password); you ca

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread Parham Doustdar
Hi there, Does it differ? I thought when in quotations, variables like that would be automatically interpreted? Also, the MySQL is meant to connect to localhost. I had emptied it for testing purposes. With or without it, I get the same error. "Jochen Schultz" wrote in message news:4b25fb8e.3040

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread Jochen Schultz
Hello Parham, i think you should change this: $sql = "INSERT INTO BOOK(bookname, authorsname, ISBN) VALUES ('$_POST[bookname]', '$_POST[authorsname]', $_POST[ISBN]')"; to this: $sql = "INSERT INTO BOOK(bookname, authorsname, ISBN) VALUES ('".$_POST[bookname]."', '".$_POST[authorsname]."', '".

[PHP] Strange MySQL Problem

2009-12-14 Thread Parham Doustdar
Hello there, Here's a short PHP script a friend has written, and given to me to test. However, I am getting a MySQL error saying that the syntax error, on the line that contains mysql_connect(); is wrong, near '')' (note that it is not a PHP error, but a MySQL error.) Here's the code: [code] [/co

[PHP] PHP live chat

2009-12-14 Thread Angelo Zanetti
Hi all, I know there are a lot of scripts that one can pay for, for "live chat" - website support. Are there are any free open source ones that work well? I found: www.phplivechat.com But still waiting to evaluate it. Please send you comments, good or bad and what you would recommend or not r