Should I upload PHPMyAdmin to the server - php

This is going to be a very stupid question. But i'm new to php and programming all together. I would be launch my first every database powered website. I'm still a student in college, so please take it easy on me.
I was using PHPMyAdmin for my local development. I'm ready now to launch the website and wanted to ask. Should I upload PHPMyAdmin together with my website? Or Not?
Thanks a million. This is an easy question for most of you but I really dont know

I say no, it can become a security vulnerability if not properly secured - but that's completely up to you. If you get yourself a good GUI mysql client you'll save yourself a lot of time anyway.

No, you should not. If you are using a shared webhosting, they normally have an internal URL where you can manage your databases using phpMyAdmin. Or if you are using your own private server, install phpMyAdmin in another location under another hostname/port, and only allow connections from your IP.

Related

my website is working slow because of server or big data in mysql DB?

My website name is reqsbook.com
It is basically a job portal website, actually My website has around 1 lack jobs.
when I am searching jobs from my website it is performing too slow, actually I am using hostgator cloud server and I have hosted single domain here
I mad my website with very compress that as much as possible
I came to know through internet that i have to go for dedicated server or go for local server means I need to keep server in my location and maintain the website from there
I am thinking that if a took dedicated server then also the same problem may repeated because My website db are increasing day by day
If i go for local server....I don't have any knowledge on this
Please some one help me give me better idea
Thank you
Yes, It's really slow. Only OOP and RDBMS can help you.
Customized your code so that same code need not execute many times.
Follow relation database management system. You can use indexing for fast searching. View table, temporary table, transaction can help you to manage data easily.

Is it possible to Sync a local WAMP database with a live website?

I'm working on a website that will be highly data-driven. Naturally this calls for databases (and lots of them). I am very new to this kind of web development so I was looking up how all this is done and how to sync any work I do before I get started, as I'm not interested in doing any work twice. The answer I'm finding seems to be pretty much "You can't sync them" for someone in my (very novice) situation. I've read something about a master/slave connection you can make, but it's very unlikely that the average web server will allow this. I've checked and I'm pretty sure mine doesn't (1&1).
SO! If it isn't possible to sync my local database with my live website database (when it comes into existence), then what is the point of using a local database at all?
Does anyone have any advice on the most efficient way to work with a non-syncable local or live database? Would there be any advantages to working with one over the other?
EDIT - I should mention this website is currently being built on my local WAMP server. It is not currently live online.

Synchronised local copy of MySQL / PHP website

I have a web based CRM coded in PHP, running off a MySQL database. The server is hosted in the same city as the company HQ but the company's internet connection is average (10Mbps down, 2Mbps up, 30ms ping to the server, all on a good day). The boss is happy with the results but now wants it to 'run super fast in the office' but we still need it to be viewable on the internet.
Short of moving the web server from our host and on to the local office network, which isn't a great option because then it would be super slow for everyone outside of the office, does anyone know a way to achieve this? I was thinking of setting up a local copy of the site and having the MySQL databases synchronise, but this sounds like a logistical nightmare.
Any ideas would be much appreciated! Happy to provide more info if needed.
You can setup dual-master replication with MySQL to accomplish this.
I would not attempt it without a fast, reliable line (which it sees you have). I would certainly setup and load test temporary servers to prove the configuration works.
For more information
http://devel.reinikainen.net/40
http://www.neocodesoftware.com/replication/
I am not joking around here.
Step 1) Have your boss define in written format what super fast means. This could(should?) include page load times for specific pages.
Step 2) Determine where there is a deficiency in speed. You think you know, but you don't. Measure it and record results. Use firebug in firefox to check page load and transfer times.
Step 3) Identify how you can speed up the app based on SPECIFIC measurements you looked at.

Android web app - php with local database

I have a very simple web page in PHP that uses a MySQL database to randomly feed a simple quiz that goes on forever as long as the user wants to keep answering questions.
I want to move this to my Android to be able to use it offline. I used jQuery Mobile to adapt the layouts to the smartphone. So now I want to move the database to a local database and remove all the need to an internet connection. I have absolutely no experience on Android development so if anyone can help me with a few questions, I'd appreciate it:
How can I store my existing database in the smartphone?
The only actions that the app performs on the database are selects. The information on the database will grow with time (not much, I just want to be able to add more records with time). Is there any tool I can use to manage the local database and add the information as I need (as I do now with PhpMyAdmin)?
The web page exists online right now, will I be able to run it locally as it is? (aka, PHP page with css and js files)
Thanks in advance.
1) Android databases are done in SQLite. I'm unsure exactly what the syntax difference between mySQL and SQLite is, but if a straight dump/import doesn't work, you could export to csv/import that way. For info on getting an external database packaged with an app, check Using your own SQLite database with Android applications. It's a very helpful guide to getting it set up.
2) I use a Firefox add-on, SQLiteManager. I hate doing it, as it's the only reason I have Firefox installed any more, but on *nix it's the best option I've found. It's either that, command line, or SQLiteMan, which I found feature-lacking. On other platforms, I can't comment.
3) I don't know if PHP has a good library for SQLite. If so, you'll most likely need to do some modification to work with that instead of mySQL. If you can get that running smoothly, you should be able to drop it into a webview. The other option is to redo it in Java.
Good luck!

Web Application Activation | Computer, Local Server

Have done some research and found some stuff that may be helpful.
I would like your opinion about my approaches on this.
THE GOAL
I will develop an application in PHP (That's the only language I know and unfortunately I don't have time to learn another one right now). I want this application to be able to run offline and locally to any pc. I will use Wamp server and cakePHP framework for this.
THE PROBLEM
This application will be for sale. So I will need some activation method to prevent each app from being used in multiple computers. I don't want something complicated or very very secure. I just need something simple, to prevent non-programmers to run this app in any computer. Of course, the more secure, the better! :)
POSSIBLE SOLUTIONS I AM THINKING OF
First of all, I am thinking to force users to activate their application, by going online during installation. That way they could get a unique KEY from my online database.
I found php's shell_exec command. So I am thinking, during online installation, to get the Host ID (Machine ID) of that computer, send it to my server and store it to my database next to a unique KEY. Then Machine ID and unique KEY can be stored to a php file. (Could I store it somewhere more secure? Maybe encrypt it?)
Every time the user opens the application, php will read machine ID. If not the same with the one stored in php file, an activation will be required. (Maybe could store computer's name too or some other id?)
Is that a good approach? Would it be possible?
Another approach I am thinking of, is to have a guy create a non php installation file. When run, will promp wamp installation and when installation finishes, will transfer all necessary files to wamp root folder (automatization for the user). I can only guess though this will work, as my knowledge over other languages is limited...
Could I benefit from this in validation terms? Can a non php file interact with my php application and validate it, for only one unique computer?
Any info will be very appreciated. I have just started building the application and want to know if there is a good way (or non) to secure it.
Thanks!
There is no point in all of this because if people want they can simply crack any of the copy protection methods you came up with. This also applies to any other app written in any other language. If people want to use it without permissions there are ways to do that.
There are some ways to obfuscate the code (see Is there a code obfuscator for PHP?) but these solutions are just silly because if people really want they can get the code in plain text anyways.
A better idea might be to run the app on your server and allow people to pay for it monthly, Software as a Service like Google Apps for Business.

Categories