php-windows Digest 3 Sep 2002 12:41:02 -0000 Issue 1321

Topics (messages 15643 through 15652):

Re: Multiple recipients with mail();
        15643 by: Dallas Thunder

Re: COM and Word, how?
        15644 by: Dallas Thunder
        15645 by: Scott Carr
        15649 by: David Tod Sigafoos
        15652 by: Michelle

Long Job (Please Wait)
        15646 by: Scott Carr

Re: [ANSWER] Long Job (Please Wait)
        15647 by: Scott Carr

Can't DL windows binaries
        15648 by: Clark
        15650 by: Skeepa

BugZilla:  Please Wait
        15651 by: Scott Carr

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Read the manual at http://www.php.net/manual/en/function.mail.php and see
Example 4. Sending complex email.

"Davy Obdam" <[EMAIL PROTECTED]> wrote in message
000301c252e0$8d56e7b0$9600000a@davy">news:000301c252e0$8d56e7b0$9600000a@davy...
> Hi
>
> I have this piece of script on my site. It sends e-mail from the
> feedbackform. I can only send e-mail to one recipient, but i would like
> to send this e-mail to multiple recipients. Here is my code, i hope
> someone can help me out. Thanks already!
>
> //Send e-mail from feedbackform
> //recipients
> $recipients="[EMAIL PROTECTED]";
> //Subject
> $subject="Reaction from website";
> //Message
> $message="Reaction from website:\n\nName: $name\nAdres: $adres\nZipCode:
> $zip\nCity: $city\nPhone: $phone \nEmail:
> $email\n\nComments:\n\n$comments\n";
> //headers
> $headers="From:$name <$email>\n";
> //verstuur de e-mail
> $result= mail($recipients,$subject,$message,$headers);
> //Controleer of e-mail verstuur is
> if(!$result)
> {
> //Sending has failed
> echo "Sending your e-mail has failed<br><br>";
> echo "<a href=javascript:history.go(-1)>Back</a>\n";
> } else {
> //Send succesfully
> echo "<b>Your e-mail is send</b><br>\n";
> echo "Thanks for your time<br><br>";
> echo "<a href=index.php>Back</a>\n";
> }
>
> Thanks:-)
>
> Greetings
>
> Davy Obdam
> mailto:[EMAIL PROTECTED]
> url: http:///www.davyobdam.com
>
>


--- End Message ---
--- Begin Message ---
Well, this script works fine on my machine.  Windows XP w/ Office XP, PHP
4.2.3.

"Michelle" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am new to COM and tried an example today (See bottom of post)
>
> When I execute the code, I get is an error message and if I look in the
Task
> Manager, there is a WINWORD.EXE process running, which I can't end. Every
> time I reload the page, a new winword is started...
>
> How should PHP.ini be set for me to use COM Objects?
>
> ---------------------------------
> Error message:
> Warning: Unable to obtain IDispatch interface for CLSID
> {000209FF-0000-0000-C000-000000000046}: The message filter indicated that
> the application is busy. in d:\inetpub\wwwroot\incmill\ver2\readfile.php
on
> line 2
> Unable to instantiate word
>
> Setup:
> Windows 2000 Professional
> PHP 4.2.1
> Office 2000
>
> PHP.ini
> COM values:
> Directive, Local Value, Master Value
> com.allow_dcom, Off, Off
> com.autoregister_casesensitive, On, On
> com.autoregister_typelib, Off, Off
> com.autoregister_verbose, Off, Off
> com.typelib_file,  no value,  no value
>
>
> Code:
> $word = new COM("word.application") or die("Unable to instantiate Word");
> print "Loaded Word, version {$word->Version}<BR>";
> $word->Visible = 1;
> $word->Documents->Add();
> $word->Selection->TypeText("This is a test...");
> $word->Documents[1]->SaveAs("Useless test.doc");
> $word->Quit();
>
>
>
>


--- End Message ---
--- Begin Message ---
Can you open Word in ActiveState Perl or some other app?  (Besides VBA.)

It may be a problem with your word COM settings.
-- 
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/


Quoting Dallas Thunder <[EMAIL PROTECTED]>:

> Well, this script works fine on my machine.  Windows XP w/ Office XP, PHP
> 4.2.3.
> 
> "Michelle" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I am new to COM and tried an example today (See bottom of post)
> >
> > When I execute the code, I get is an error message and if I look in the
> Task
> > Manager, there is a WINWORD.EXE process running, which I can't end. Every
> > time I reload the page, a new winword is started...
> >
> > How should PHP.ini be set for me to use COM Objects?
> >
> > ---------------------------------
> > Error message:
> > Warning: Unable to obtain IDispatch interface for CLSID
> > {000209FF-0000-0000-C000-000000000046}: The message filter indicated that
> > the application is busy. in d:\inetpub\wwwroot\incmill\ver2\readfile.php
> on
> > line 2
> > Unable to instantiate word
> >
> > Setup:
> > Windows 2000 Professional
> > PHP 4.2.1
> > Office 2000
> >
> > PHP.ini
> > COM values:
> > Directive, Local Value, Master Value
> > com.allow_dcom, Off, Off
> > com.autoregister_casesensitive, On, On
> > com.autoregister_typelib, Off, Off
> > com.autoregister_verbose, Off, Off
> > com.typelib_file,  no value,  no value
> >
> >
> > Code:
> > $word = new COM("word.application") or die("Unable to instantiate Word");
> > print "Loaded Word, version {$word->Version}<BR>";
> > $word->Visible = 1;
> > $word->Documents->Add();
> > $word->Selection->TypeText("This is a test...");
> > $word->Documents[1]->SaveAs("Useless test.doc");
> > $word->Quit();
> >
> >
> >
> >
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
Hello Michelle,

