This question might look similar to existing one's but is really different.
I have a scenario where I have to send emails to different users while inserting data into MySQL DB. The logical part has been completed using Java. This is reading very huge data from via CSV files on file server and after processing those data, inserting into DB.
Now my need is to send email to different users on each insert operation.
The data is quite very heavy so I think using triggers would not be a good idea.
Can you please help me to get a better solution?
I do also have php app connectivity with this database.
In my opinion you should try php library like PHPMailer, PEAR Mail, SwiftMailer, etc as you should note that php's mail function is inherently not optimized at all.
Related
How can I send data to my database safely without any user forging?
Let's say, there's like 25 people using my application and I want to upload stats of their playing data.
I can't use JDBC because they could easily decompile and then get access to my database.
I was thinking of creating something in PHP but then they could easily update their values as well like http://mywebsite.com/update.php?user=x&gold=23
Any suggestions on a SAFE way of uploading stats without user forging?
I am currently working on a project where a lot of users will be making changes to our data and that rest of the clients are suppose to see data as soon as it updates. I have implemented web sockets to broadcasting the data the problem is we are using Oracle DBMS_PIPE as whenever data is changed in the DB now I was wondering if there is some api or some documentation which tell how to collect data from DBMS_PIPE using Java. any suggestions?
Thank you
F. Irfan
I am making an android app for a survey. The answers are saved in a file, and that file should be sent to the web, so we can analyse the data. I am searching for a way to put the data on the web, in such a way that only I can access it.
I've tried google doc's, but it seems to me that if too many people upload their data at the same time, some data might get overwritten.
I've also tried dropbox, but the problem is the authentication step. Since every person would have emailadres and password, everyone would have access to all data, which should not be possible (unless there is a way to authenticate in the code, but I haven't found anything on that).
Does anyone have an idea what I can do? Thank you!
You shouldn't use a Google Document directly. With a lot of traffic you'll definitely get overwritten data. You're also vulnerable to someone messing with the data since you'll need the document to be public so people can edit it.
What you want to do is create a Google Form and then have your application POST the data to that. Google will handle making sure that no data is overwritten for you.
I have created an online database about the restaurants and I need to access this database through my android application, so that I can display the data to the users after filtering. My application does not need to update the database, but my problem is how to connect to my online mysql database and provide it to the users? I have looked on many suggestions on this site as well as on others, and I just found I have to use JSON parser while accessing but do not how to do it.
The best solution is provide a public API, managed for example with PHP, which delivers your database data filtered and displayed as your Android application needs.
This link might help you . http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/
Just get an understanding of JSON parsers and how it can be used in android for retrieving data from database on server... you can write webservices in php..
You need to provide a server side solution that the Android application can speak to. PHP scripts are a good way to go, that can directly interface with the MySQL database, and return results to the device.
You can then be creative with the PHP script, by sorting the results etc, and providing a more comprehensive solution by taking away some of the processing from the Android device, and doing it server side where battery life isn't as much of a problem.
You simply need to implement web service calls on the Android device, simple GET/POST requests over HTTP suffice depending on what you intend to do. Have a look into REST APIs for guidelines on how to implement properly.
You can easily add a PHP script to the same server as the MySQL database for this
I have a rather large amount of data (100 MB or so), that I would like to present to a user. The format of the data is similar to the following...
Date Location Log File Link
03/21/2010 San Diego some_log.txt http://somelink.com
etc
My problem is that I would like to have some nice/slick way for the user to filter the information. Unfortunately, because there is so much of it, the jQuery Table Filter plugin does not work (crashes the browser). I was wondering if there is a nice solution or if I have to simply do the filtering on the server end and have a bland pull-down menu / select-box interface for the client to use.
100MB is pretty huge. You don't want to transfer all that data at once to the client side on a single request and then do the paging/filtering/sorting actions over there. It would take ages to transfer it and it would eat all the client's memory. Rather do that entirely at the server side on every request using SQL powers. SQL can do it much more efficient than Java/JavaScript. I've posted a similar answer with more technical details and code examplpes before here.
Use paging. (Maybe a little ajax).
If the browser has Google Gears installed for its DB API or supports HTML5's Web SQL Database (e.g. Opera 10.5+), you can import all the data into a client-side SQL database and perform the sorting+paging queries with SQL.