Faster web site questions
From: Bob Bedford (bedford1_at_YouKnowWhatToDohotmail.com)
Date: 01/29/04
- Next message: Roy A Johnson: "linking unique id in mysql to URL"
- Previous message: Eric Bohlman: "Re: stop someone reloading a page"
- Next in thread: Tim Van Wassenhove: "Re: Faster web site questions"
- Reply: Tim Van Wassenhove: "Re: Faster web site questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Jan 2004 11:35:35 +0100
Q1 Wich is faster ???
a) echo
b) print
c) sprintf
Q2: (better an echo, print or sprintf (take the faster on question 1) or
stop the php code, put HTML code and then restart php code)
a)
....
echo("<td><tr><table>");
....
b)
....?>
<td><tr><table>
<?php...
Q3: Also, better have 1 big file with lot of code (560 lines of code
actually for my biggest file) or 3 files of 200 lines ??? for the same
result (I mean the big file call itself with different forms, instead of
calling every time an other file)
Q4: I've a lot of variables between pages (about 20 on the worst case). For
improving speed, should I use Session variables or hidden var between pages
(I don't mind on the code, anyway for taking the code between pages, the
only things that changes is that I don't have to "post" every time the same
variables if I use Sessions, as with hidden fields, every time I submit a
form, either with a user's click or a javascript submit, first I've to
affect hidden variables for the next page).
Thanks to the Guru that will help me.
BoB
- Next message: Roy A Johnson: "linking unique id in mysql to URL"
- Previous message: Eric Bohlman: "Re: stop someone reloading a page"
- Next in thread: Tim Van Wassenhove: "Re: Faster web site questions"
- Reply: Tim Van Wassenhove: "Re: Faster web site questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|