sethupathy Posted May 19, 2007 Share Posted May 19, 2007 Hi Guys I am new to PHP so bear with me, I have to creat a web form that will communicate wtih MySQL. The problem is that the web form (survey) will be in an unsecure page on our web site (cost issues) and to make mattter worst the web server (that i have created) will be external, this is done so i dont have to ask our firm everytime for help). How do i secure my connection to the external server when i do not have acsses to the localhost of our website. (javasricpt supported) How do i connect to the external host (my web server) without giving-displaying my password ? ??? i just need the page to be secure. ANY input will be Great, Thanks a bunch Quote Link to comment https://forums.phpfreaks.com/topic/52084-my-first-web-survey/ Share on other sites More sharing options...
cooldude832 Posted May 19, 2007 Share Posted May 19, 2007 a trick I use is placing all my mysql info (user,DB,password) in a file called mysql_include.php and then when i need it say require('mysql_include.php') and set the chmod of mysql_include.php to make so it can't be read only executed. Quote Link to comment https://forums.phpfreaks.com/topic/52084-my-first-web-survey/#findComment-256793 Share on other sites More sharing options...
cooldude832 Posted May 19, 2007 Share Posted May 19, 2007 this also helps if you use mysql on multiple php docs so you don't have to write it out all the time. Quote Link to comment https://forums.phpfreaks.com/topic/52084-my-first-web-survey/#findComment-256794 Share on other sites More sharing options...
sethupathy Posted May 19, 2007 Author Share Posted May 19, 2007 could you elaborate more i dont understand how will the connection be made to my web server for the page on our website. your thinnking is good if i have acsess to the localhost witch i do not have. Quote Link to comment https://forums.phpfreaks.com/topic/52084-my-first-web-survey/#findComment-256797 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.