php-general Digest 11 Feb 2013 09:26:57 -0000 Issue 8118

Topics (messages 320184 through 320187):

Re: Random 404 screens
        320184 by: Jim Giner

fopen and load balancing
        320185 by: Adam Tong
        320186 by: Adam Richardson
        320187 by: marco.behnke.biz

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Im pretty sure its not a script error cause it always works a second later

jg


On Feb 10, 2013, at 2:48 PM, Matijn Woudt <tijn...@gmail.com> wrote:

> 
> 
> 
> On Sun, Feb 10, 2013 at 6:53 PM, Jim Giner <jim.gi...@albanyhandball.com> 
> wrote:
> On 2/10/2013 12:45 PM, Andy McKenzie wrote:
> On Sat, Feb 9, 2013 at 11:51 AM, Geoff Shang <ge...@quitelikely.com> wrote:
> On Sat, 9 Feb 2013, Jim Giner wrote:
> 
> Lately, my web pages are giving me some problems.  Once a day or so one or
> more of my pages/scripts will give me a 404 error page saying my web page
> has timed out.  Problem is that the page was just displayed.  I click on a
> link, the page shows up, I click on a button on it to trigger some activity
> and voila!  An error.  I hit refresh and my page is back and things work ok.
> 
> 
> Since someone mentioned network issues, I will ask this question.
> 
> Is it actually a "404" page?  That is to say, does the string "404" actually
> appear in the error document?
> 
> If it does, then this would rule out your home network, as 404 is a response
> code returned by the webserver.
> 
> Geoff.
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> This is a good point, and one I hadn't thought of.  I saw "Network
> time out" and thought network problems, but Geoff is right.  If it's
> actually a 404, it's not a network problem between you and the server.
> 
> -Andy
> 
> The page has a "404" code in it.  Next time I see one (been good today so 
> far) I'll c/p it in here.
> 
> 
> There are btw much web servers that provide an error, and then give an 404 
> error because they can't find an error page for that error code.
> 
> - Matijn

--- End Message ---
--- Begin Message ---
Hi,

We had an issue with the code of a junior php developer that used
fopen to load images using the url of the companies website that is
load balanced.

We could not the detect the problem in dev and test because the dev
and test servers are not load balanced.

I know that he could load the images using just the filesystem, but I
am curious to know why it failed and if the load balancer is really
the source of the problem or it is a limitation on the function
itself.

Thank you

--- End Message ---
--- Begin Message ---
On Sun, Feb 10, 2013 at 5:41 PM, Adam Tong <adam.to...@gmail.com> wrote:

> Hi,
>
> We had an issue with the code of a junior php developer that used
> fopen to load images using the url of the companies website that is
> load balanced.
>
> We could not the detect the problem in dev and test because the dev
> and test servers are not load balanced.
>
> I know that he could load the images using just the filesystem, but I
> am curious to know why it failed and if the load balancer is really
> the source of the problem or it is a limitation on the function
> itself.
>
> Thank you
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I'm not sure it sounds like an issue with the load balancer, as a load
balancer shouldn't have any qualm with passing through the image data
associated with an http request (which is what the fopen wrapper
essentially performs behind the scenes.) It's possible that the prod
servers (those making the call to fopen) aren't configured to allow the
http wrapper. It could just be as simple as allow_url_fopen being set to
false, in contrast to the configuration of the dev server(s).

http://php.net/manual/en/function.fopen.php
http://php.net/manual/en/wrappers.php
http://www.php.net/manual/en/wrappers.http.php

Adam

-- 
Nephtali:  A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com

--- End Message ---
--- Begin Message ---

Adam Tong <adam.to...@gmail.com> hat am 10. Februar 2013 um 23:41 geschrieben:
> Hi,
>
> We had an issue with the code of a junior php developer that used
> fopen to load images using the url of the companies website that is
> load balanced.
>
> We could not the detect the problem in dev and test because the dev
> and test servers are not load balanced.
>
> I know that he could load the images using just the filesystem, but I
> am curious to know why it failed and if the load balancer is really
> the source of the problem or it is a limitation on the function
> itself.

Do you have any error messages for us?
If the load balancer accessable from the internal servers? Normally it is not.


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

--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: ma...@behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz

--- End Message ---

Reply via email to