Thread

bots and PHP (Sdk)

bots and PHP // Sdk

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 :-))

joeman

Nov 24, 2001, 4:15pm
Heres another way to do it, without the program behind it. I know its a bit
buggy, but that can be worked out with some time. This one requires that
AWSDKOcx3 be registered on the system, that's it. I'm sure if you know a
little about com objects you could make it work with 4.
http://aspect.awlife.net/phpbotexamp.zip (one file, bot5.php) (needs much
updating)

-Joe

[View Quote]

joeman

Nov 24, 2001, 4:15pm
Oooh, I forgot, another thing. COM objects cannot receive events.

-Joe

[View Quote]

grimble

Nov 24, 2001, 10:32pm
Umm Joe, can you qualify that please?

[View Quote]

joeman

Nov 25, 2001, 12:29am
You can chat, add objects, delete objects, and all that hob-job. But, you
cannot see when an avatar was added, see when one was deleted, avatar click,
etc. But, with MrGrimms handy dandy PHP AW SDK, you can do all this and
more! (http://www.grimmsoft.com/aw/php/) So really, there is no need for
my way. I will give anyone that wants example code for grimms php sdk, it.

-Joe



[View Quote]

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