Code for Honor is Microsoft’s award for solution excellence. Build outstanding software solutions in one of four specially chosen categories – Large Enterprises, MSME, Government Enablement, Citizen Services – and showcase your capabilities on the national stage.
Modern devices and cloud-based services have changed the way organizations and users operate. Organizations can now deliver comprehensive software solutions across devices on manageable, elastic, cloud-based IT architecture while users react, interact and purchase differently.
PHP Developer’s Home php.net has been blacklisted by Google. I think that’s probably happened ~ in between 23rd October 2013 11:15 PM IST and 24th October 2013 9:35 AM IST. Tha actual problem is that Google’s Safe Browsing technology is blocking access to PHP.net as a precaution, after apparently detecting that some of its pages were booby-trapped with links to malicious software. php.net is widley used by coders all around the globe. Google didn’t specify the types of Trojans associated with the apparent attack but it did state the domains they came from. Users visiting the PHP.net site using Google Chrome, Mozilla’s Firefox and or Apple Safari (Mozilla and Apple both license Safe Browsing from Google) were confronted by a warning firmly instructing them not to proceed any further.
PHP founder Rasmus Lerdorf on Twitter (@rasmus) tweeted :
One thing that I strongly suggest to any webmaster in this situation is to look for any server vulnerability that allowed this file to get compromised in the first place. We sometimes see webmasters simply fix the affected files without digging into security hole that allowed the hack, which leaves the server vulnerable for repeat attacks.”
By Using phpMyAdmin, The sql file import operations for bigger files are very difficult. There is a chance that it’ll timeout during the operations and also, browser will be using heavy memory. So how to get rid of these issues?
No problems! Just try importing the sql file directly in mysql console (command line). I’m explaining the steps based on a web hosting context. (For eg. You’ve a hosting account (Shared or Dedicated) with GoDaddy, Bluehost, Hostgator etc)
Login into your server using PuTTY
login into mysql console
mysql -uUsername -hHostname -pPassword
(This is the command for directly logging into the mysql server. Please note that there is no space after -u, -h, -p. Also Replace Username, Hostname & Password with your DB details)
In the address bar, type “about:config” (with no quotes), and press Enter.
Click “I’ll be careful, I promise”
Warning: file_get_contents(): Unable to find the wrapper “https” – did you forget to enable it when you configured PHP?
Got the above warning? No Problems. You can get rid of this warning by just enabling php_openssl.dll extension in your php.ini [For eg. xammp/php/php.ini] configuration file. [If you’re not seeing php_openssl.dll itself in your php.ini, just directly add the extension line to the php.ini configuration file]
If the extension itself does not exist, You have to add extension=php_openssl.dll to your php.ini file. (Provided you’ve the proper dll file bundled with your windows PHP environment (I’m using XAMPP & the dll extension is php_openssl.dll.)
Note : I’m using XAMPP for Windows
Note : The keys are preserved. array_unique() sorts the values treated as string at first, then will keep the first key encountered for every value, and ignore all following keys. It does not mean that the key of the first related value from the unsorted array will be kept.
In PHP, You can convert a string to an array using str_split function.
array str_split ( string $string [, int $split_length = 1 ] )
/* $string=The input string.
$split_length=Maximum length of the pieces. */
$str = "Awesome World";
$arr1 = str_split($str);
$arr2 = str_split($str, 3);
/* This will output..
 => A
 => w
 => e
 => s
 => o
 => m
 => e
 => w
 => o
 => r
 => l
 => d
 => Awe
 => som
 => e w
 => orl
 => d
If the optional split_length parameter is specified, the returned array will be broken down into pieces with each being split_length in length, otherwise each piece will be one character in length.
FALSE is returned if split_length is less than 1. If the split_length length exceeds the length of string, the entire string is returned as the first (& only) array element.