[highlight]Looking for PHP Programmer with 3-4+ years of experience to join our team![/highlight] [highlight]Company: Bridge India ,Palarivattom[/highlight] Job Location:Cochin Requirements: Experience in any PHP frameworks. CakePHP is Preferred Strong knowledge of PHP, OOPS, MySQL, Javascript, Jquery, HTML5, CSS. Experience in GIT. Must have excellent communication skills, logical skills and problem-solving skills. Salary: Negotiable Interested applicants…
Category: PHP
Get youtube video time duration
We can use a PHP function to get the YouTube video duration. Before that, you should have Google API Key 1.Create Google API and get API key from Goog’s official website https://console.developers.google.com One important Note. At the time of creating API, leave the below option blank ” Accept requests from these HTTP referrers (web sites) (Optional)”….
CodeIgniter Disallowed Key Characters
Somewhere in the html form you simply missed the opening quote of input name attribute(s). Example <input type=”text” name=last_name“> Just find and use the right syntax for happy coding. You can find the code for tracking disallowed characters are in system/core/input.php file function _clean_input_keys($string) { if (! preg_match(“/^[a-z0-9:_/-]+$/i”, $string)) { exit(‘Disallowed Key Characters.+’. $string)); } return…
Global Ajax Event Handlers
These following Global Ajax Events to be called at the time of initialization ,completion,success,send..etc. These type of events are triggered on each Ajax request, if the global property in jQuery.ajaxSetup() is true . ajaxComplete():This global event to be triggered when Ajax requests complete. .ajaxError(): This global event to be triggered when Ajax requests complete with…
Advanced method to check the mime type of file in php
Usually code is if ($_FILES[‘input_field_name’][‘type’] == ‘image/jpeg’) { //some code } but it is not fully validating the file types(mime). The following code will output the correct file type and avoids the security vulnerabilities of php. $phpfileInfo = new finfo(FILEINFO_MIME_TYPE); $PhpfileContents = file_get_contents($_FILES[‘name_of_input_field’][‘tmp_name’]); $MimeFileType = $phpfileInfo->buffer(PhpfileContents);