Jump to content

[Tutorial] TEST IF YOUR MYSQL IS WORKING!!


Jamesking56

Recommended Posts

It's not a good idea for people to use this. You're asking for people to give you their database connection information including the username and password. That's not a very smart thing for people to do when they can't see what you're using that for. For all anyone knows you're making a list of database servers, database names, and login information. Secondly, this doesn't test if MySQL is running, it tests if MySQL is running and is accepting remote connections. Most MySQL servers do not accept remote connections, they are only there to be used by local applications. Also, the test if PHP is working doesn't work at all, you don't give people PHP source code to download and run, you just give them an HTML file that says PHP is working. Save the file yourself and open it in a text editor to verify that there is no PHP code in it.Also, this isn't a tutorial.

Link to comment
Share on other sites

Its completely secure as it is written in PHP and Javascript...
You're joking, right?Having anything written in a particular language does NEVER, on its own, guarantee security, regardless of whether we're talking a client/users' security, or server security.justsomeguy already said perfectly what the problems with the two of your testers are, and to paraphrase that:Those testers are not needed. Every tutorial about installing PHP and MySQL includes sample codes that test PHP and database connection. The reason they offer them as code (i.e. text) instead of a form you'll enter something in are that to test MySQL remotely, MySQL needs to be configured to accept remote connections. And there's no way to test PHP remotely, as PHP only returns other contents (most often HTML). The only way you can trasmit a whole PHP file over HTTP while still keeping its original name is to place the PHP file in an archive (zip, rar, etc.), and then the user must extract that archive in a PHP enabled directory on their server.
Link to comment
Share on other sites

How do we know that you are not stealing our connection information yourself? :)Anyway, JavaScript is super-insecure.

Its completely secure as it is written in PHP and Javascript...
Ha ha. Don't see you using a Secure Socket Layer connection... :)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...