Test

মাঝ মাঠে নেইমারের কাছে থেকে বল দখল নিতে লাফিয়ে উঠেছিলেন হুয়ান ক্যামিলো জুনিগা। কলম্বিয়ার এই ডিফেন্ডারের হাঁটুর আঘাতে ৮৮ মিনিটে স্ট্রেচারে মাঠ ছাড়তে হয় নেইমারকে। সেখান থেকে সোজা ফোর্তালেজা হাসপাতালে। ব্রাজিলিয়ান ফরোয়ার্ডের বিশ্বকাপ মিশন আকস্মিকভাবেই শেষ! যাঁকে ঘিরে ব্রাজিলের ষষ্ঠ বিশ্বকাপ শিরোপার স্বপ্ন, যাঁকে কেন্দ্র করে কোচ লুইস ফেলিপে স্কলারির রণকৌশল—সেই নেইমার এভাবে ছিটকে পড়বেন, মানতেই পারছেন না ব্রাজিলিয়ানরা। এক যুগ পর বিশ্বকাপের সেমিফাইনালে ওঠার আনন্দের পরিবর্তে গোটা ব্রাজিলে এখন শোকের মাতম। একই সঙ্গে ক্ষোভে-রাগে ফুঁসছেন ব্রাজিলের সমর্থকেরা।

Share
Posted in Uncategorized | Leave a comment

password has not working in cakephp

The automatic hashing of your password input field happens only if posted data also contains username and password fields

 

password has not working in cakephp

When posting information to an action via a form, the Auth component automatically hashes the contents of your password input field if posted data also contains username field. So, if you are trying to create some sort of registration page, make sure to have the user fill out a ‘confirm password’ field so that you can compare the two. Here’s some sample code:

For custom has ..

use

$this->Auth->password($this->data['User']['password'])

 

Share
Posted in Cakephp | Leave a comment

addslases works two times

The PHP directive magic_quotes_gpc was on by default before PHP 5.4, and it essentially ran addslashes() on all GET, POST, and COOKIE data. Do not use addslashes() on strings that have already been escaped with magic_quotes_gpc as you’ll then do double escaping. The function get_magic_quotes_gpc() may come in handy for checking this.

Share
Posted in php | Leave a comment

how to check valid domain or remote file exist

function remoteSiteExists($url) {
$curl = curl_init($url);
//don’t fetch the actual page, you only want to check the connection is ok
curl_setopt($curl, CURLOPT_NOBODY, true);
//do request
$result = curl_exec($curl);
$ret = false;
//if request did not fail
if ($result !== false) {
//if request was ok, check response code
$statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);

if ($statusCode == 200) {
$ret = true;
}
}
curl_close($curl);
return $ret;
}

Share
Posted in php | Leave a comment

how to check http exist in url

function httpCheck($url)

{
if(strpos($url, “http://”) !== false){

return $url ;

}else{

$url = “http://”.$url;

} r

eturn $url ;

}

Share
Posted in php | Leave a comment

how to get file extension in php

how to get file extension in php.

Here is my simple method to get file extesion.

 

function file_extension($filename) {        return strtolower(end(explode(“.”, $filename)));    }

 

 

Share
Posted in php | Leave a comment

jquery how to find if div with specific id exists

if( $('#selector').length )     
{
     // it exists
}
Share
Posted in Jquery | Leave a comment

auto formatting excel file when download using php

I just added a blank space in front of the zip code or value, It’s working fine

Share
Posted in php | Leave a comment

hipay payment example

Hipay payment example

Hipayment not working ..

Same currency issue ,

Problem in creating dynamic button ..

At first create fix button .. Will wrote details next

 

 

Share
Posted in Hipay, Payment | Leave a comment

header already sent warning in wordpress

header already sent warning in wordpress plugin development

Recently i faced problem with redirecting in plugin development when i saved data in database and thinking to redirect in listing page. I spent a lot of time to find out the solution. Finally i solved it using javascript.

 

<script>location.href=”<?php echo $location?>”;
</script>

Share
Posted in Wordpress | Leave a comment