<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Random Bugs &#187; Php</title>
	<atom:link href="http://www.randombugs.com/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.randombugs.com</link>
	<description>Just another Bastard Operator From Hell. Everything from *nix to programming</description>
	<lastBuildDate>Thu, 06 May 2010 14:21:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Creating and Installing a Certificate on Apache 2</title>
		<link>http://www.randombugs.com/linux/creating-and-installing-a-certificate-on-apache-2.html</link>
		<comments>http://www.randombugs.com/linux/creating-and-installing-a-certificate-on-apache-2.html#comments</comments>
		<pubDate>Wed, 12 Nov 2008 13:33:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=58</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/apache3.jpg" width="24" height="24" alt="" title="Apache" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/gpg.png" width="24" height="24" alt="" title="Cryptography" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>Generating  and installing a certificate Is not such a big deal as other may consider  but it requires some understanding of how apache and certificates are working.

This post will be structured in 3 parts:

Generating a private key for the apache server
Generating a Certificate Signing Request (CSR)
Configuring Apache 2 SSL

Generating a private key for the server
To generate a private key for our server we need OpenSSL utilities. To install it just run:
apt-get install openssl
To generate a private key run in console:
openssl genrsa –des3 –out www.mydomain.com.key 1024
If you are not ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/creating-and-installing-a-certificate-on-apache-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Webservice Client in PHP</title>
		<link>http://www.randombugs.com/php/simple-webservice-client-in-php.html</link>
		<comments>http://www.randombugs.com/php/simple-webservice-client-in-php.html#comments</comments>
		<pubDate>Tue, 12 Jun 2007 12:29:00 +0000</pubDate>
		<dc:creator>sacx</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Webservice]]></category>

		<guid isPermaLink="false">http://randombugs.wordpress.com/2007/06/12/simple-webservice-client-in-php/</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/php.png" width="24" height="24" alt="" title="Php" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/gnome-fs-web.png" width="24" height="24" alt="" title="Webservice" /><br/>To test our early webservice code  from here  just use this simple php program.
require_once(&#8216;lib/nusoap.php&#8217;);
$wsdl=&#8221;http://your.server.domain/ws.php?wsdl&#8221;;
$client=new soapclient($wsdl, &#8216;wsdl&#8217;);
$param=array(&#8216;x&#8217;=&#62;&#8217;1&#8242;,&#8217;y'=&#62;&#8217;2&#8242;);
echo $client-&#62;call(&#8216;TestFunction&#8217;, $param).&#8221;\n&#8221;;
Related Posts:Creating a php webservice for C#Using VMware Webservice with C++ and gSOAPshell_sink: my new shell historyLinux ISC DHCP Server and Dynamic DNS updates under Debian and UbuntuLinux ISC DHCP Server under Debian and Ubuntu
]]></description>
		<wfw:commentRss>http://www.randombugs.com/php/simple-webservice-client-in-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a php webservice for C#</title>
		<link>http://www.randombugs.com/php/creating-a-php-webservice-for-c.html</link>
		<comments>http://www.randombugs.com/php/creating-a-php-webservice-for-c.html#comments</comments>
		<pubDate>Tue, 12 Jun 2007 06:23:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Webservice]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://randombugs.wordpress.com/2007/06/12/creating-a-php-webservice-for-c/</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/php.png" width="24" height="24" alt="" title="Php" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/gnome-fs-web.png" width="24" height="24" alt="" title="Webservice" /><br/>Probably a lot of you are wonder if is possible to access a php webservice from C#, so I made a simple test to show you is possible  .
In this test I used nusoap and php4. In the future I will do the test with PHP5 and it&#8217;s SOAP library.
//ws.php
require_once(&#8220;lib/nusoap.php&#8221;);
$ns=&#8221;http://your.server.address/&#8221;;
$param = array(&#8216;x&#8217; =&#62; &#8216;xsd:string&#8217;,'y&#8217; =&#62; &#8216;xsd:string&#8217;);
$return = array(&#8216;return&#8217;=&#62;&#8217;xsd:string&#8217;);
$server = new soap_server();
$server-&#62;configureWSDL(&#8216;WS Test&#8217;,$ns);
$server-&#62;wsdl-&#62;schemaTargetNamespace=$ns;
$server-&#62;register(&#8216;TestFunction&#8217;,$param,$return,$ns);
function TestFunction($x,$y){
$ret=$x+$y;
return new soapval(&#8216;return&#8217;,'xsd:string&#8217;,$ret);
}
$server-&#62;service($HTTP_RAW_POST_DATA);
To access this webservice just go to: http://your.server.address/ws.php?wsdl
Related Posts:Simple Webservice Client in PHPUsing VMware Webservice with C++ and gSOAPChanging default logging system in Glassfish 2.1 ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/php/creating-a-php-webservice-for-c.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
