bots and PHP (Wishlist)

bots and PHP // Wishlist

1  |  

kah

Nov 24, 2001, 3:44pm
some ppl have requested a PHP SDK, but that's not really necesary. I have
written an example of how you can make PHP interact with the SDK, in this
case a webform where the user puts in a chat string that a bot will say. you
can download it from http://home.no.net/kahbot/phps.zip. it consits of tree
files, the PHP script where the user submits a chat string and a VB project
(2 files) which contains the bot which the PHP script shells. I have only
tested this on Apache 1.3.22 with PHP 4.0.6.
Requirements:
Win32 webserver with PHP4 installed, PHP Safe Mode OFF. Disk access. VB
with AwSdkOcx4 registered.
Instructions:
Open PHPSayer.vbp in VB, change the cit# and PPW (and location settings if
you want to) then compile it as PHPSayer.exe
Open phpsayer.php in a text-editor and set the BotPath variable to the path
of PHPSayer.exe. example: if PHPSayer.exe is located in C:\AW\Bots\ then put
"C:\\AW\\Bots\\". Put the script in your webserver's document area
Ok, now you've set everything up, just remains to see if it works :-)) Open
the script in a webbrowser, go to the location where the bot is set to
appear, specify your nick and the desired chat string, click the "Say"
button and wait for the bot to appear :-))

KAH
PS. if anybody would like to translate the bot to C++ or Delphi, I'd
appreciate it a lot :-))

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn