|
||
|
|||||||
| Script Languages Perl/PHP/Python/Ruby so on and so forth. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
|
w00t for the first post of this forum!
Is it possible to make a php script that will automatically take data from a .txt file and enter it into tables in MySQL on LocalHost? If so, how can i make MyRunUO upload to an FTP instead of ODBC to the Database, as the database i use does not support external connection... ![]()
__________________
![]() WWW.RPK-UO.COM - The WoW-UO Cross-Over Shard |
|
|
|
|
|
#2 (permalink) | |
|
Account Terminated
|
Quote:
The answer to your question, is yes its possible, but it wouldn't perform very well. |
|
|
|
|
|
|
#4 (permalink) | |
|
Master of the Internet
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
|
Quote:
__________________
Goodbye, folks. |
|
|
|
|
|
|
#5 (permalink) |
|
Newbie
|
I didn't test this, but I think this is what you're looking for....
PHP Code:
|
|
|
|
|
|
#6 (permalink) |
|
Forum Newbie
Join Date: Dec 2006
Location: Southern Indiana, USA
Posts: 11
|
You could always make the php script to run on your shard pc as cmdline task through the task scheduler and do it that way. Does your host allow non-local host connections to the mysql databases?
Or, Modify the server to fire that connection and do the same. Send the text file's info through the connection in the server. I've done very similar in the past, using a shard script to update a mysql db on the fly from an in game command (listing of all npc types and such). Was not on RunUO though, but, with the C# it should be very easily done.
__________________
Penguin Scripter |
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
|
Nice advice, but a bit late... [RunUO 2.0 RC1] Complete Automated Web Accounting Service 1.0
__________________
Use the middle mouse button on Here for forum rules, if nothing happens get firefox and try again!!! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|