Re: PHP and C#



You send raw HTTP via the POST method. But you will have to handle
cookies all by yourself. Use the Fiddler tool (http://
www.fiddlertool.com/fiddler/) to reverse engineer the PHP application.

On May 16, 2:49 pm, "Dave" <fairyd...@xxxxxxxxxxx> wrote:
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_j...@xxxxxxxxxxxxxxxxxxxx> wrote in messagenews: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" <fairyd...@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- Hide quoted text -

- Show quoted text -


.



Relevant Pages

  • Re: PHP and C#
    ... mySQL from your client - tyat way your username and password isn't exposed ... You can eliminate the PHP aspect completely and still have the ... for adding data either from a client or from an asp.net app, ... If it's done through MySQL ...
    (microsoft.public.dotnet.languages.csharp)
  • 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)
  • Re: I am totally stumped..with this on..LOAD_FILE Mysql+PHP= FSCK!!
    ... What I am trying to do is to upload files and stuff them in a mysql database. ... I copied the temporary file to somewhere else, and then handed it to MySQL..THAT WORKED.. ... Is there a way to force a close on the file..maybe that's the problem Mysql is opening a file that is not flushed to disk maybe? ... I gew the feeling its maintaining its own picture of file objects, and doesn't actually flush to the disk unless you do a copy or close php.. ...
    (comp.lang.php)

Quantcast