AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using AutoHotkey and PHP for MySQL

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
Titan



Joined: 11 Aug 2004
Posts: 5382
Location: /b/

PostPosted: Thu Jan 19, 2006 10:13 pm    Post subject: Using AutoHotkey and PHP for MySQL Reply with quote

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
View user's profile Send private message Visit poster's website
BoBo
Guest





PostPosted: Fri Jan 20, 2006 7:08 am    Post subject: Reply with quote

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

PostPosted: Sat Feb 18, 2006 4:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kerry



Joined: 20 Jul 2006
Posts: 146
Location: Los Angeles

PostPosted: Sat Sep 09, 2006 9:01 pm    Post subject: Reply with quote

Bobo, I'm interested in this too Smile
_________________
String Manipulator - GrabIco
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Sun Sep 10, 2006 9:15 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group