[PHP] Browser going to page twice?

2002-11-24 Thread Leif K-Brooks
I'm having a weird problem.  When I submit a form on my site, it often 
sends twice.  I'm not sure if this is a client-side or server-side 
problem, but it doesn't happen on other sites.  Is this a common 
problem, or am I making some dumb mistake?

--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
I'm having a weird problem.  When I go to a page on my site, it often
goes twice.  I'm not sure if this is a client-side or server-side
problem, but it doesn't happen on other sites.  Is this a common
problem, or am I making some dumb mistake?

--
The above message is encrypted with double rot13 encoding.  Any 
unauthorized attempt to decrypt it will be prosecuted to the full extent 
of the law.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Browser going to page twice?

2002-11-25 Thread @ Edwin
Hello,

"Leif K-Brooks" <[EMAIL PROTECTED]> wrote:

> I'm having a weird problem.

I guess so. I don't understand what it is :)

> When I submit a form on my site, it often 
> sends twice. 

Sends what twice?

> I'm not sure if this is a client-side or server-side 
> problem, but it doesn't happen on other sites.

Which sites?

> Is this a common 
> problem, or am I making some dumb mistake?

I'm not sure :) But perhaps you can post some code or something...

- E

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Browser going to page twice?

2002-12-02 Thread Morgan Hughes
On Mon, 2 Dec 2002, Leif K-Brooks wrote:
> I'm having a weird problem.  When I go to a page on my site, it often
> goes twice.  I'm not sure if this is a client-side or server-side
> problem, but it doesn't happen on other sites.  Is this a common
> problem, or am I making some dumb mistake?

  Is it the index.php of a directory?  Often if you go to
http://server/directory
  Apache rewrites that to
http://server/directory/
  with a Location header or some such.  If entering it in your browser
  with the slash fixes it, that's the one.

  Modern browsers seem to automatically add a slash if you just put in
www.domain.com
  as part of converting it to
http://www.domain.com/
  but for subdirectories there is often a redirect.

  hope this helps!

-- 
   Morgan Hughes
   C programmer and highly caffeinated mammal.
   [EMAIL PROTECTED]
   ICQ: 79293356



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
Nope, it happens on all of the pages, but it seems to be fairly random. 
It doesn't happen all of the time, just sometimes.

Morgan Hughes wrote:

On Mon, 2 Dec 2002, Leif K-Brooks wrote:
 

I'm having a weird problem.  When I go to a page on my site, it often
goes twice.  I'm not sure if this is a client-side or server-side
problem, but it doesn't happen on other sites.  Is this a common
problem, or am I making some dumb mistake?
   


 Is it the index.php of a directory?  Often if you go to
   http://server/directory
 Apache rewrites that to
   http://server/directory/
 with a Location header or some such.  If entering it in your browser
 with the slash fixes it, that's the one.

 Modern browsers seem to automatically add a slash if you just put in
   www.domain.com
 as part of converting it to
   http://www.domain.com/
 but for subdirectories there is often a redirect.

 hope this helps!

 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.





Re: [PHP] Browser going to page twice?

2002-12-02 Thread Morgan Hughes
On Mon, 2 Dec 2002, Leif K-Brooks wrote:
> Nope, it happens on all of the pages, but it seems to be fairly random.
> It doesn't happen all of the time, just sometimes.

  You're using what server...  Apache I hope?  There is an Apache
  directive (in 1.3 at least) that controls whether the server sends back
  replies with the name it was called by, or the "official" name of the
  server.  UseCanonicalName and ServerName may be the answer.  I've seen
  this effect with those options using authentication...

  If not that, then I don't have a solution, but I sure admire the
  problem! ^_^

-- 
   Morgan Hughes
   C programmer and highly caffeinated mammal.
   [EMAIL PROTECTED]
   ICQ: 79293356



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
Yes, I'm using Apache 1.3.22.  Mind giving specifics on what to set 
those options to?  I'm not very great with configuring apache...

Morgan Hughes wrote:

On Mon, 2 Dec 2002, Leif K-Brooks wrote:
 

Nope, it happens on all of the pages, but it seems to be fairly random.
It doesn't happen all of the time, just sometimes.
   


 You're using what server...  Apache I hope?  There is an Apache
 directive (in 1.3 at least) that controls whether the server sends back
 replies with the name it was called by, or the "official" name of the
 server.  UseCanonicalName and ServerName may be the answer.  I've seen
 this effect with those options using authentication...

 If not that, then I don't have a solution, but I sure admire the
 problem! ^_^

 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.





Re: [PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
Hmm, nope.  It's now off and it's still doing that.  (I did restart apache)

Morgan Hughes wrote:


On Mon, 2 Dec 2002, Leif K-Brooks wrote:

 

Yes, I'm using Apache 1.3.22.  Mind giving specifics on what to set
those options to?  I'm not very great with configuring apache...
   


 Basically, you can have any number of names resolve to the server's IP
 address, via DNS or hosts files (/etc/hosts, c:\windows\hosts, or
 c:\windows\system32\drivers\etc\hosts).  This is especially true if
 you're doing virtual hosting on the server.

 You use ServerName to tell the server what it's DNS name is, so it
 doesn't have to look it up.  This may be just one of the several names
 you can give the server, but it's the one it will reply with, and the
 one it will print out on directory indexes and error messages.

 As long as you set UseCanonicalName, the server will use with the
 ServerName, or whatever it looked up for its IP address.  This may be
 different to whatever you accessed it by, so it may redirect you to the
 same page with the new name.  If you turn off UseCanonicalName, the
 server will reply with whatever name you used to contact it, which may
 solve this problem.

 I almost always run with UseCanonicalName off, on my development
 servers...  For production servers one doesn't usually have that level
 of control...  If you can turn it off, try that.  I'm not sure it'll
 help, but it's worth a try.

 Good luck!

 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.





Re: [PHP] Browser going to page twice?

2002-12-05 Thread Step Schwarz
on 12/2/02 6:12 PM, Leif K-Brooks at [EMAIL PROTECTED] wrote:

> I'm having a weird problem.  When I go to a page on my site, it often
> goes twice.  I'm not sure if this is a client-side or server-side
> problem, but it doesn't happen on other sites.  Is this a common
> problem, or am I making some dumb mistake?

Is this a public site that we can take a look at? I know there are some
JavaScripts which refresh/reload pages in order to work around bugs in
Netscape 4.  Is there by any chance anything in your site's  tags
which does this?

-Step


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php