|When I try to run the test.php show error:|
[05-Apr-2013 15:12:08 UTC] PHP Fatal error: Call to undefined function curl_init() in C:\inetpub\wwwroot\class.ponvif.php on line 564
|2013-04-09 15:50:40 - In reply to message 1 from Anderson Sandri|
that error means that you don't have curl extension installed.
It's important to install php CURL extension. For example on a debian/linux environment:
apt-get install php5-curl
Check also http://www.squidoo.com/onvif-programming-revealed
|2013-04-10 22:05:20 - In reply to message 2 from Lorenzo Toscano|
|Ok, thanks. Now is working. I runned your test.php and show this: Array ( ) Media url: Device url: Ptz url: Array ( [major] => 0 [minor] => 0 ) Array ( [Fault] => malformed ) Array ( ) Array ( ) Array ( ) Array ( ) GotoPreset executed successfully|
Can you explain better how to use this code? I'm new in php code. Thanks
|2013-04-15 16:23:02 - In reply to message 3 from Anderson Sandri|
if possible, send me ip address and account data of your camera. I'll try on my side.
|2013-04-29 11:49:41 - In reply to message 4 from Lorenzo Toscano|
|Hello M. Lorenzo|
I have the same response (Array ( ) Array ( ) Array ( ) Array ( ) GotoPreset executed successfully )
when executing test.php can you help me please.
|2013-07-10 12:39:11 - In reply to message 5 from Soltani Maamoun|
|Hello M. Lorenzo,|
The same with me.
Warning: Invalid argument supplied for foreach() in Z:\home\localhost\www\Camtube\classes\PonvifClass.php on line 494
Array ( ) Media url: Device url: Ptz url: Array ( [major] => 0 [minor] => 0 ) Array ( [Fault] => malformed ) Array ( ) Array ( ) Array ( ) Array ( ) GotoPreset executed successfully
I have remote ONVIF IP camera, so i can't check this class in the local (with camera) network. Think it's port problem. So, what port number should be open?