Relative Content

Tag Archive for javascriptphp

Storing my API Keys in a PHP file inside of my “public_html” Hostgator folder for my website: Is this secure? Or can prying eyes access its contents?

I know the conventional wisdom is, never store API keys in the frontend — instead always store this on the server-side. My programming / web development up to this point has all been pretty simple stuff, to the degree that I’ve never really needed to use secret API keys or info like this that needs to be hidden. Everything has basically just been HTML / CSS / JS.

Keep session active without logging out automatically

I intend to keep my session active without ending for 24 hours. On a computer or on a cell phone with the screen on, it works, but if you lock the screen after two minutes, the session ends. I will post my code:

how to get dropdown values from append function

I have a function that I am using to append data elements from one dropdown option to another
The function is working properly. What I am looking for is to get the values of the second dropdown option which is an array

how to get dropdown values from append function

I have a function that I am using to append data elements from one dropdown option to another
The function is working properly. What I am looking for is to get the values of the second dropdown option which is an array