Login   Register  
PHP Classes
elePHPant
Icontem

curly brace syntax in url strings ?

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP OAuth API  >  All threads  >  curly brace syntax in url strings ?  >  (Un) Subscribe thread alerts  
Subject:curly brace syntax in url strings ?
Summary:how are variables being substituted in the url strings?
Messages:2
Author:Robin Goodheart
Date:2014-07-17 19:53:15
Update:2014-07-17 22:05:56
 

  1. curly brace syntax in url strings ?   Reply   Report abuse  
Picture of Robin Goodheart
Robin Goodheart
2014-07-17 19:53:15
Hi there,

I realize this may seem like a stupid question but i am unfamiliar with the use of curly braces the way they are being used in this:

$this->dialog_url = 'https://www.facebook.com/dialog/oauth?client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&scope={SCOPE}&state={STATE}';

how are these strings then replaced with values? I tried to find where that was happening but have yet to locate it in the 2000+ lines in this class..

  2. Re: curly brace syntax in url strings ?   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2014-07-17 22:05:56 - In reply to message 1 from Robin Goodheart
These marks are explained in the documentation for the dialog_url variable.

Please read about it here and let me know if you have further questions.

http://www.phpclasses.org/package/7700-PHP-Authorize-and-acc ...