how to get my connector.php from server to client

I am confused still kind of a newbie to this so here is my question. How can I get the connector.php file that I created to my client who is calling it from javascript. I have tested it out locally and the file is in the same directory so no problems but what about when it is hosted live. What is the best way to do this? Do I have to preform an ajax call to get he php file served but then how does js interrupter it? Also how would I keep database username secure? :question: I am confused by how to do this.

you help needed…

thanks.

PHP file is stored server side and never fetched to client side, so its content is safe and can contains DB access data.

Whey using component, you have something like

grid.load(“myconnector.php”);

Grid will make ajax call to the connector and load to client side only data which was retrieved from DB.