this worked on my test system ..

win2k sp2,
apache 1.2.34
php 4.2.2

dsig

Monday, September 2, 2002, 10:03:50 AM, you wrote:

M> I am new to COM and tried an example today (See bottom of post)

M> When I execute the code, I get is an error message and if I look in the Task
M> Manager, there is a WINWORD.EXE process running, which I can't end. Every
M> time I reload the page, a new winword is started...

M> How should PHP.ini be set for me to use COM Objects?

M> ---------------------------------
M> Error message:
M> Warning: Unable to obtain IDispatch interface for CLSID
M> {000209FF-0000-0000-C000-000000000046}: The message filter indicated that
M> the application is busy. in d:\inetpub\wwwroot\incmill\ver2\readfile.php on
M> line 2
M> Unable to instantiate word

M> Setup:
M> Windows 2000 Professional
M> PHP 4.2.1
M> Office 2000

M> PHP.ini
M> COM values:
M> Directive, Local Value, Master Value
M> com.allow_dcom, Off, Off
M> com.autoregister_casesensitive, On, On
M> com.autoregister_typelib, Off, Off
M> com.autoregister_verbose, Off, Off
M> com.typelib_file,  no value,  no value


M> Code:
M> $word = new COM("word.application") or die("Unable to instantiate Word");
M> print "Loaded Word, version {$word->Version}<BR>";
$word->>Visible = 1;
$word->>Documents->Add();
$word->>Selection->TypeText("This is a test...");
$word->>Documents[1]->SaveAs("Useless test.doc");
$word->>Quit();








-- 
DSig                                 `````
David Tod Sigafoos                  ( O O )
mailto:[EMAIL PROTECTED] _______oOOo__( )__oOOo_______

Using 'The Bat' 1.61
Using 'OS' Windows 2000 Service Pack 2

--- End Message ---
--- Begin Message ---
> this worked on my test system ..
>
> win2k sp2,
> apache 1.2.34
> php 4.2.2

When you print out phpinfo(), does the COM setting look like this?
COM:
Directive, Local Value, Master Value
com.allow_dcom, Off, Off
com.autoregister_casesensitive, On, On
com.autoregister_typelib, Off, Off
com.autoregister_verbose, Off, Off
com.typelib_file,  no value,  no value

Just thought it might be that. I will upgrade to the latest PHP-version
also.
What version of Office do you use and do you have any SP installed on it?

Thanks,
// Michelle


--- End Message ---
--- Begin Message ---
Hello all,

I am beating myself up over this.  (It's not necassarily a PHP question, but...)

I have a PHP script that can take 2 - 60+ seconds to complete.  In BugZilla,
when you submit a search it pops with a "Please Wait" screen.  Is anyone
familiar with how to do this?  (My next thing is to dig in the source for
BugZilla to pick this apart.)

I believe it is a header thing, but I am grasping at the moment.

Thanks for any help or direction you can send me in.
-- 
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/





-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
Found the answer, or at least a direction right after emailing.  ;-)

Figured I'd post in case someone is interested.  I got this off a post at
phpbuilder.  

<script>
   header("Connection: keep-alive");
   echo "loading ..."; 
   flush();
</script>

http://www.phpbuilder.com/mail/php3-list/199903/2571.php

If anyone can see any problems with this, please say something.  I am going to
try this tomarrow.
-- 
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/


Quoting Scott Carr <[EMAIL PROTECTED]>:

> Hello all,
> 
> I am beating myself up over this.  (It's not necassarily a PHP question,
> but...)
> 
> I have a PHP script that can take 2 - 60+ seconds to complete.  In BugZilla,
> when you submit a search it pops with a "Please Wait" screen.  Is anyone
> familiar with how to do this?  (My next thing is to dig in the source for
> BugZilla to pick this apart.)
> 
> I believe it is a header thing, but I am grasping at the moment.
> 
> Thanks for any help or direction you can send me in.
> -- 
> Scott Carr
> OpenOffice.org
> Documentation Maintainer
> http://documentation.openoffice.org/
> 
> 
> 
> 
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
Is something wrong with the binary downloads? I've tried many mirrors
and my browser just times out after clicking on the 4.2.2 zip package
link.

TIA 

- Clark

--- End Message ---
--- Begin Message ---
try http://ftp.proventum.net/pub/php/win32/php-4.2.2-Win32.zip

Esteban



-----Mensaje original-----
De: Clark [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 02 de septiembre de 2002 23:38
Para: [EMAIL PROTECTED]
Asunto: [PHP-WIN] Can't DL windows binaries


Is something wrong with the binary downloads? I've tried many mirrors
and my browser just times out after clicking on the 4.2.2 zip package
link.

TIA 

- Clark


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
I looked at BugZilla, and it is actually two html files.  They are sent with a
Content-Type of XMultipart-Mime, and both pages are sent in the same transmission.  

Interesting... 
-- 
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/





-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---

Reply via email to