[PHP] PHP and COM - Syntax question

2002-01-18 Thread J Wynia
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges $word-Quit(); $word-Release(); $word = null; return $corrected; } J Wynia phpgeek.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Re: PHP and COM - Syntax question

2002-01-18 Thread J Wynia
($string); $word-ActiveDocument-CheckSpelling(); $word-Selection-WholeStory(); $corrected = $word-Selection-Text; $word-Quit(false); $word-Release(); $word = null; return $corrected; } J Wynia phpgeek.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] Re: PHP and COM - Syntax question

2002-01-18 Thread J Wynia
Hopefully this is my last reply on this thread. I discovered after opening Word normally after a few dozen tests, that it tried to recover all those lost documents. The following demo script has that fixed. ?php function spellcheck($string){ $word = new COM(word.application) or die(The

[PHP] Re: Windows Logon Username Pass to PHP

2002-02-21 Thread J Wynia
This may sound kludgy. Probably is. Since it's an internal site, you can control things a bit. The Windows Scripting Host (installed on Win 98+ and Win2K+, available for others as download) exposes at least the username as a property on a WScript.Network object. However, since access to that

[PHP] Re: licensing, protection

2002-02-21 Thread J Wynia
There is the PHP Obfuscator that makes output code a real pain to read. It doesn't really compile it or anything, but it's a level of protection if you need it. http://pobs.mywalhalla.net/ Kunal Jhunjhunwala [EMAIL PROTECTED] wrote in message

[PHP] Specify php.ini per virtual host?

2002-02-21 Thread J Wynia
Is it possible to specify a different php.ini file for each virtual host? I know that that -c altphp.ini syntax on the end of the commandline will switch it, however, that doesn't exactly work like I'd hoped in Apache's configuration. I'd like a solution that worked with either the CGI or module

[PHP] Re: php, win32, xml bug?

2002-02-25 Thread J Wynia
The first thing I'd do is run your transformation through one of (or all of) the rest of the XSL engines out there. There's a lot more variability out there in XSL engines. Unfortunately, Sablotron isn't the most conformant of the field. I haven't used Sablotron in a while for XSLT processing so

[PHP] Re: php, win32, xml bug?

2002-02-26 Thread J Wynia
($xsl_string); $output = $xml_com - transformNode($xsl_com); Alexander GräF [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... J Wynia [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The first thing I'd do is run you

[PHP] Re: PHP COM with Distiller

2002-02-26 Thread J Wynia
Don't have sample code handy, but you'd create a new Word, Excel or Powerpoint object (depending), and use the print methods of those objects to send it to Distiller. Kumar [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, Installed Apache, PHP,

[PHP] Re: sending mail via SMTP server

2002-02-26 Thread J Wynia
Does your script take longer than the default 30 seconds? It might be timing out and dying. You may just need to give the script time to finish by making the max_execution_time longer. Matthew Delmarter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am using a

[PHP] Re: Create Word Document from PHP??

2002-03-06 Thread J Wynia
Don't know what code you're using to do this, but here's a spellcheck function that creates a new Word doc. See if this works for you. function spellcheck($string){ $word = new COM(word.application) or die(The spellcheck function requires MS Word.); $word-Visible = 0; $word-Documents-Add();

[PHP] Re: How to Pass the Username which from Windows Login

2002-03-29 Thread J Wynia
$network = new COM(WScript.Network); $computername = $network-ComputerName; $username = $network-UserName; Password can't be grabbed for fairly obvious reasons. Jack [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dear all I want to prevent user to make another

Re: [PHP] PHPTriad on Windows XP?

2002-10-01 Thread J Wynia
PHPTriad 2.2 will work on XP. No, Sokkit is not out yet. Sokkit will most definitely work on XP as that's what I'm developing it on. Stephen wrote: Is this even out yet? I have PHPTriad 2.2 I'm pretty sure. - Original Message - From: Tyler Longren [EMAIL PROTECTED] To: Stephen

[PHP] Re: PHP from behind a proxy-server ??

2002-10-16 Thread J Wynia
You can use the CURL module to do this fairly easily as it has a proxy setting. Some example code available at: http://www.phpgeek.com/articles.php?content_id=29 Rob wrote: hi, i'm trying to get phpMySetiStats (phpmysetistats.sourceforge.net) running on my NT4 box (Apache 2.0.39, PHP

[PHP] Re: the xml functions

2002-10-24 Thread J Wynia
entity in your DTD and make sure that all XML strings have a DTD when they are fed through the parser. J Wynia phpgeek.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php