[PHP] Re: MySQL and PHP weirdness

2012-02-14 Thread David Robley
Richard S. Crawford wrote: > Bear with me here. I have a problem with PHP and MySQL that's been > stumping me for a couple of days now. I'm not even sure how to describe > it, so I'll just do my best. > > There's a row in our bugs database that looks like every other row in the > table, but when

[PHP] MySQL and PHP weirdness

2012-02-14 Thread Richard S. Crawford
Bear with me here. I have a problem with PHP and MySQL that's been stumping me for a couple of days now. I'm not even sure how to describe it, so I'll just do my best. There's a row in our bugs database that looks like every other row in the table, but when it's pulled from the database and displa

Re: [PHP] handle file_get_contents timeout including dns lookup time

2012-02-14 Thread Marco Behnke
Am 14.02.12 14:55, schrieb Matijn Woudt: > On Tue, Feb 14, 2012 at 1:28 PM, nik600 wrote: >> >> *** server.php *** placed on www.foo.com at >> http://www.foo.com/server.php >> > sleep(15); >> echo "OK"; >> ?> >> > I don't think this is possible with file_get_contents, but it should > work

Re: [PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
Thanks Dan. As it turned out the reason for not showing the passed values is that I didn't have "www" in the destination address and the values must have been getting lost when Apache redirected requests without www to the fully formed URL. --Rick On Feb 14, 2012, at 1:39 PM, Daniel B

Re: [PHP] Form Post to different domain

2012-02-14 Thread Daniel Brown
On Tue, Feb 14, 2012 at 13:36, Rick Dwyer wrote: > > I only have access to domain B... the one receiving the Form POST. Then all you should need to do is: a.) Verify that Domain A is indeed pointing to Domain B, to the script you expect, as a POST request. b.) In the POST-rec

Re: [PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
On Feb 14, 2012, at 1:16 PM, Daniel Brown wrote: On Tue, Feb 14, 2012 at 13:14, Rick Dwyer wrote: Hello all. If I have a form on domain A that uses POST to submit data and I want to submit the form to domain B on an entirely different server, how do I pull the form values (... echo $_POS

Re: [PHP] Form Post to different domain

2012-02-14 Thread Daniel Brown
On Tue, Feb 14, 2012 at 13:14, Rick Dwyer wrote: > Hello all. > > If I have a form on domain A that uses POST to submit data and I want to > submit the form to domain B on an entirely different server, how do I pull > the form values (... echo $_POST["myval"] returns nothing) from the form > a

[PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
Hello all. If I have a form on domain A that uses POST to submit data and I want to submit the form to domain B on an entirely different server, how do I pull the form values (... echo $_POST["myval"] returns nothing) from the form at domain B? --Rick -- PHP General Mailing List

Re: [PHP] Can php be configured to browse through a proxy?

2012-02-14 Thread Matijn Woudt
On Tue, Feb 14, 2012 at 5:41 PM, Joan wrote: > There is some information about configuring php to use a proxy when > connecting to external urls. > > According to some sources the proper setup option is by using > the stream-context-set-default function ( > http://www.php.net/manual/en/function.st

[PHP] Can php be configured to browse through a proxy?

2012-02-14 Thread Joan
There is some information about configuring php to use a proxy when connecting to external urls. According to some sources the proper setup option is by using the stream-context-set-default function ( http://www.php.net/manual/en/function.stream-context-set-default.php) Still I have not been able

Re: [PHP] handle file_get_contents timeout including dns lookup time

2012-02-14 Thread Matijn Woudt
On Tue, Feb 14, 2012 at 1:28 PM, nik600 wrote: > Dear all > > i'm trying to handle a max timeout into a file_get_contents request, > this is my code: > > *** client.php *** placed on http://test.foo.com/client.php > ini_set('default_socket_timeout',10); > $ctx = stream_context_create(arra

[PHP] handle file_get_contents timeout including dns lookup time

2012-02-14 Thread nik600
Dear all i'm trying to handle a max timeout into a file_get_contents request, this is my code: *** client.php *** placed on http://test.foo.com/client.php array('timeout' => 10))); $data = file_get_contents("http://www.foo.com/server.php",0,$ctx); if(!data){ die("error during page reques