Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Bug reports ➜ phpscript crash on php5ts.dll

phpscript crash on php5ts.dll

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Vchat20   USA  (7 posts)  Bio
Date Fri 03 Nov 2006 04:51 AM (UTC)
Message
So I have been a big advocate of using the php scripting ability of mushclient and so far things have been going really well.

My first php script was basically a long winded function that did a 'Now playing' display on a specified channel for the MUSH's affiliated web station. This basically involved the script going to an external database every 5 seconds and checking for a new playing song. If a new one is listed, it displays it on a channel. If not, it loops back to stage 1.

This ran on version 5.1.6 of php and it ran without a hitch.

Now I am working on a similar script to do the same thing with winamp but even with the code validating, mushclient keeps crashing on php5ts.dll . Only thing I can guess is I have since upgraded to php 5.2.0 (the same php installation is used for a production web server, just fyi).

Any ideas? Or should I take my chances and downgrade back to 5.1.6 for this?
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 03 Nov 2006 05:26 AM (UTC)
Message
In situations like this, it is probably something in the scripting DLL, over which I have no control. All of the script languages, except Lua, are implemented using the Microsoft Scripting interface, so there is no "PHP-specific" code, that might have somehow stopped working.

You could try downgrading, to see if the problem goes away, then maybe post a query to the PHP script site.

Alternatively, something like you describe could be done in Lua, there have been posts here about querying a database from Lua.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Vchat20   USA  (7 posts)  Bio
Date Reply #2 on Sat 04 Nov 2006 02:22 AM (UTC)
Message
Actually, I sort of solved the problem shortly after posting and that was I was 5.2.0 code under C:\php\ while the activescript dll under mushclient was still 5.1.6 . Once I upgraded the activescript dll to the 5.2.0 version.

I also had a similar issue afterwards where JUST the php5ts dll was at the older version (wouldnt overwrite because somehow mushclient had it locked and in use) and was causing a mess of crashes.

After all that was sorted, its all been running fine.

And TBH, the only reason why I use php is because its about the only scripting language that MC supports that I know well and so far its been working just fine for my uses so :/
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 04 Nov 2006 04:07 AM (UTC)
Message
Ah yes, incompatible DLLs will do that to you.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,627 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.