Jump to content

Recommended Posts

Hi!

 

I have an application that must do some inserts in a mysql db. This db is behind a firewall, and only port 80 is available.

My first thougt is to use xml or csv, and in some way parse that using php.

How can this be done? I can not use a web page with an send button, this has to be more or less automatic.

I am brand new to php, so if possible give me example.

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/185882-send-inserts-to-mysql-thru-port-80/
Share on other sites

MySQL does not run through port 80. It's 3306, and is accessable serverside (or via your host normally) with full control. Yes, there are CSV and XML paring functions in PHP and should not be hard to implement provide you have knowledge to.

 

There is no 'automatic' workings for these functions, you need to learn forms and sessions and the basics before you can even hope to use the CSV/SQL part of it..

MySQL does not run through port 80. It's 3306, and is accessable serverside (or via your host normally) with full control

No. What if your database server is not on your webserver! There is nothing mentioned in the post regarding a webhost. This sounds like an internal configuration. If the database server is behind an internal firewall with only port 80 open then there is no way anything on the public side of the firewall will be able to talk to it. Doesn't matter how your planning to update the database i.e with CSV, XML or whatever.

I was thinking of upload a file that will be parsed by php, and then use the values to be inserted to the mysql db

So how will you update the database?

This db is located at a webhotel

What the hell is a webhotel?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.