Re: PHP and C#



Then you should just use an asp.net webservice, and have that connect to
mySQL from your client - tyat way your username and password isn't exposed
if you use a central one for access as it will reside within your web
service app. You can eliminate the PHP aspect completely and still have the
levels of sceurity you require for update and build a totally new interface
for adding data either from a client or from an asp.net app, talking through
the webservice.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog


"Dave" <fairydave@xxxxxxxxxxx> wrote in message
news:464ad3a1$1@xxxxxxxxxxxxxxxxxxxxxxxx
It's a MySQL database and I can create a publicly accessible login for it
but isn't that a bit dangerous? I'd prefer to pipe it through PHP as well
for the added layer of locks and so forth. If it's done through MySQL
directly people could, if they wanted, find the username and password and
then they have update, delete, and insert access into the DB. At least if
it's done through PHP I can force them to only delete a single record at a
time for example.

Then again, if I don't store the username and password to the MySQL DB in
the C# app and ask the user at runtime it could be just as secure really.
Would also allow better control over who is allowed in and when...

Dave

"John Timney (MVP)" <x_john@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:OO6dnQt___57W9fbnZ2dnUVZ8v-dnZ2d@xxxxxxxxxxxxxxxxx
C# can connect to most databases and can make use of PHP web services.
What database are you using?

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog



"Dave" <fairydave@xxxxxxxxxxx> wrote in message
news:464aa5e3@xxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I have a C# program which downloads data files from a database via a PHP
webpage. Currently I'm uploading the data into the database manually
using phpMyAdmin but it is time for an upgrade. I would like to use a C#
application to send info via a HTTP web form which can include text
boxes and files on a PHP server. I've tried doing some Google searches
and have not found much... any ideas anyone?

Dave







.



Relevant Pages

  • Re: mysql command line client
    ... Is there any way of making the mysql command line client full-screen? ... Although its not a PHP question is certainly is related so let me give you one place to start. ... As for external clients I love query browser from the mysql developers. ... If you have a mysql question, you will be better served asking in a MySQL newsgroup, such as comp.databases.mysql. ...
    (comp.lang.php)
  • Re: PHP Mysql Creating a Subform
    ... You will probably find that writing a PHP / MySQL application is very ... Develop your interface so that users enter data in an order that is ... A Java, Visual Basic, or even PHP GTK-based client might be ...
    (comp.lang.php)
  • Re: Challenge: MySql result to drop down box
    ... in either PHP or MySql ... As I said back on the 13th your revised code works for me. ... realized the $username variable should have actually been $user_name O.o ... Platform: mysql 3.x, php5 ...
    (alt.php)
  • Re: Newbie Security Questions
    ... questions about PHP and its usage with MySQL. ... How to properly defend against an injection attack? ... I would be inclined to put the username, password, etc in a seperate ...
    (comp.lang.php)
  • allowing users to log into my website
    ... I have already created the backend using a MySQL ... database. ... username from one page to the next. ... I'm running Apache 2 and PHP ...
    (comp.lang.php)