Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I think I understand what you're trying to do. Here are my thoughts:</p> <p>First, your chrome extension could use something like localStorage to store the unique identifier for the current user. What I would do is make this part of the options part of the chrome extension. If you make an options.html file, its not that hard to get that as part of the configuration options.</p> <p>Second, you can start up a simple PHP and MySQL web service to handle these requests. Because you're just doing this for a trial run, you could even do without a heavy authentication scheme on your 'web service' - just use a static token or something in your web request that is available in the chrome extension (Please note: I'm not advocating this as the solution going forward, just something to get you started).</p> <p>The PHP and MySQL service layer would basically track user IDs, and the values. You'd have to generate a little bit of code to make sure that there wasn't any MORE currency in rotation that was totally allowed. Obviously don't let users share more if they don't have any, etc.</p> <p>You can send AJAX requests with your chrome extension TO PHP - perhaps using a json request. So, whoever told you you can't use PHP with chrome extension was "right", but meaning you can't program with PHP in the extension (it's just javascript) - however, you CAN use javascript in the chrome extension to request data from a PHP web service.</p> <p>At any rate - not spoonfed, I don't think? You may want to check out my github page for some chrome extensions - for examples on how to store options. And, of course, if you have questions about writing the PHP web services, feel free to post - or send me a message! </p> <p>Good luck - and super great news to hear that you've developed a project for yourself - just to learn even!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload