Archive for September, 2009

 

“table-row” and “block” values for style.display in IE and Firefox

Tuesday, September 29th, 2009

style.display = “block” for a table row in Firefox does not show row in proper format. For that use style.display = “table-row”. This shows row as a normal row like other rows of that table.
While in IE style.display = “block” works properly but style.display = “table-row” does not work.style.display = “block” for a table row in Firefox does not show row in proper format. For that use style.display = “table-row”. This shows row as a normal row like other rows of that table.
While in IE style.display = “block” works properly but style.display = “table-row” does not work. In javascript it generates error for this statement.
So how to make it working in both browsers. Simple solution is does not assign any value to display property and browsers shows it properly using default value. Simple write style.display= “” and it works in both browsers In javascript it generates error for this statement.
So how to make it working in both browsers. Simple solution is does not assign any value to display property and browsers shows it properly using default value. Simple write style.display= “” and it works in both browsers

Loading web pages problem in Firefox and Crome browser?

Saturday, September 19th, 2009

I faced problem to load some web page in Firefox and Crome browser
so i passed some code in .htaccess files.
code is given as follow:

php_value output_handler ob_gzhandler

simply copy and paste it to .htaccess file.

Also see that following lines are passed are not:

php_flag allow_call_time_pass_reference on
php_flag magic_quotes_runtime off
php_flag register_globals off
php_flag magic_quotes_gpc On
php_flag register_argc_argv on
php_value register_long_arrays on
php_value display_errors on
php_value allow_url_include on

to compress your files for faster loading
“php_value output_handler ob_gzhandler” is very useful.

Regard

Manoj Ninave

Software Engineer,
COG IT Solutions Pvt. Ltd.
www.cogitsolutions.com
n.manoj@cogitsolutions.com

How to get detail information about facebook user

Wednesday, September 16th, 2009

Solution to get Detailed information about facebook user.

1) First you need to log in to the Facebook Developer application:
Go to the Facebook Developer AppAfter following the link,
click “Allow” to let the Developer application access your profile.
2) Begin setting up a new application.
Go to the Developer application and click “Set Up New Application”.
Give your application a name, check to accept the Terms of Service,
then click Submit.
You’ll see some basic information about your application, including:

but for that you will need PHP client library
you can download “PHP client library” after clicking the above link.
for detail information see get started

* Your API key: this key identifies your application to Facebook.
You pass it with all your API calls.
* Your application secret:
Facebook uses this key to authenticate the requests you make.
As you can tell by its name,
you should never share this key with anyone.

code:

require_once ‘facebook.php’;
$appapikey = ‘Your API Key’;
$appsecret = ‘Your API Secrete Key’;
$facebook = new Facebook($appapikey, $appsecret);
$user_id = $facebook->require_login();

//to get detailed information about facebook user,you can use,

$userdetails=$facebook->api_client->users_getInfo($user_id,’last_name,

first_name,sex,about_me,birthday,email_hashes,hometown_location,pic,pic_big,pic_small,pic_square,movies,music,activities,hs_i

nfo,name’);

if you would like to get user’s name and city,
then you should write
foreach($userdetails as $k){

$user_name= $k['name'];
$City= $k['hometown_location']['city'];

echo $user_name;
}

save this code in index.php and test that,what you get.

Regard
Manoj Ninave

n.manoj@cogitsolutions.com

Site map | Blog
Copyright © 2008, COG IT Solutions Pvt. Ltd. All Rights Reserved
XHTML Validated