Jumat, 18 Oktober 2013

PHP Indonesia - Facebook: [ask] url: www.example.com?#code=123 gimana cara m...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Got an anatomy exam soon?

Use the most efficient tool to learn anatomy and be prepared for your next exam like no one else. Make your anatomy learning experience an unforgettable one.
From our sponsors
[ask] url: www.example.com?#code=123 gimana cara m...
Oct 18th 2013, 15:20, by Dicky Agustin

Dicky Agustin 3:20pm Oct 18
[ask]
url: www.example.com?#code=123
gimana cara menampilkan '123' di browser menggunakan php.
Tolong bantu ya para master, :)

Gunawan Christianto 3:38pm Oct 18
bukkannya yang benr pake tanda tanya ya?
harus nya gini kan, blakangnya: ?code=123...
Itu bisa di ambil lewat:
<?php
Echo $_GET['code']
?>

Dan nanti outputnya begini:
123

Dicky Agustin 3:42pm Oct 18
Justru itu sob yg ane bingung, parameter nya ?#code=123{kaya access token fb gitu(https://www.facebook.com/connect/login_success.html?#access_token=blablabla)}

Gunawan Christianto 3:42pm Oct 18
Hmm.... perasaan dikasihnya tanda tanya...

Dicky Agustin 3:44pm Oct 18
check it out:https://www.facebook.com/dialog/oauth?scope=offline_access,user_about_me,user_activities,user_birthday,user_checkins,user_education_history,user_events,user_groups,user_hometown,user_interests,user_likes,user_location,user_notes,user_photos,user_questions,user_relationships,user_relationship_details,user_religion_politics,user_status,user_subscriptions,user_videos,user_website,user_work_history,email,friends_about_me,friends_activities,friends_birthday,friends_checkins,friends_education_history,friends_events,friends_groups,friends_hometown,friends_interests,friends_likes,friends_location,friends_notes,friends_photos,friends_questions,friends_relationships,friends_relationship_details,friends_religion_politics,friends_status,friends_subscriptions,friends_videos,friends_website,friends_work_history,read_friendlists,read_insights,read_mailbox,read_requests,read_stream,xmpp_login,create_event,manage_friendlists,manage_notifications,user_online_presence,friends_online_presence,publish_checkins,publish_stream,rsvp_event,publish_actions&redirect_uri=https://www.facebook.com/connect/login_success.html&response_type=token&client_id=341810599235837

Gunawan Christianto 3:52pm Oct 18
^ada tanda tanyanya...
..../..../?#datascope=*****....

Dicky Agustin 3:54pm Oct 18
pake $_GET['#code'] tetap g bsa sob, :)

Muhammad Fauzi 4:07pm Oct 18
<?php
$url= "www.example.com/?#code=123";
$code = explode('=',$url);
$result = $code[sizeof($code)-1];
echo $result;
?>

diatas contoh kalo url ditentukan, kalo url nya request dari current url / halaman url yang sedang diakses bisa pake ini :

<?php
$url= $_SERVER['REQUEST_URI'];
$code = explode('=',$url);
$result = $code[sizeof($code)-1];
echo $result;
?>

Dicky Agustin 4:15pm Oct 18
muhamad fauzi@: coba dulu sob

Dicky Agustin 4:22pm Oct 18
<?php
$url=$_SERVER['REQUEST_URI'];
?>
- ouput: index.php?
- Fragment '#' tdk muncul

Muhammad Fauzi 4:24pm Oct 18
sebenernya url nya itu kek gimana bro?

Dicky Agustin 4:27pm Oct 18
Pola url: https://www.facebook.com/connect/login_success.html?#access_token=Blabla

Muhammad Fauzi 4:34pm Oct 18
coba ganti $_SERVER['REQUEST_URI'] dengan $_SERVER['QUERY_STRING']

ref :
http://stackoverflow.com/q/10816378/1297435

Gembel Berkelas 4:49pm Oct 18
php kayaknya ndak bisa baca string dibelakang tanda '#' pada url,,,
pakek js.

link ini juga pakek js
http://stackoverflow.com/q/10816378/1297435

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar