Well after looking at the template thing you posted with your link it
seems to me like PHP is used to create working XML. So i wonder why
you are using AJAX here.
Now could it be that you use appendChild() ? That function would
simply add the XML again.
It's not easy to tell if you are not showing
I use a pure templating class similar to something that I found here
http://www.talkphp.com/advanced-php-programming/2568-pure-php-template-class
.html. My question is how do you handle AJAX requests from XMLHttpRequest
(); My class pumps out the entire page over again after the AJAX request is
ma
On Fri, 2008-07-18 at 21:28 +0300, Sancar Saran wrote:
> Hello,
>
> I want to write some of my ideas about php performance and maintenance. Also
> you may consider this response to Robert's template systems arguments.
>
> I hope my english does not disturb too much.
>
> As a uneducated php deve
Hello,
I want to write some of my ideas about php performance and maintenance. Also
you may consider this response to Robert's template systems arguments.
I hope my english does not disturb too much.
As a uneducated php developer, I have open mind to anything. I try lots of
things. After so ma
ject: [PHP] Pure PHP menu tree
Hi,
I have been searching on the net for the past 2 hours without success, so
need a recommendation now :-)
Basically i am looking for a PHP "menu tree", looking on google I have found
many but most of them use Javascript with php, or are pure JS or DHTML
Hi,
I have been searching on the net for the past 2 hours without success, so
need a recommendation now :-)
Basically i am looking for a PHP "menu tree", looking on google I have found
many but most of them use Javascript with php, or are pure JS or DHTML, I
want one that is pure php so it will wo
Has anyone ever seen a class which will allow most (if not all) the
functionality of the diff/patch unix tools purely in PHP? I am looking
for the ability to create a standard unified diff of the difference
between two files, and also the ability to take a diff and apply it to a
file. As mentioned
On Dom 02 Jun 2002 21:45, David Freeman wrote:
> > I've noticed that many people on the list code in 'pure' php, i.e.
> >
> > > print "";
> >
> > // etc
> > ?>
>
> Personally, it depends on what I'm doing. I find that excessive use of
> in my code gets distracting so if I need a lot of p
I was getting a typical 2.5% more for pure PHP with the original order -
switching them increases the difference to about 6.5% more for pure PHP.
Make sure you run it several times before drawing any conclusions, BTW.
Strange...
Bogdan
Marcelo Leitner wrote:
>On Mon, Jun 03, 2002 at 05:18:50
This whole discussion made me really curious - so you might want to
check the attachments (access mixtest.php) for a very surprising result
(please note mixed.php and pure.php are exactly the same size so this
doesn't affect the test).
Bogdan
Marcelo Leitner wrote:
>On Mon, Jun 03, 2002 at 0
> Point well-made. I suppose doing it the mixed way might have repercussions
> later on if/when the site grows. Perhaps while the code is still fresh in
my
> mid, it might be worth the effort to separate it.
>
> However, for a good part of the site, I've used CSS for appearance
details,
> and cont
I fell for this some time ago - but the trick is that
1. You don't do for ($i=0; $i<999; $i++) { echo "Line $i\n";
} in real life - you do stuff, call object methods, run queries,
whatever, and in between those you have both html and php - and the
remote machine waits for you to do all
No, it doesn't - just go with whatever's simpler for you... and with
what matches your application better - I don't think this does matter at
all.
Bogdan
Andre Dubuc wrote:
>That's what I meant. I was referring to verification/validation scripts for
>user inputs. I've made a separate page th
> I've noticed that many people on the list code in 'pure' php, i.e.
>
> print "";
>
> // etc
> ?>
Personally, it depends on what I'm doing. I find that excessive use of
in my code gets distracting so if I need a lot of php code I
will usually put the straight html into echo/print str
Thanks Michael,
Point well-made. I suppose doing it the mixed way might have repercussions
later on if/when the site grows. Perhaps while the code is still fresh in my
mid, it might be worth the effort to separate it.
However, for a good part of the site, I've used CSS for appearance details,
I would ask the question "How much HTML before you break out of PHP and into
HTML". My answer is "any". Surely you're making the engine work just to echo
stuff out? But are you asking for more by making it jump in and out between
all those tags?!
Short tags ...
... easier to read in Mixed? I t
That's what I meant. I was referring to verification/validation scripts for
user inputs. I've made a separate page that runs these routines. I have a
feeling I should have incorporated them on the user input page . . . but
does it really amtter if they're on another page?
Andre
On Sunday 02
However...
>From the point of view of someone who has worked in a company where diesign
is separated from development, it is much better to have separate files with
HTML templates with special markers (in the library I use, it is HTML
comments ) so that the two processes are adequately
separated.
I'm not sure what you mean... Is it checking that you fill in the
correct values via PHP or that the submission works - or something else?
Bogdan
Andre Dubuc wrote:
>Thanks Bogdan,
>
>That's what I thought, but I was beginning to feel 'guilty' the more I
>understood php. It seems to me, from
On Sunday 02 June 2002 08:13 pm, you wrote:
> On Sun, Jun 02, 2002 at 07:55:09PM -0400, Andre Dubuc wrote:
> > I've noticed that many people on the list code in 'pure' php, i.e.
> >
> > > print "";
> >
> > // etc
> > ?>
> >
> > Since most of my code is a mixture (the early stuff is 'mixed' html +
Thanks Bogdan,
That's what I thought, but I was beginning to feel 'guilty' the more I
understood php. It seems to me, from my limited experience, that there's much
mor chance for error using 'pure' php (as in forgetting ' or " or closing
with ; -- but . . .
Actually I've found that the 'mixe
No *real* reason - just two not-so-important ones:
1. Clarity
Please compare these two:
-- "MIXED"
-- "PURE"
\n");
$fldcontent=$myrow[0]?$myrow[0]:"no data";
echo("\n");
?>
The second is much easier to read and understand, you must agree.
2. Speed
There's an urban legend saying
I've noticed that many people on the list code in 'pure' php, i.e.
";
// etc
?>
Since most of my code is a mixture (the early stuff is 'mixed' html + php),
I've been wondering why code in 'pure' php? Is there some compelling reason
(that I'm unaware of) for doing so? Should I rewrite all my e
23 matches
Mail list logo