[PHP-WIN] Re: SOCKETS

2002-08-09 Thread Brian Huff
You can use the socket extension for PHP on windows, just like on Unix, to make your web pages create socket requests to another server (say, download some stock info from Yahoo) with the libraries discussed here: http://www.php.net/manual/en/ref.sockets.php You may need to enable the 'php_so

Re: [PHP-WIN] Apache+ PHP + Netscape 7.0

2002-08-09 Thread Brian Huff
This may still be a netscape-ism... try using your DNS name instead of localhost... also, try this with JSP or Perl pages to see if its an Apache2-Netscape thing, or an Apache2-Netscape-PHP thing -- Brian 'Bex' Huff [EMAIL PROTECTED] Phone: 952-903-2023 Fax: 952-829-5424 > Yes, http://loca

RE: [PHP-WIN] reading input from a magnetic stripe and then parsingit to a MySQL database for querry?

2002-07-25 Thread Brian Huff
The card reader should have some driver documentation on how to access the data... you'd most likely have to write this in C++. If you're lucky, the manufacturers may have a command-line interface program to get at the data, or some dlls... so you might be able to get away with VB or Java...

[PHP-WIN] Re: Can php generate MS word doc format?

2002-07-25 Thread Brian Huff
Check out the COM interface. You can load Microsoft Word as a COM component in PHP, and do things like "TypeText", "SaveAs", etc. There is a sample in the documentation specificly for this, but the COM syntax may vary depending on which version of word you have. Expect to spend some time p

[PHP-WIN] Re: error compiling example-extension

2002-07-22 Thread Brian Huff
First of all, we almost never respond to individuals, we always reply to the list. I only CCed you in case you are unaware of that. We do this mostly because then everybody can benefit from the exchange. If you dont read the newsgroups for a response, dont expect to ever get an answer. Sec

[PHP-WIN] Re: [PHP] Restart process from code?

2002-07-17 Thread Brian Huff
NET STOP only works if its running as a service. Otherwise you'll need the "kill" utility. It comes with the NT Resource Kit, which works on NT and 2000, I haven't tested it on XP, or anybody else. you can give kill a pid, or an executable name, like > kill java.exe or whatever... Im not

[PHP-WIN] Re: compiling with VC++

2002-07-17 Thread Brian Huff
It sounds like you are not linking into the proper DLLs so that your custom DLL can be built. It sounds like you need to add the entry "php4ts_debug.lib" or "php4ts.lib" to your linkage list. The easiest way to do this is to open up your ".dsp" file in a text editor, and add them to the line

[PHP-WIN] Re: Fopen errors out when opening a URL

2002-07-15 Thread Brian Huff
check out this ini value: allow_url_fopen its set to false for some versions of PHP. another thing, do a sanity check to make sure it works at all... like this: $fp = fopen ("c:\\temp\\test.txt", "r"); also note, you cant use include() or require() with remote files on windows. also note, i

[PHP-WIN] Re: Available PHP Whitepapers

2002-07-12 Thread Brian Huff
I have looked for quite a while as well, and have found very little info that would satisfy the thick-heads above... there are tons of reports about the explosive popularity of PHP, but that's about it... most white papers are for performance stats of things that build off of PHP, and not PHP

[PHP-WIN] Re: Calling Windows DLL Files

2002-07-12 Thread Brian Huff
I would suggest breaking this project into the two logically seperate pieces. If this is a windows DLL, make yourself a COM or DCOM object in VB or VC++, then call that COM object from inside PHP. The COM object will be able to do the tweaky stuff with networks, scanning, etc. Put all your

[PHP-WIN] Re: PHP with Apache modules

2002-06-12 Thread Brian Huff
you should probably send the exact error message so we can be sure... but Im betting that its complaining about build numbers being different. You probably have incompatible versions of php4apache.dll and php4ts.dll on your machine... or else one of the other dlls that you load up (referenc

[PHP-WIN] cached include extension

2002-06-11 Thread Brian Huff
does anybody know of an extension to PHP that can do 'include' calls in a cached manner? The problem is this - Im designing a site which will have a lot of dynamic assembly and delivery of chunks of php. Im concerned that a lot of this: will cause a lot of file IO and slow down the sit

RE: [PHP-WIN] IIS Sucks!

2002-05-29 Thread Brian Huff
It looks like the dlls that you are using for iisfunct and mysql do not have the same build numbers as the ones for PHP. Your PHP module is from September of last year, whereas your dlls are from last month. My guess is that you compiled these dlls based on the latest beta source, but you sti