[PHP] Re: Functions vs html outpuit

2006-09-03 Thread Ivo F.A.C. Fokkema
On Fri, 01 Sep 2006 16:44:19 +0200, M. Sokolewicz wrote: Dave Goodchild wrote: Hi all, this may seem like a silly question, but I am creating a library of html form element generation function, for example a textarea fucntion that takes rows and cols as parameters, a function that generates a

[PHP] Re: Organizing php functions

2006-09-03 Thread Ivo F.A.C. Fokkema
On Fri, 01 Sep 2006 21:35:32 -0600, The Doctor wrote: The question comes up because: Sort file in the path interfere with one another which leads to web page malfunction. Question: should all php programmes such as drupal be placed under /usr/local/lib ? I'm not getting the 'sort

[PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
Hi, This is really odd. I use this code to retrive value from a database table. When the field is empty, it cracks the HTML code some how, the PHP script seam to not break. function getInfo() { $html = table; $html.= trthName/thtd.$this-getName()./td/tr;

Re: [PHP] Re: Functions vs html outpuit

2006-09-03 Thread Dave Goodchild
Thanks, that was what I needed to hear. Cheers. On 03/09/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Fri, 01 Sep 2006 16:44:19 +0200, M. Sokolewicz wrote: Dave Goodchild wrote: Hi all, this may seem like a silly question, but I am creating a library of html form element generation

RE: [PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
Just figured out that it seams to happen when the request is done via AJAX. But it does not make any sense to me that there should be any difference. /Peter -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Sunday, September 03, 2006 1:53 PM To:

Re: [PHP] Re: Functions vs html outpuit

2006-09-03 Thread Alex Turner
Dave Goodchild wrote: Thanks, that was what I needed to hear. Cheers. On 03/09/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Fri, 01 Sep 2006 16:44:19 +0200, M. Sokolewicz wrote: Dave Goodchild wrote: Hi all, this may seem like a silly question, but I am creating a library of html

Re: [PHP] Crazy behavior...

2006-09-03 Thread Alex Turner
Peter Lauri wrote: Just figured out that it seams to happen when the request is done via AJAX. But it does not make any sense to me that there should be any difference. /Peter -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Sunday, September 03, 2006 1:53 PM To:

RE: [PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
[snip] Can you send an example of the broken HTML? What are the symptoms of the html being broken. Finally, in what way are you using AJAX. This looks like html output - so is it really AJAH? My first guess is that something about the context at the browser end makes td/td - an empty table

RE: [PHP] Crazy behavior...

2006-09-03 Thread Alex Turner
Peter, When it arrives at the browser, via ajax, I am guessing that you then put it into the page view .innerHTML or some other method. I suspect your problem revolves around asking the browser to do stuff it should not really have to do. There are two issues I would like to highlight with

Re: [PHP] Re: Functions vs html outpuit

2006-09-03 Thread Larry Garfield
On Sunday 03 September 2006 09:00, Alex Turner wrote: I would go for the optimize late philosophy. Once you have a site running, load testing it with - eg - JMeter. If a PHP page is taking a lot of the time and it could easily be converted to static HTML, do it at that point. If you code

RE: [PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
Just thought one thing. I did do a alert() on the http.responseText, and that breaks in on the td too, so the response that is sent back probably just ends there... weird... /Peter -Original Message- From: Alex Turner [mailto:[EMAIL PROTECTED] Sent: Sunday, September 03, 2006 11:31 PM

Re: [PHP] local php.ini not recognized in php 5.1.x?

2006-09-03 Thread Aaron Axelsen
Marten, I have also been trying to figure this out. Have you came to any conclusions? I have done some searching and so far haven't found any answers. Is there anyone else on the list that can shed some light on this? Thanks! -- Aaron Marten Lehmann wrote: Hello, we switched from php

RE: [PHP] Crazy behavior...

2006-09-03 Thread Alex Turner
Peter, That is very odd! When you say 'breaks' do you mean, just stops? Is it possible that a 0x00 character is getting in there somehow? It would be good to actually see what is going between the client and the server. Have you ever used JMeter? If you were to proxy between the two with