Ask a Question related to MySQL, Design and Development.
-
Burma Jones #1
Updating record remotely from a script?
I have a MySQL database on my ISP's Linux server. Can anyone tell me if it would be possible to update a specific record remotely without any user interaction? In other words, from a Windows script or batch file do the update without any interaction from myself. I was thinking of passing the update variables in a URL to a PHP script on the server, but that would open a browser window on the client which I don't want to do. Perhaps some other protocol or ODBC or something? Thanks!
Burma Jones Guest
-
Problems when updating record
I am having a problem with the following code with mySQL. I normally write with Access and do not get this problem, is there something that I am... -
Updating a NEW record
ASP/Access Say a user creates a new record and needs to complete multiple forms, on multiple pages.... How do you submit the data to each page... -
Question about Updating a record
Ok, here's what we can assume: <cfset update = "ALIAS = 'Gruu'"> <cfset id = '999'> Here's the simplified query: <cfquery name="angryquery"... -
Updating MySQL record
Hi! I'm heaving a small problem updating a record containing an encrypted password. I'm using aes_encrypt. This is my suggestion for the query... -
Updating a single record on a form
Hi Dennis, You need to look at the properties that begin with 'Allow....'. For example Allow Additions (allows/prevents adding new records). ... -
Bill Karwin #2
Re: Updating record remotely from a script?
"Burma Jones" <somebody@somedomain.not> wrote in message
news:MKidndgERPXhYzzeRVn-tA@comcast.com...Maybe. Depends on your ISP's firewall configuration.> I have a MySQL database on my ISP's Linux server. Can anyone tell me if
> it would be
> possible to update a specific record remotely without any user
> interaction? In other words,
> from a Windows script or batch file do the update without any interaction
> from myself.
> I was thinking of passing the update variables in a URL to a PHP script on
> the server,
> but that would open a browser window on the client which I don't want to
> do.
> Perhaps some other protocol or ODBC or something? Thanks!
Connecting from a client machine to the MySQL server requires the network
port 3306 be open on the ISP's server and firewall, to permit the
connection. (3306 is the default server port for MySQL, but it can be
configured to a different port.) As far as I know, this is the case
regardless of whether one uses a mysql command-line client, or the MyODBC
driver, or other clients.
Often ISP's are reluctant to enable ports such as this one, even if it's a
relatively well-known service. It's one more protocol and service that they
now have to be experts in, to watch for security risks. Their users might
inadvertently create security holes.
There are tools to allow you to automate the task of making an HTTP request,
that don't require the client machine open a GUI browser. "wget" and "lynx"
are examples.
[url]http://www.gnu.org/software/wget/wget.html[/url]
[url]http://lynx.isc.org/[/url]
Note: these are both licensed under the GPL, so they cannot be distributed
with non-GPL products.
Here's an article about a command-line Windows HTTP client from Microsoft,
included in the Windows 2000 resource kit:
[url]http://www.windowsitpro.com/Web/Article/ArticleID/16048/16048.html[/url]
There's also a Windows C/C++ API for accessing HTTP resources
programmatically:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/winhttp.asp[/url]
Regards,
Bill K.
Bill Karwin Guest
-
Gordon Burditt #3
Re: Updating record remotely from a script?
>Connecting from a client machine to the MySQL server requires the network
And that's not ALL that is required. MySQL does not by default>port 3306 be open on the ISP's server and firewall, to permit the
>connection. (3306 is the default server port for MySQL, but it can be
>configured to a different port.) As far as I know, this is the case
>regardless of whether one uses a mysql command-line client, or the MyODBC
>driver, or other clients.
permit network access to the database. The ISP needs to GRANT you
permission to use the database from the IP you are connecting from
in MySQL itself. It is possible to grant access from anywhere, but
this opens up a number of security issues. It also requires more
administrative work from the ISP. Typically, they grant access
from the host that your web site is on, and that's all.
Also, they have to allow access for port 3306 through the firewall
for any IP that *any* customer is allowed to use (assuming a shared
database).
This is especially an issue if the ISP's customers are using their>Often ISP's are reluctant to enable ports such as this one, even if it's a
>relatively well-known service. It's one more protocol and service that they
>now have to be experts in, to watch for security risks. Their users might
>inadvertently create security holes.
web sites to conduct E-commerce, and the databases contain stuff
like credit card numbers. The ISP may end up involved for providing
inadequate security if there's a major breach.
Gordon L. Burditt
Gordon Burditt Guest
-
Dikkie Dik #4
Re: Updating record remotely from a script?
Burma Jones wrote:
I think you can do that with "scheduled tasks" in Windows or CRON on> I have a MySQL database on my ISP's Linux server. Can anyone tell me if
> it would be possible to update a specific record remotely without any
> user interaction? In other words, from a Windows script or batch file
> do the update without any interaction from myself. I was thinking of
> passing the update variables in a URL to a PHP script on the server, but
> that would open a browser window on the client which I don't want to
> do. Perhaps some other protocol or ODBC or something? Thanks!
Linux. You can probably run the script minimized.
Best regards
Dikkie Dik Guest
-
Brian Wakem #5
Re: Updating record remotely from a script?
Burma Jones wrote:
> I have a MySQL database on my ISP's Linux server. Can anyone tell me if
> it would be possible to update a specific record remotely without any user
> interaction? In other words, from a Windows script or batch file do the
> update without any interaction from myself. I was thinking of passing the
> update variables in a URL to a PHP script on the server, but that would
> open a browser window on the client which I don't want to do.
perl -MLWP::Simple -e 'get("http://www.mysite.com/myscript.php?a=1&b=2")'
--
Brian Wakem
Email: [url]http://homepage.ntlworld.com/b.wakem/myemail.png[/url]
Brian Wakem Guest
-
Burma Jones #6
Re: Updating record remotely from a script?
"Brian Wakem" <no@email.com> wrote in message news:40ffh3F1adq7dU1@individual.net...
Thanks folks for all your suggestions. I like the Perl suggestion best but Perl can't be installed on some of the machines I'm using. I also like Wget but even as small as it is, it still seemed to large for what I need it for. So I found an IIS Resource Kit Tool called TinyGet which does the job and is only 87K. Cheers> Burma Jones wrote:
>>>> I have a MySQL database on my ISP's Linux server. Can anyone tell me if
>> it would be possible to update a specific record remotely without any user
>> interaction? In other words, from a Windows script or batch file do the
>> update without any interaction from myself. I was thinking of passing the
>> update variables in a URL to a PHP script on the server, but that would
>> open a browser window on the client which I don't want to do.
>
> perl -MLWP::Simple -e 'get("http://www.mysite.com/myscript.php?a=1&b=2")'
>
>
>
> --
> Brian Wakem
> Email: [url]http://homepage.ntlworld.com/b.wakem/myemail.png[/url]
Burma Jones Guest



Reply With Quote

