php-general Digest 26 Sep 2013 14:49:48 -0000 Issue 8378
php-general Digest 26 Sep 2013 14:49:48 - Issue 8378 Topics (messages 322177 through 322197): PHP and curl 322177 by: Alf Stockton 322178 by: Shawn McKenzie 322181 by: Shawn McKenzie 322197 by: Shawn McKenzie Re: php fopen https error 322179 by: Shawn McKenzie 322180 by: Shawn McKenzie 322182 by: Markus Falb 322183 by: Markus Falb 322184 by: Shawn McKenzie https question 322185 by: Tedd Sperling 322186 by: Joshua Kehn 322187 by: Tedd Sperling 322188 by: Joshua Kehn 322189 by: Daniel Brown Sending PHP mail with Authentication 322190 by: dealTek 322191 by: Aziz Saleh 322192 by: Camilo Sperberg 322193 by: Camilo Sperberg PHPDoc way to describe the magic getter/setters [SOLVED] 322194 by: Daevid Vincent 322195 by: David Harkness Re: Apache 322196 by: Robert Stone Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail: php-general-digest-unsubscr...@lists.php.net To post to the list, e-mail: php-gene...@lists.php.net -- ---BeginMessage--- In an attempt to interface with a webservice on a Windows 7 server I have started writing the following:- [code] ?php $strTerminalname = CIS; $version = 1.2; $client = new SoapClient(http://192.168.0.10/CISWebService/Mediamanager.asmx?WSDL;); var_dump($client-__getFunctions()); $result = $client-__doRequest(GetSequenceNo,$strTerminalname,$version, $one_way = 0); ? [/code] and I execute it via php php-soap-web-service.php test.txt on my Ubuntu 13.04 laptop using php version Zend Engine v2.4.0 in return I get array(20) { [0]= string(59) GetMediaListResponse GetMediaList(GetMediaList $parameters) [1]= string(68) GetMediaListAllResponse GetMediaListAll(GetMediaListAll $parameters) [2]= string(59) GetSoundListResponse GetSoundList(GetSoundList $parameters) [3]= string(77) GetTerminalDataXMLResponse GetTerminalDataXML(GetTerminalDataXML $parameters) [4]= string(59) GetRouterXmlResponse GetRouterXml(GetRouterXml $parameters) [5]= string(80) GetTerminalSoundXMLResponse GetTerminalSoundXML(GetTerminalSoundXML $parameters) [6]= string(62) SetSequenceNoResponse SetSequenceNo(SetSequenceNo $parameters) [7]= string(50) GetConfigResponse GetConfig(GetConfig $parameters) [8]= string(62) GetSequenceNoResponse GetSequenceNo(GetSequenceNo $parameters) [9]= string(95) UpdateClientMediaLogTimeResponse UpdateClientMediaLogTime(UpdateClientMediaLogTime $parameters) [10]= string(59) GetMediaListResponse GetMediaList(GetMediaList $parameters) [11]= string(68) GetMediaListAllResponse GetMediaListAll(GetMediaListAll $parameters) [12]= string(59) GetSoundListResponse GetSoundList(GetSoundList $parameters) [13]= string(77) GetTerminalDataXMLResponse GetTerminalDataXML(GetTerminalDataXML $parameters) [14]= string(59) GetRouterXmlResponse GetRouterXml(GetRouterXml $parameters) [15]= string(80) GetTerminalSoundXMLResponse GetTerminalSoundXML(GetTerminalSoundXML $parameters) [16]= string(62) SetSequenceNoResponse SetSequenceNo(SetSequenceNo $parameters) [17]= string(50) GetConfigResponse GetConfig(GetConfig $parameters) [18]= string(62) GetSequenceNoResponse GetSequenceNo(GetSequenceNo $parameters) [19]= string(95) UpdateClientMediaLogTimeResponse UpdateClientMediaLogTime(UpdateClientMediaLogTime $parameters) } now this is all great but my question is how do I call each of these functions with parameters. The call I immediately need to make is to GetSequenceNo() which requires a parameter of CIS in my current configuration. How do I do this ? Obviously $client-__doRequest is not the way to go. -- Regards, Alf Stockton www.stockton.co.za ---End Message--- ---BeginMessage--- SOAP functions can be called as methods of the SoapClient object. Maybe: $client-GetSequenceNo( $parameters ); -Shawn On Wed, Sep 25, 2013 at 9:17 AM, Alf Stockton a...@stockton.co.za wrote: In an attempt to interface with a webservice on a Windows 7 server I have started writing the following:- [code] ?php $strTerminalname = CIS; $version = 1.2; $client = new SoapClient(http://192.168.0.** 10/CISWebService/Mediamanager.**asmx?WSDLhttp://192.168.0.10/CISWebService/Mediamanager.asmx?WSDL ); var_dump($client-__**getFunctions()); $result = $client-__doRequest(**GetSequenceNo,$**strTerminalname,$version, $one_way = 0); ? [/code] and I execute it via php php-soap-web-service.php test.txt on my Ubuntu 13.04 laptop using php version Zend Engine v2.4.0 in return I get array(20) { [0]= string(59) GetMediaListResponse GetMediaList(GetMediaList $parameters) [1]= string(68)
php-general Digest 27 Sep 2013 04:56:29 -0000 Issue 8379
php-general Digest 27 Sep 2013 04:56:29 - Issue 8379 Topics (messages 322198 through 322199): Re: Sending PHP mail with Authentication 322198 by: Maciek Sokolewicz How to capture uploaded file data 322199 by: Mariusz Drozdowski Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail: php-general-digest-unsubscr...@lists.php.net To post to the list, e-mail: php-gene...@lists.php.net -- ---BeginMessage--- On 25-9-2013 22:11, dealTek wrote: Hi All, Semi newbie email question... I have used the - mail() — Send mail php function to send email from a site. now it seems the server is blocking this for safety because I should be using authentication Q: mail() does not have authentication - correct? Q: So I read from the link below that maybe I should use - PEAR Mail package is this a good choice to send mail with authentication? ...any suggestions for basic sending email with authentication (setup info and links also) would be welcome http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm -- Thanks, Dave - DealTek deal...@gmail.com [db-3] I'm sure I'm going to annoy people with this, but I would advise to never use PEAR. It's the biggest load of extremely badly coded PHP you'll ever find. Creating an SMTP client (with the purpose of just sending mail) is very easy to do yourself (and also a good challenge if you're not yet very skilled with PHP). Alternatively, you can indeed use a package such as PHPMailer; it's not perfect, and quite bloated for what you want probably, but it works rather well. - Tul ---End Message--- ---BeginMessage--- Hi all php experts, I would like to ask you all a question, I hope this is the right place to ask it. I'm writing a PHP extension now in c/c++. User uploads a file (could be POST or PUT method, but I can limit it to POST only). I need to capture the file data while being uploaded, without writing it to disk on the server. I need to process the data and (maybe, depending on a situation) send it somewhere else or save it to disk. Of course I know, that I can process the file after it has been uploaded (saved on disk on the server), but I would like to avoid it. I also need to do something opposite: I need to generate a file on the fly and send it to the user. All metadata of the generated file is known beforehand (e.g. size, name). I've been searching around for some time now and I could not find anything even close to the solution. Is there any example(s) or existing PHP extension that do(es) something like this (at least something simmilar) ? If you could give me any pointers that would be awesome. Thanks for your help in advance. Mariusz ---End Message---