|
bots and PHP (Sdk)
bots and PHP // Sdk
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 :-))
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]"kah" <kah at kahbot.com> wrote in message
news:3bffdc82$1 at server1.Activeworlds.com...
> 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 :-))
>
>
|
Nov 24, 2001, 4:15pm
Oooh, I forgot, another thing. COM objects cannot receive events.
-Joe
[View Quote]"joeman" <Joeman at bootdown.com> wrote in message
news:3bffe3b1 at server1.Activeworlds.com...
> 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
>
> "kah" <kah at kahbot.com> wrote in message
> news:3bffdc82$1 at server1.Activeworlds.com...
have
this
> you
> tree
> project
only
if
> path
> put
> Open
>
>
|
Nov 24, 2001, 10:32pm
Umm Joe, can you qualify that please?
[View Quote]"joeman" <Joeman at bootdown.com> wrote in message
news:3bffe3d8$1 at server1.Activeworlds.com...
> Oooh, I forgot, another thing. COM objects cannot receive events.
>
> -Joe
>
> "joeman" <Joeman at bootdown.com> wrote in message
> news:3bffe3b1 at server1.Activeworlds.com...
> bit
that
a
much
> have
> this
say.
> only
VB
settings
> if
then
>
>
|
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]"grimble" <grimble2000 at btinternet.com> wrote in message
news:3c003c01$1 at server1.Activeworlds.com...
> Umm Joe, can you qualify that please?
>
> "joeman" <Joeman at bootdown.com> wrote in message
> news:3bffe3d8$1 at server1.Activeworlds.com...
a
> that
know
> a
> much
> say.
of
access.
> VB
> settings
the
> then
:-))
to
"Say"
>
>
|
|