Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/250.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 与zend中的Ip地址连接时出现问题_Php_Zend Framework_Curl - Fatal编程技术网

Php 与zend中的Ip地址连接时出现问题

Php 与zend中的Ip地址连接时出现问题,php,zend-framework,curl,Php,Zend Framework,Curl,亲爱的支持者: $data=array( "themeName"=>"gghg" ); $adapter = new Zend_Http_Client_Adapter_Curl(); $adapter->setConfig($curlOption);

亲爱的支持者:

   $data=array(
                                    "themeName"=>"gghg"

                            );

                    $adapter = new Zend_Http_Client_Adapter_Curl();
                    $adapter->setConfig($curlOption);

                    //instantiate the http client and add set the adapter
                    $client = new Zend_Http_Client("http://50.55.146.221/curl_page.php");
                    $client->setAdapter($adapter);

                    //add the post parameters from our config file (the authentication part)
                    $client->setParameterPost($data);

                    //perform the post, and get the response
                    $response = $client->request(Zend_Http_Client::POST);
错误:

Fatal error: Uncaught exception 'Zend_Uri_Exception' with message 'Invalid URI supplied' in /var/www/html/ursify/Source/ursify.com/library/Zend/Uri/Http.php:
我正在尝试创建客户端对象“$client=new Zend_Http_client
(”http://50.55.146.221/curl_page.php”;“


我哪里做错了?帮帮我看来一切都很好。我已经测试了您的代码,除了cUrl调用中的timeout之外,没有其他错误。我已经用ZF 1.12.7进行了测试,对不需要的空白和隐藏字符进行了修剪。现在它可以工作了