PasswordMaker Forums
Other Editions => Other Editions - Help and Support => Topic started by: Eric H. Jung on November 15, 2005, 08:15:42 PM
-
Hi Miquel,
I'm trying to run test.php (http://forums.passwordmaker.org/index.php?showtopic=452), which you really wrote as server-side PHP, as command-line php (PHP 4.4.1 on Windows XP). I don't want to use a php.ini; I want it to be completely stand-alone. So here's what I have:
c:\php\cli\php.exe -d extension_dir=/php/extensions -d extension=php_mhash.dll /path/to/test.php
Note I also copied php4ts.dll into c:\php\cli. I also added this as the first line of test.php:
ini_set("include_path", ".");
so that include 'passwordmaker_class.php'; would work. However, I'm getting this error:
MD4 generated password:
Fatal error: Call to undefined function: mhash() in C:\temp\new\passwordmaker_class.php on line 289
Any ideas?
Regards,
Eric
-
php.exe -d extension_dir=/php/extensions -z php_mhash.dll /path/to/test.php
FYI, it was written as cli based, otherwise all that test would be on one line. (I love SciTE)
Might be best if we decide to use this for some reason, have a special compiled version of PHP for Windows users.
-
I'm still getting:
C:\temp\new>php.exe -d extension_dir=/php/extensions -z php_mhash.dll /temp/new/test.php
Failed loading php_mhash.dll
MD4 generated password:
Fatal error: Call to undefined function: mhash() in C:\temp\new\passwordmaker_class.php on line 289
Any other ideas?
Might be best if we decide to use this for some reason, have a special compiled version of PHP for Windows users.
How would it be different than the normally-compiled PHP? And yes, I do see a use for this--it's a cross-platform command-line version until the C/C++ edition (the backend of which you are writing) is ready.
-
It can't find the php_mhash for some reason. Might want to include the drive letter in the path (and use backslashes as well)
The normally compiled PHP needs you to load the mhash extension, the special compiled version would have it built in, provided you can do that with the Windows version.
BTW, either just post in a topic or PM me next time, not both. That's annoying.
-
BTW, either just post in a topic or PM me next time, not both. That's annoying.
I do that because I don't know when or if someone is subscribed to a topic to which I'd like a response. Anyway, I apologize.
-
If the yellow arrow is there, I'll read the topic. (In other words, I read all posts)
-
What yellow arrow?
-
Yellow, new, whatever the heck this forum uses.
-
What yellow arrow?
Eric, miquelfire is talking about the yellow double arrow, I believe. :D
-
Yea, on the forum index. It's new on the thread list though.
-
That's what I thought. It's in the left most column, too. I know, because I do precisely the same thing. :D I guess Eric subscribes to all the forums and only checks when he gets an email, or should I say fora, Eric ? :nerd: Otherwise he would know what we are talking about.
-
That's correct, Romeo. But now I understand the yellow arrow. The email bit doesn't work so well with InvisionFree.com (our current forum host); that's one reason we're taking the forum hosting in-house....