Page 1 of 1
Coding optimizations...
Posted: Tue Jul 19, 2005 7:06 pm
by Sacapuss
Hi !
I invite you to let me know if you think to any coding or ergonomics optimization on my 2x2 pages at :
http://d.braschi-blondeau.chez.tiscali. ... bj=tableau
and :
http://d.braschi-blondeau.chez.tiscali. ... bj=tableau
Thanx for your help !
Posted: Tue Jul 19, 2005 8:41 pm
by theda
As I don't understand French, and probably will never learn French... Might I suggest you posting the php source code so we may do ask you were asking (optimising your code?)
As far as...
Posted: Tue Jul 19, 2005 9:05 pm
by Sacapuss
Thanx, theda, for your answer !
As far as the site is made out of 42 files, i think i can't post you all of them.
Posted: Tue Jul 19, 2005 11:07 pm
by John Cartwright
How are we expected to point out any possible optmization points if we cannot see the source :\
Posted: Tue Jul 19, 2005 11:30 pm
by Sacapuss
Thank you, Jcart, for wanting to help !
You can see the html, javascript, and css...
Let i show you the leader file :
Code: Select all
<?php // Récupérables.index
if($QUERY_STRING == "e;phpinfo"e;)
{phpinfo(); exit;}
if($QUERY_STRING)
$questring = "e;?$QUERY_STRING"e;;
echo "e;<!-- $SCRIPT_URI$questring -->
<html>"e;;
include "e;Site/data.html"e;;
include "e;$Obj/data.html"e;;
include "e;Site/header.html"e;;
echo "e;<body id=\"e;$obj\"e;>"e;;
include "e;Site/zentete.html"e;;
INCLUDE "e;$Obj/$obj.html"e;;
include "e;Site/pied.html"e;;
include "e;Site/javascript.html"e;;
echo "e;
</body></html>
<!-- fin $SCRIPT_URI -->
"e;;
?>
Posted: Fri Jul 22, 2005 12:07 pm
by theda
You have a slight goof in your coding... "INCLUDE"(Line 18) need to be "include"
Also, when viewing the website underneath your post (where it says "www"), your website shows a Javascript Error... You might want to fix that.
Edit: By the way, I've read in a few PHP-Tutorials that every time you use "include," it forces the script to recompile, increasing load time. If you can, try to limit or lower your useage of "include"
Posted: Fri Jul 22, 2005 4:12 pm
by Ambush Commander
You need to compile the included page. For stuff like HTML, I'm not sure, but maybe file_get_contents() and then echo or something would be faster. It'd be quite neglible though.
Posted: Sun Jul 24, 2005 9:10 pm
by theda
Ambush Commander wrote:You need to compile the included page. For stuff like HTML, I'm not sure, but maybe file_get_contents() and then echo or something would be faster. It'd be quite neglible though.
Hmm, okay.
Hi, and thank you for your answers !
Posted: Sun Jul 31, 2005 4:19 pm
by Sacapuss
Hi, and thank you for your answers !
You have a slight goof in your coding... "INCLUDE"(Line 1Cool need to be "include"
What is wrong with INCLUDE ?
Could you tell me if you see the table body at
http://d.braschi-blondeau.chez.tiscali. ... obj=global ?
Re: Hi, and thank you for your answers !
Posted: Sun Jul 31, 2005 4:30 pm
by Roja
Sacapuss wrote:What is wrong with INCLUDE ?
He means it shouldn't be captialized.
Posted: Sun Jul 31, 2005 7:33 pm
by Sacapuss
Thanx for your answer, Roja !
1.
He means it shouldn't be captialized.
That's what i understood.
The question is : why is it wrong (as far as it works) ?
2. I gave a value to aout (August) and changed document.getElementById('xxx').innerHTML='yyy' in document.write('yyy') inside xxx.
My questions are :
- do you see the table body now;
- can you sort the table body while clicking on each header;
- why does the table crunch when sorted;
- is the last line red for you ?
Thanx for your contribution !
Posted: Mon Aug 01, 2005 8:34 am
by theda
Actually, when I click your links, they go instantly to a 404-Error page in Francois.
And about the other question "include" isntead of "INCLUDE":
There are different types of data in PHP that you could end up incorrectly displaying if you capitalize it. It's just a wise thing to not capitalize things as much as possible (Unless you use $_GET, $_SESSION...etc).
Posted: Wed Aug 03, 2005 3:37 pm
by Sacapuss
Thanx for answering, theda !
The pages are now at
http://d.braschi-blondeau.chez.tiscali. ... dest=malik
Click on one of the 2 first buttons; you should see the tables... Then, let me know.