| View previous topic :: View next topic |
| Author |
Message |
Titan
Joined: 11 Aug 2004 Posts: 5382 Location: /b/
|
Posted: Thu Jan 19, 2006 10:13 pm Post subject: Using AutoHotkey and PHP for MySQL |
|
|
If a computer/server has PHP and MySQL installed, theoritically you could use AutoHotkey to make a script which would append some PHP commands to a file, run that file from its virtual directory and use the browser to get the PHP-output text - which in this case would be data extracted from a MySQL database.
I know this way is not great but are there any better solutions or workarounds until AutoHotkey supports ODBC internally? |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Fri Jan 20, 2006 7:08 am Post subject: |
|
|
| I'm using isql to do queries on our billing platform. It works the way you descriped. create sql (batch) file. run that file via AHK to start the query. parse the response from the db (caught at the requested log) using AHK. |
|
| Back to top |
|
 |
lingoist
Joined: 05 Oct 2004 Posts: 124 Location: Brasília, Brazil
|
Posted: Sat Feb 18, 2006 4:57 pm Post subject: |
|
|
Could you explain me step by step?
May I use it through Command Line such as:
| Code: | | Run, mysql.exe functions etc |
Thanks,
lingoist |
|
| Back to top |
|
 |
Kerry
Joined: 20 Jul 2006 Posts: 146 Location: Los Angeles
|
Posted: Sat Sep 09, 2006 9:01 pm Post subject: |
|
|
Bobo, I'm interested in this too  _________________ String Manipulator - GrabIco |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Sun Sep 10, 2006 9:15 am Post subject: |
|
|
Running an SQL engine is indeed a good solution.
Also note that recent versions of PHP are designed to work standalone on the command line, ie. like any scripting language: no need for Apache server nor Web browser, output directly on stdout. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
|