equalTo() method is not working in jquery

equalTo() method is not working in jquery ?

I faced problem with password match. It’s because of i used id of password field was password. I changed the id and it’s working fine.

Share
Posted in Jquery | Leave a comment

cookie not remove when i unset cookie

I faced a problem working with remember me. In ie cookie was not unset though i added unset code for cookie and session in logout page.

Finally i used the domain name in setcookie method instead of / and it worked !

 

 

 

cookie not remove when i unset cookie

Share
Posted in php | Leave a comment

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