From 6a3eacb79ea81422a4d833af6829c0d88f067d62 Mon Sep 17 00:00:00 2001 From: fengyuexingzi Date: Tue, 12 Jun 2018 16:18:48 +0800 Subject: [PATCH] auth --- auth/linkedin/index.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/auth/linkedin/index.php b/auth/linkedin/index.php index 9ed056d..8fba479 100644 --- a/auth/linkedin/index.php +++ b/auth/linkedin/index.php @@ -10,8 +10,9 @@ register_shutdown_function('shutdown'); -function shutdown(){ - error_get_last(); +function shutdown() +{ + print_r(error_get_last()); die('shutdown'); } @@ -25,8 +26,8 @@ $data = array( 'client_secret' => 'GdY3ZO8LAHn8y4tX', ); -$ch = init($url); -curl_setopt($ch,CURLOPT_POST,true); +$ch = curl_init($url); +curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, build_query($data)); curl_setopt($ch, CURLOPT_TRANSFERTEXT, true); curl_setopt($ch, CURLOPT_TIMEOUT, 5);