[PHP] RE: XHTML Validation problem

2008-05-02 Thread Steven R. Ringwald
>>> I have a page that displays data entered by the user. There is one >>> user that entered the character "&" inside the text he typed. For >>> this case the xhtml validation fails and gives me the following >>> error: >>> "character "&" is the first character of a delimiter but occurred >

[PHP] Apache child pid segfault + APD

2008-05-02 Thread Waynn Lue
I recently installed APD to help profile some code that I've written, and noticed that whenever I run it (with apd_set_pprof_trace() at the top) I get these errors in my apache logs. I spent awhile looking at different sites, but even recompiling PHP + Apache didn't help. Anyone seen this before?

RE: [PHP] XHTML Validation problem

2008-05-02 Thread Steven R. Ringwald
Begin forwarded message: >> I have a page that displays data entered by the user. There is one >> user that entered the character "&" inside the text he typed. For >> this case the xhtml validation fails and gives me the following >> error: >> "character "&" is the first character of a deli

Fwd: [PHP] XHTML Validation problem

2008-05-02 Thread Simon Welsh
Forgot to reply all Begin forwarded message: From: Simon Welsh <[EMAIL PROTECTED]> Date: 3 May 2008 4:18:04 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] XHTML Validation problem On 3/05/2008, at 4:13, It Maq wrote: Hi, I have a page that displays data entered by the user. There is one use

Re: [PHP] XHTML Validation problem

2008-05-02 Thread Craige Leeder
html_entities() http://ca.php.net/manual/en/function.htmlentities.php Hope this helps - Craige On Sat, May 3, 2008 at 12:13 AM, It Maq <[EMAIL PROTECTED]> wrote: > Hi, > > I have a page that displays data entered by the user. There is one user that > entered the character "&" inside the text h

[PHP] XHTML Validation problem

2008-05-02 Thread It Maq
Hi, I have a page that displays data entered by the user. There is one user that entered the character "&" inside the text he typed. For this case the xhtml validation fails and gives me the following error: "character "&" is the first character of a delimiter but occurred as data." I'm wonderi

Re: [PHP] Re: Assigning functions

2008-05-02 Thread Shawn McKenzie
Shawn McKenzie wrote: Craige Leeder wrote: On Fri, May 2, 2008 at 7:27 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: Why are you using OOP? That's insane. -Shawn I believe that's a matter of opinion. Some people like OOP, others don't. Why criticize the man because he likes to u

Re: [PHP] Re: Assigning functions

2008-05-02 Thread Shawn McKenzie
Craige Leeder wrote: On Fri, May 2, 2008 at 7:27 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: Why are you using OOP? That's insane. -Shawn I believe that's a matter of opinion. Some people like OOP, others don't. Why criticize the man because he likes to use it? I like to use i

[PHP] Interacting with an IpServer via sockets

2008-05-02 Thread Todd Cary
I have an IpServer using Turbopowers IpServer library) and am able to connect and send data (fwrite() ), however, I cannot receive data from the server. The PutString() in the IpServer executes without error, however the fgets() just hangs. Any ideas on what I may be doing incorrectly? $fp

Re: [PHP] Re: Assigning functions

2008-05-02 Thread Nathan Nobbe
On Fri, May 2, 2008 at 5:37 PM, Craige Leeder <[EMAIL PROTECTED]> wrote: > On Fri, May 2, 2008 at 7:27 PM, Shawn McKenzie <[EMAIL PROTECTED]> > wrote: > > Why are you using OOP? That's insane. > > > > -Shawn > > I believe that's a matter of opinion. Some people like OOP, others > don't. Why cr

[PHP] Re: XHTML/CSS problem

2008-05-02 Thread Al
Use Firefox and install the HTML Validator. I looked at your page and it instantly showed ALL the errors. jeroen vannevel wrote: hey, this isn't a php problem, but an XHTML/CSS one. have a look at www.speedzor.com/woopsie.php, and please tell me where my problem is. i'm stuck at this for ho

Re: [PHP] Re: Assigning functions

2008-05-02 Thread Craige Leeder
On Fri, May 2, 2008 at 7:27 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > Why are you using OOP? That's insane. > > -Shawn I believe that's a matter of opinion. Some people like OOP, others don't. Why criticize the man because he likes to use it? I like to use it as well. Regards, - Craige

[PHP] Re: Assigning functions

2008-05-02 Thread Shawn McKenzie
Philip Thompson wrote: Hi all. I have several classes. Within each class, a new class is called. Is there a way to assign a function in a *deeper* class to be called in the first class? Example to follow.. b = new B (); // I want to do the following. This does not work, of course.

Re: [PHP] XHTML/CSS problem

2008-05-02 Thread Stut
On 2 May 2008, at 22:34, jeroen vannevel wrote: this isn't a php problem, but an XHTML/CSS one. have a look at www.speedzor.com/woopsie.php, and please tell me where my problem is. i'm stuck at this for hours by now :p Please post your question to a list appropriate to the question - you'

[PHP] XHTML/CSS problem

2008-05-02 Thread jeroen vannevel
hey, this isn't a php problem, but an XHTML/CSS one. have a look at www.speedzor.com/woopsie.php, and please tell me where my problem is. i'm stuck at this for hours by now :p thanks in advance, jeroen _ Gratis chat, gratis blog,

Re: [PHP] Assigning functions

2008-05-02 Thread David Otton
2008/5/2 Philip Thompson <[EMAIL PROTECTED]>: > Hi all. I have several classes. Within each class, a new class is called. Is > there a way to assign a function in a *deeper* class to be called in the > first class? Example to follow.. > >class A { > function __construct () { > $

Re: [PHP] Any Running Simple Ajax Sample for Php

2008-05-02 Thread Jon L.
If you aren't already, I recommend putting to use a JS library with Ajax support. Nothing else, they can reduce the browser compatibility overhead coding you'll need to do. You can pick any of many, but I'm more familiar with Prototype: http://prototypejs.org/ ## credits.php

Re: [PHP] Assigning functions

2008-05-02 Thread Nathan Nobbe
On Fri, May 2, 2008 at 1:48 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Fri, May 2, 2008 at 1:09 PM, Philip Thompson <[EMAIL PROTECTED]> > wrote: > >> Hi all. I have several classes. Within each class, a new class is called. >> Is there a way to assign a function in a *deeper* class to be cal

Re: [PHP] Assigning functions

2008-05-02 Thread Nathan Nobbe
On Fri, May 2, 2008 at 2:03 PM, Craige Leeder <[EMAIL PROTECTED]> wrote: > ons here) as a simple example something like this > > > > class B { > > //... > > function doSomething() { > > return $this->c->doSomething(); > > } > > } > > > > which allows you this in A instances > > > >

Re: [PHP] Assigning functions

2008-05-02 Thread Craige Leeder
ons here) as a simple example something like this > > class B { > //... > function doSomething() { > return $this->c->doSomething(); > } > } > > which allows you this in A instances > > $this->b->doSomething(); > > this is the preferred approach, since A and C instances are loosely

Re: [PHP] Assigning functions

2008-05-02 Thread Nathan Nobbe
On Fri, May 2, 2008 at 1:09 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > Hi all. I have several classes. Within each class, a new class is called. > Is there a way to assign a function in a *deeper* class to be called in the > first class? Example to follow.. > > class A { >function _

Re: [PHP] Assigning functions

2008-05-02 Thread Craige Leeder
Hello Philip First thing first: design patterns are your friend. A good reference for which, is: http://www.fluffycat.com/PHP-Design-Patterns/ Second of all. What is the situation in which you are trying to do this? I can't really think of one where you would do such a thing. - Craige On Fri,

Re: [PHP] set_error_handler help

2008-05-02 Thread Craige Leeder
I beleive you can also do set_error_handler(array('classname', 'myMethod')); for static methods. - Craige On Fri, May 2, 2008 at 2:26 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > > Is there any way to use a class to handle errors? I've tried some stuff > like > > set_error_handler("Error_Han

[PHP] Assigning functions

2008-05-02 Thread Philip Thompson
Hi all. I have several classes. Within each class, a new class is called. Is there a way to assign a function in a *deeper* class to be called in the first class? Example to follow.. b = new B (); // I want to do the following. This does not work, of course. $this->doSomet

Re: [PHP] set_error_handler help

2008-05-02 Thread Richard Heyes
Is there any way to use a class to handle errors? I've tried some stuff like set_error_handler("Error_Handler::logError" and such, but with no luck. It accepts a "callback type, which is a pseudo type. Basically an array containg the object and the method to use. Eg. $obj = new ErrorHandlingO

[PHP] set_error_handler help

2008-05-02 Thread Thiago Pojda
Hi guys, I'm trying some custom error handling functions in order to get emails when fatal errors come up in my production website. The thing is, I went to phpclasses and there was a good one, but it was a class. I'm very slow today, so I could not figure out how to get it working. So, I ju

Re: [PHP] transfer list in textarea to comma delimited string

2008-05-02 Thread afan pasalic
Stut wrote: > On 2 May 2008, at 16:22, afan pasalic wrote: >> I have one textarea field in a registration form where visitor enters >> keywords. even there is a not next to the field "please enter keywords >> as comma delimited string", they enter as a list, below each other. >> >> I tried to conv

Re: [PHP] transfer list in textarea to comma delimited string

2008-05-02 Thread Stut
On 2 May 2008, at 16:22, afan pasalic wrote: I have one textarea field in a registration form where visitor enters keywords. even there is a not next to the field "please enter keywords as comma delimited string", they enter as a list, below each other. I tried to convert the list into comma de

[PHP] transfer list in textarea to comma delimited string

2008-05-02 Thread afan pasalic
hi, I have one textarea field in a registration form where visitor enters keywords. even there is a not next to the field "please enter keywords as comma delimited string", they enter as a list, below each other. I tried to convert the list into comma delimited string with several solutions but n

[PHP] Any Running Simple Ajax Sample for Php

2008-05-02 Thread Craige Leeder
Hi Heysem, So what you want is an ajax script that will call a php page every minute, and check for a result (assuming boolean) of 1 or 0? That shouldn't be too hard. First, I need to know more information about the page, such as the id tag of the element you want updated, and how severe the

[PHP] Re: problem with for loop

2008-05-02 Thread Craige Leeder
I think Peter is probably right. In the case he is not however, can you post a print_r of $multiArray. - Craige On Fri, May 2, 2008 at 7:24 AM, Peter Ford <[EMAIL PROTECTED]> wrote: > > Richard Kurth wrote: > > > Way does my for loop not complete the task if there are 4 emails it only >

[PHP] Re: problem with for loop

2008-05-02 Thread Peter Ford
Richard Kurth wrote: Way does my for loop not complete the task if there are 4 emails it only process 3 emails through the foreach loop if there is 3 it only process 2 # Connect up $host ="domain.com"; $port ="110"; $mailtype = "pop3"; $mailbox ="INBOX"; $username ="[EM

[PHP] Any Running Simple Ajax Sample for Php

2008-05-02 Thread Heysem KAYA
Hi, I would like to check each minute whether the user credit is finished and update the relevant place on page. So I have downloaded however was not able to run some sample ajax code. Is there anyone who has such a simple code to implement? Thanks, Heysem Kaya

Re: [PHP] problem with for loop

2008-05-02 Thread Richard Kurth
Nathan Nobbe wrote: On Fri, May 2, 2008 at 1:20 AM, Richard Kurth <[EMAIL PROTECTED] > wrote: Way does my for loop not complete the task if there are 4 emails it only process 3 emails through the foreach loop if there is 3 it only process 2 $file=file_

Re: [PHP] problem with for loop

2008-05-02 Thread Nathan Nobbe
On Fri, May 2, 2008 at 1:20 AM, Richard Kurth <[EMAIL PROTECTED]> wrote: > Way does my for loop not complete the task if there are 4 emails it only > process 3 emails through the foreach loop if there is 3 it only process 2 > > $file=file_get_contents("C:\web\bouncehandler\eml\em$i"); > $multiArra

[PHP] problem with for loop

2008-05-02 Thread Richard Kurth
Way does my for loop not complete the task if there are 4 emails it only process 3 emails through the foreach loop if there is 3 it only process 2 # Connect up $host ="domain.com"; $port ="110"; $mailtype = "pop3"; $mailbox ="INBOX"; $username ="[EMAIL PROTECTED]"; $