Re: works always with CLI, but not Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Are you using HTTP AUTH?  I had problems with HTTP AUTH.

Also, it's possible that your SOAP URL is causing the error.  The SoapApi
has to fetch it (unless it is being cached), and a delay in that response
could cause an error.

Also, are you sure your GetDHCPLeasesStatus() isn't hanging?  There are too
many issues in here that can cause you timeouts.  Learn to troubleshoot,
grasshopper!

On Mon, 4 Aug 2008, Nathan Wheeler wrote:

So I've got a request that always works when I run it in CLI, but using a
browser, it errors out sometimes. It'll error out when I try to run the
request repeatedly, like just refreshing right after it loads. Is there any
setting for apache2 or php.ini that I should set?

Code is here: http://pastebin.com/d67d627b2

SoapApi Class just extends SoapClient by formatting it right like:

function soapGetDHCPLeasesStatus()
{
       //   Get the list of DHCP leases.
       $rc = $this->GetDHCPLeasesStatus(array());

       return $rc;
}


---------------------------------------------------------------------------
Peter Beckman                                                  Internet Guy
beckman@angryox.com                                 http://www.angryox.com/
---------------------------------------------------------------------------

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux