php-windows Digest 17 Jun 2005 04:06:32 -0000 Issue 2698
Topics (messages 26107 through 26112):
Re: (No subject header)
26107 by: David Collard
26108 by: Asendorf, John
Using Inernet Explorer COM object and need to reference popup windows
26109 by: Dang Nguyen
26110 by: Paul Menard
26111 by: Dang Nguyen
26112 by: Louis Solomon [SteelBytes]
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 ---
ddiffa wrote:
Okay I at loss. I have tried but i can seem to get the
php_gd2.dll to work properly. Any help this is what i have
done so far.
I have in my php.ini file,
; Directory in which the loadable extensions (modules)
reside.
extension_dir = "C:\PHP\extensions"
I have also uncommented the
extension = php_gd2.dll
I have in the c:\php\extension folder the php_gd2.dll
I have restarted IIS but still nothing
I am using Window XP $ 2000 with IIS 5.0 but still nothing
Please help
Disieyi
it might be case sensitive. try extension_dir = "c:/php/extensions"
--- End Message ---
--- Begin Message ---
I hate to ask, but have you installed GD?
http://www.boutell.com/gd/
-----Original Message-----
From: David Collard [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 16, 2005 10:48 AM
To: ddiffa
Cc: [email protected]
Subject: Re: [PHP-WIN] (No subject header)
ddiffa wrote:
>Okay I at loss. I have tried but i can seem to get the
>php_gd2.dll to work properly. Any help this is what i have
>done so far.
>
>I have in my php.ini file,
>
>; Directory in which the loadable extensions (modules)
>reside.
>extension_dir = "C:\PHP\extensions"
>
>I have also uncommented the
>
>extension = php_gd2.dll
>
>I have in the c:\php\extension folder the php_gd2.dll
>
>I have restarted IIS but still nothing
>
>I am using Window XP $ 2000 with IIS 5.0 but still nothing
>
>Please help
>Disieyi
>
>
>
it might be case sensitive. try extension_dir = "c:/php/extensions"
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
I am using PHP 5.0.4 and using Internet Explorer COM object to access a
website. From that website, my script clicks on a few links, for testing
purposes. A few of the links popup a new browser window, so I need a way to
verify that the link does open a new popup and also the URL, title, content,
or something that verifies the popup destination is what I expect it to be.
I've found some material about using com_event_sink and tried implementing
it, but it seems to hang the browser and the script exceeds the
max_execution_time. Below is a code snippet:
class IEEventSinker {
var $terminated = false;
var $newWindowOpened = false;
function NewWindow2 ($ppDisp, $Cancel=true) {
$this->newWindowOpened = true;
echo "<p>New Window event was fired.";
}
function OnQuit() {
echo "Quit!\n";
$this->terminated = true;
}
}
// the sinker that will capture IE events
$sink =& new IEEventSinker();
com_event_sink($myIE->ie, $sink, "DWebBrowserEvents2");
try {
// $myIE is a class that instantiates the IE COM object, and clicklinkIE
performs the mouseclick on the web page
$linkResult = $myIE->clicklinkIE($links['name']);
while($targetIsPopup && !$sink->newWindowOpened) {
com_message_pump(4000);
}
$myIE->wait_while_busy();
// script continues on
Can someone suggest a way to accomplish what I've described above? Examples
would be appreciated.
Thanks in advance,
Dang Nguyen
--- End Message ---
--- Begin Message ---
So I'm reading this and it sounds really interesting and all but I'm also
scratching my head
asking myself what this popup, IE COM object (client side) discussion has to
PHP (server side).
(Apologies if this seems rude. Having another Monday today. ;)
--- Dang Nguyen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using PHP 5.0.4 and using Internet Explorer COM object to access a
> website. From that website, my script clicks on a few links, for testing
> purposes. A few of the links popup a new browser window, so I need a way to
> verify that the link does open a new popup and also the URL, title, content,
> or something that verifies the popup destination is what I expect it to be.
>
> I've found some material about using com_event_sink and tried implementing
> it, but it seems to hang the browser and the script exceeds the
> max_execution_time. Below is a code snippet:
>
> class IEEventSinker {
> var $terminated = false;
> var $newWindowOpened = false;
>
> function NewWindow2 ($ppDisp, $Cancel=true) {
> $this->newWindowOpened = true;
> echo "<p>New Window event was fired.";
> }
>
> function OnQuit() {
> echo "Quit!\n";
> $this->terminated = true;
> }
> }
>
> // the sinker that will capture IE events
> $sink =& new IEEventSinker();
> com_event_sink($myIE->ie, $sink, "DWebBrowserEvents2");
>
> try {
> // $myIE is a class that instantiates the IE COM object, and clicklinkIE
> performs the mouseclick on the web page
>
> $linkResult = $myIE->clicklinkIE($links['name']);
> while($targetIsPopup && !$sink->newWindowOpened) {
> com_message_pump(4000);
> }
>
> $myIE->wait_while_busy();
> // script continues on
>
>
> Can someone suggest a way to accomplish what I've described above? Examples
> would be appreciated.
>
> Thanks in advance,
> Dang Nguyen
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I'm using PHP's COM class to instantiate IE and go through some
automated routines (e.g., go to URL, click a couple of links, etc.), for
testing purposes on our website. To be more specific, I'm using PHP CLI
to do all of this automation. For the most part, I can open the
browser, tell it to go to a specific URL, click links, etc, with PHP.
In addition, I can verify certain things along the way, like the Window
title, content, etc. However, I'm having a little trouble verifying
links on the web page that open a pop-up (i.e., target=_new in the href
tag). The latter is where I am seeking advice from the newsgroup.
Thanks,
Dang Nguyen
-----Original Message-----
From: Paul Menard [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 16, 2005 1:36 PM
To: Dang Nguyen; [email protected]
Subject: Re: [PHP-WIN] Using Inernet Explorer COM object and need to
reference popup windows
So I'm reading this and it sounds really interesting and all but I'm
also scratching my head asking myself what this popup, IE COM object
(client side) discussion has to PHP (server side).
(Apologies if this seems rude. Having another Monday today. ;)
--- Dang Nguyen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using PHP 5.0.4 and using Internet Explorer COM object to access
> a website. From that website, my script clicks on a few links, for
> testing purposes. A few of the links popup a new browser window, so I
> need a way to verify that the link does open a new popup and also the
> URL, title, content, or something that verifies the popup destination
is what I expect it to be.
>
> I've found some material about using com_event_sink and tried
> implementing it, but it seems to hang the browser and the script
> exceeds the max_execution_time. Below is a code snippet:
>
> class IEEventSinker {
> var $terminated = false;
> var $newWindowOpened = false;
>
> function NewWindow2 ($ppDisp, $Cancel=true) {
> $this->newWindowOpened = true;
> echo "<p>New Window event was fired.";
> }
>
> function OnQuit() {
> echo "Quit!\n";
> $this->terminated = true;
> }
> }
>
> // the sinker that will capture IE events
> $sink =& new IEEventSinker();
> com_event_sink($myIE->ie, $sink, "DWebBrowserEvents2");
>
> try {
> // $myIE is a class that instantiates the IE COM object, and
> clicklinkIE performs the mouseclick on the web page
>
> $linkResult = $myIE->clicklinkIE($links['name']);
> while($targetIsPopup && !$sink->newWindowOpened) {
> com_message_pump(4000);
> }
>
> $myIE->wait_while_busy();
> // script continues on
>
>
> Can someone suggest a way to accomplish what I've described above?
> Examples would be appreciated.
>
> Thanks in advance,
> Dang Nguyen
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
you may be better off in
msnews.microsoft.com : microsoft.public.inetsdk.programming.webbrowser_ctl
--
Louis Solomon
www.SteelBytes.com
""Dang Nguyen"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I am using PHP 5.0.4 and using Internet Explorer COM object to access a
> website. From that website, my script clicks on a few links, for testing
> purposes. A few of the links popup a new browser window, so I need a way
> to verify that the link does open a new popup and also the URL, title,
> content, or something that verifies the popup destination is what I expect
> it to be.
>
> I've found some material about using com_event_sink and tried implementing
> it, but it seems to hang the browser and the script exceeds the
> max_execution_time. Below is a code snippet:
>
> class IEEventSinker {
> var $terminated = false;
> var $newWindowOpened = false;
>
> function NewWindow2 ($ppDisp, $Cancel=true) {
> $this->newWindowOpened = true;
> echo "<p>New Window event was fired.";
> }
>
> function OnQuit() {
> echo "Quit!\n";
> $this->terminated = true;
> }
> }
>
> // the sinker that will capture IE events
> $sink =& new IEEventSinker();
> com_event_sink($myIE->ie, $sink, "DWebBrowserEvents2");
>
> try {
> // $myIE is a class that instantiates the IE COM object, and clicklinkIE
> performs the mouseclick on the web page
>
> $linkResult = $myIE->clicklinkIE($links['name']);
> while($targetIsPopup && !$sink->newWindowOpened) {
> com_message_pump(4000);
> }
>
> $myIE->wait_while_busy();
> // script continues on
>
>
> Can someone suggest a way to accomplish what I've described above?
> Examples would be appreciated.
>
> Thanks in advance,
> Dang Nguyen
--- End Message ---