Re: [PHP] why so slow?

2006-11-03 Thread Richard Lynch
On Thu, November 2, 2006 3:01 pm, Alan Milnes wrote: Robin Vickery wrote: include(http://www.squareinch.net/include/misc.inc;); Don't call files .inc - call them .inc.php if you really must have the inc somewhere, that way the Web Server will actually treat it as a php file and not display

Re: [PHP] why so slow?

2006-11-03 Thread Jon Anderson
Richard Lynch wrote: On Thu, November 2, 2006 3:01 pm, Alan Milnes wrote: Don't call files .inc - call them .inc.php if you really must have the inc somewhere, that way the Web Server will actually treat it as a php file and not display your details to the world if accessed directly.

Re: [PHP] why so slow?

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 1:12 pm, Jon Anderson wrote: Or you can .htaccess Deny From All them out... That's my preferred solution. It keeps the include tree near the code that accompanies it without risking anything even if they're called *.php. Until you upgrade Apache and forget to enable

Re: [PHP] why so slow?

2006-11-03 Thread Jon Anderson
Richard Lynch wrote: On Fri, November 3, 2006 1:12 pm, Jon Anderson wrote: Or you can .htaccess Deny From All them out... That's my preferred solution. It keeps the include tree near the code that accompanies it without risking anything even if they're called *.php. Until you upgrade

Re: [PHP] why so slow?

2006-11-02 Thread John Nichel
Mel wrote: Your advice is well taken and thank you. I do have a book with the help of which I made this site and I have been working on it for many many weeks. (ashamed to say exactly how many!) Remember your first ever php site? Yep, it was for a Fortune 500 company, but that's not the

Re: [PHP] why so slow?

2006-11-02 Thread tedd
At 4:00 PM -0800 11/1/06, Mel wrote: I am sure there are things even you don't know or understand Hey, that's not the first time I've heard that -- who's spreading that rumor? The subject line is not directed at me, is it? :-) As I think Will Rogers once said We're all ignorant, only in

Re: [PHP] why so slow?

2006-11-02 Thread Alan Milnes
Robin Vickery wrote: include(http://www.squareinch.net/include/misc.inc;); Don't call files .inc - call them .inc.php if you really must have the inc somewhere, that way the Web Server will actually treat it as a php file and not display your details to the world if accessed directly. Alan

Re: [PHP] why so slow?

2006-11-02 Thread Dave Goodchild
Better still, keep them outside the docroot. If you do insist on having them inside and insist on calling them *.inc, create an .htaccess file that stops download of *.inc files.

Re: [PHP] why so slow?

2006-11-02 Thread Mel
Thank you both so much. I did change the name. I was chocked to see all my passwords displayed in the browser! On Nov 2, 2006, at 1:15 PM, Dave Goodchild wrote: Better still, keep them outside the docroot. If you do insist on having them inside and insist on calling them *.inc, create an

Re: [PHP] why so slow?

2006-11-02 Thread clive
Mel wrote: I do have a book with the help of which I made this site and I have been working on it for many many weeks. (ashamed to say exactly how many!) Remember your first ever php site? No I am sure there are things even you don't know or understand and that you can use help from other

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
Bad day? /frank 1 nov 2006 kl. 09.55 skrev Mel: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why so slow?

2006-11-01 Thread Robert Cummings
On Wed, 2006-11-01 at 00:55 -0800, Mel wrote: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php That's a bit like asking us to read your mind. We'd only be guessing since we can't see your code and you haven't told us what your site does. What I can say is

Re: [PHP] why so slow?

2006-11-01 Thread Mel
So do you mean that's it is ok and not slow? On Nov 1, 2006, at 1:09 AM, Robert Cummings wrote: On Wed, 2006-11-01 at 00:55 -0800, Mel wrote: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php That's a bit like asking us to read your mind. We'd only be

Re: [PHP] why so slow?

2006-11-01 Thread Mel
This is my first php site and I have no idea where to look for a reason! On Nov 1, 2006, at 1:07 AM, Frank Arensmeier wrote: Bad day? /frank 1 nov 2006 kl. 09.55 skrev Mel: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php -- PHP General Mailing List

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
Maybe it's the 18 k of JavaScript from Google that slows your page down? Why not load this script locally from your server? /frank 1 nov 2006 kl. 10.26 skrev Mel: So do you mean that's it is ok and not slow? On Nov 1, 2006, at 1:09 AM, Robert Cummings wrote: On Wed, 2006-11-01 at 00:55

Re: [PHP] why so slow?

2006-11-01 Thread Robert Cummings
On Wed, 2006-11-01 at 01:26 -0800, Mel wrote: So do you mean that's it is ok and not slow? I'm saying we can't ascertain why it's so slow since we don't have enough information. Cheers, Rob. -- .. | InterJinn Application Framework -

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
My suggestion: stripp out the JS from Google. Test you page again. Should the page load as slowly as before, it might have to do with PHP. Then, give us more details about your script) /frank 1 nov 2006 kl. 10.53 skrev Robert Cummings: On Wed, 2006-11-01 at 01:26 -0800, Mel wrote: So do

Fwd: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
Please send a CC of your answer to the PHP list as well... /frank Vidarebefordrat brev: Från: Toby Osbourn [EMAIL PROTECTED] Datum: onsdag 1 nov 2006 10.57.17 GMT+01:00 Till: Frank Arensmeier [EMAIL PROTECTED] Ämne: Re: [PHP] why so slow? Yeah it will be that hit counter or whatever

Re: [PHP] why so slow?

