limweb / sabreamf

Automatically exported from code.google.com/p/sabreamf
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Problem in client creation #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PHP 5.3.0, sbre amf via pear working with flex

i write

<?php
require 'SabreAMF/Client.php';

function make_request($infos){
    $client = new SabreAMF_Client('http://127.0.0.1/test/index.php');
    return $client->sendRequest('classname.getTestA',array($infos));
}

$result=make_request('am*');
?>

link, class name , method works perfect in flex but the call in php is not
working 

I obtain:

Fatal error: Call to undefined function curl_init() in
C:\wamp\bin\php\php5.3.0\PEAR\SabreAMF\Client.php on line 131
Call Stack
#   Time    Memory  Function    Location
1   0.9341  360512  {main}( )   ..\EmptyPHP.php:0
2   0.9590  921128  make_request( ) ..\EmptyPHP.php:9
3   0.9591  923472  SabreAMF_Client->sendRequest( ) ..\EmptyPHP.php:6

Original issue reported on code.google.com by riccardo...@gmail.com on 22 Feb 2010 at 9:07

GoogleCodeExporter commented 9 years ago
This is not a bug in SabreAMF. 

The SabreAMF client requires the Curl extension to be installed, which is not 
the
case for you. Install Curl and try again.

Original comment by evert...@gmail.com on 22 Feb 2010 at 9:31

GoogleCodeExporter commented 9 years ago
I have curl enabled in php.ini and i have tested it because i use it to post 
data. I
try to reinstall the apache/php config and i inform you.
Can i do other test?

Original comment by riccardo...@gmail.com on 23 Feb 2010 at 1:21

GoogleCodeExporter commented 9 years ago
This is a perfect test though. When the curl extension is installed and 
enabled, it
crates the curl_init() function.

The only reason you would get this error, is if curl is not correctly installed.

Original comment by evert...@gmail.com on 23 Feb 2010 at 1:59