wamp server download – all versions

you can get all the versions of wamp server from the below given link:

http://sourceforge.net/projects/wampserver/files/

curl not working with https

Today i was facing this issue. I had implement rpxnow for open ID on a website a. which used CURL for xml services.

The implementation was working fine on our server. But when client moved teh code to their server it stopped working.

First i checked that CURL is enabled on their server, but CURL was working perfectly fine for urls like “http://www.google.com”. Then i found that the issue was with the “https” sites.

So this is what solved my issue:

Add the below code to your curl options:

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);

This solved my problem.

Regards,

samsami2u

http://www.avidindiainc.com

xml parser in php

There is a build in function in php using which you can parse xml file to an array. I have an example created for the same, and it goes as mentioned below:

$xmlString = $raw;
$xmlParser = xml_parser_create();
xml_parse_into_struct($xmlParser, $xmlString, $values, $main);
xml_parser_free($xmlParser);

print_r(‘<pre>’);
echo “<b>Main array</b><br>”;
print_r($main);
echo “<br>”;
echo “<b>Values array</b><br>”;
print_r($values);
print_r(‘</pre>’);

Thanks,

Sachin (http://www.avidindiainc.com)

installing pear packages on windows / wamp

first of all start the command line from windows:  click “start” and then “run”; now type “cmd” and press the enter key.

type “pear install <packagename>” (where<packagename> is the name of the package you want to install)

if the above one does not work, manually download the package from the website and got to that directory that contains the downloaded package.

and type “pear install <packagename>”(where<packagename> is the name of the downloaded package)

install pear on windows / wamp

first of all start the command line from windows:  click “start” and then “run”; now type “cmd” and press the enter key.

now go to the directory which contails the php files. in my case i had wamp installed so it was in c:/wamp/bin/php/php5.2.8

now type go-pear” and press the enter key.

Edit the `include_path=".;c:\wamp\bin\php\php5.2.6\pear"` variable in your php.ini file and then restart your server.