2006-11-01 Thread Mel
I took the Google stuff out. I can't tell if it's faster now. I don't think it's very consistent. Sometimes it loads pretty fast and sometimes it gets stuck in the right corner! I don't think I have seen this happen with any other site! On Nov 1, 2006, at 2:12 AM, Frank Arensmeier wrote: My

Re: [PHP] why so slow?

2006-11-01 Thread Mel
as well... /frank Vidarebefordrat brev: Från: Toby Osbourn [EMAIL PROTECTED] Datum: onsdag 1 nov 2006 10.57.17 GMT+01:00 Till: Frank Arensmeier [EMAIL PROTECTED] Ämne: Re: [PHP] why so slow? Yeah it will be that hit counter or whatever it is you are trying to load - I had one myself that used

Re: [PHP] why so slow?

2006-11-01 Thread Jürgen Wind
Frank Arensmeier wrote: My suggestion: stripp out the JS from Google. Test you page again. Should the page load as slowly as before, it might have to do with PHP. Then, give us more details about your script) /frank 1 nov 2006 kl. 10.53 skrev Robert Cummings: On Wed,

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
Why do you have html tags before your doctype declaration? Anyway, I am not sure if your problem has to do with PHP after all. Again, if you think that it is related to PHP, show us some code. There are still other things to consider (server, external files, CSS - neither of those things

[PHP] Re: [BULK] [PHP] why so slow?

2006-11-01 Thread clive
Mel wrote: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php perhaps its the server that its hosted on, is it a dedicated machine,shared or a virtual private server. It could also be the bandwidth the server has, It could be the route taken to get to the

Re: [PHP] Re: [BULK] [PHP] why so slow?

2006-11-01 Thread Mel
:) I know it is a dedicated server on westhost.com I wouldn't know how to check for the kind of connection! thanks, and all the best... On Nov 1, 2006, at 3:10 AM, clive wrote: Mel wrote: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php perhaps its the

Re: [PHP] Re: [BULK] [PHP] why so slow?

2006-11-01 Thread Dave Goodchild
The guys are right, there are many variables that could be affecting this. However, get rid of those tags before body and clean up your code - it does not validate as html 4.01. The DOCTYPE should be the very first thing in the page. Once you have amended these, revalidate (validator.w3c.org).

Re: [PHP] Re: [BULK] [PHP] why so slow?

2006-11-01 Thread Mel
ok, thank you. I am on it! On Nov 1, 2006, at 3:24 AM, Dave Goodchild wrote: The guys are right, there are many variables that could be affecting this. However, get rid of those tags before body and clean up your code - it does not validate as html 4.01. The DOCTYPE should be the very

Re: [PHP] why so slow?

2006-11-01 Thread Robin Vickery
On 01/11/06, Mel [EMAIL PROTECTED] wrote: Here is the code for a testing page: http://www.squareinch.net/ client_testing.php?art=btw_logo.jpg I am sure it is a mess since it is my first!!! [] include(http://www.squareinch.net/include/misc.inc;); Don't do that - publishing your

Re: [PHP] why so slow?

2006-11-01 Thread Robin Vickery
On 01/11/06, Mel [EMAIL PROTECTED] wrote: Thank you so much. Yes, I was afraid of putting my passwords... I can move the include file outside the directory, but what do you mean by include the file directly Please respond to the list What I meant was to do this:

Re: [PHP] why so slow?

2006-11-01 Thread Mel
ok I have fixed my html and include http://www.squareinch.net/client_testing_html401.php could you please help me figure out how to change the query in box 4 so that it shows the url only when the link is active? On Nov 1, 2006, at 5:11 AM, Robin Vickery wrote: On 01/11/06, Mel [EMAIL

Re: [PHP] why so slow?

2006-11-01 Thread Dave Goodchild
Take out the comment before the DOCTYPE. There should be nothing before it.

Re: [PHP] why so slow?

2006-11-01 Thread Mel
I have this is the page I am working on right now and it is valid html 4.01 http://www.squareinch.net/client_testing_html401.php On Nov 1, 2006, at 5:32 AM, Dave Goodchild wrote: Take out the comment before the DOCTYPE. There should be nothing before it.

Re: [PHP] why so slow?

2006-11-01 Thread M.Sokolewicz
No you have not, otherwise we would not be seeing: !-- * start header -- !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head when we SHOULD be seeing !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

Re: [PHP] why so slow?

2006-11-01 Thread John Nichel
Mel wrote: I have this is the page I am working on right now and it is valid html 4.01 http://www.squareinch.net/client_testing_html401.php Bzzttt. No, it isn't. The people here have been pretty accommodating of you so far, but if you continue to *not* do any research yourself,

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
In fact, validator.w3.org validates the hmtl page at http:// www.squareinch.net/client_testing_html401.php as valid 4.01 html. So obviously, html comments are allowed before the doctype declaration. Anyway, the page contains almost one hundred (haven't count them) totally unnecessary empty

Re: [PHP] why so slow?

2006-11-01 Thread Richard Lynch
On Wed, November 1, 2006 2:55 am, Mel wrote: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php Install Firefox and an HTML Validator. Look at your View Source Your !doctype isn't even the first line! :-) That urchintracker() stuff will probably kill

Re: [PHP] why so slow?

2006-11-01 Thread Mel
Your advice is well taken and thank you. I do have a book with the help of which I made this site and I have been working on it for many many weeks. (ashamed to say exactly how many!) Remember your first ever php site? I truly do appreciate all the help I got and it did lead me to