php-windows Digest 28 Aug 2001 22:21:39 -0000 Issue 725

Topics (messages 9087 through 9095):

popup text
        9087 by: sur-php
        9089 by: Kumschick Alain
        9091 by: Jens Wabnitz

Re: PHP/VB/Byrefs
        9088 by: Andrew Stopford

Embedding PHP in C
        9090 by: Chris Wilson

COM objects win2000 PHP4.02
        9092 by: Mize, Robert
        9094 by: Alain Samoun
        9095 by: Mize, Robert

Re: printer_start_doc
        9093 by: Rob Cox

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]


----------------------------------------------------------------------


Hello php-windows,

  does anyone know how to do this ?
  for example...
  if we will take mouse cursor above any hyperlink,
  then some text will be popup.....

  i know how to do this with images ...
  <img src=some.jpg alt="this is image">
  but simply with text link how to do ???????

  this doesn't works :(
  <a href=next.php alt="pop up man">link</a>

  any idea ??

-- 
Best regards,
 sur-php                          mailto:[EMAIL PROTECTED]






Here is the code:

*************************************************
<a href="page.php" title="Pupup Text here">Link Here</a>
*************************************************




                                    --- Alain K. ---

_______________________________________________________________________
http://www.kumschickalain.50g.com/ - Updated: July 31st, 2001
http://www.kumschick.50g.com/ - Updated: July 28th, 2001
http://www.mb2u.50g.com/ - Updated: July 30th, 2001

Mobile: (+352) 021/73 88 84




"Sur-Php" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello php-windows,
>
>   does anyone know how to do this ?
>   for example...
>   if we will take mouse cursor above any hyperlink,
>   then some text will be popup.....
>
>   i know how to do this with images ...
>   <img src=some.jpg alt="this is image">
>   but simply with text link how to do ???????
>
>   this doesn't works :(
>   <a href=next.php alt="pop up man">link</a>
>
>   any idea ??
>
> --
> Best regards,
>  sur-php                          mailto:[EMAIL PROTECTED]
>
>






> Here is the code:
> 
> *************************************************
> <a href="page.php" title="Pupup Text here">Link Here</a>
> *************************************************

But only for IE and Netscape 6.
For Netscape 4.x you have to use DHTML. 

Bye
Jens




Hi,

I created a simple COM object that uses ByRef and works with PHP 4.0.6 what
version of PHP are you running ?

Andrew


"Eric Pankoke" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I created a simple DLL that contains two functions which give the user a
> string: one as a return value and the other as a ByRef argument.  The
> return value worked and the ByRef didn't.
>
> At 03:39 PM 8/23/01 -0400, Ryan Marrs wrote:
> >[Yes this is a repeat, but I didn't receive an answer back, and I
> >desperately need an answer]
> >
> >Thanks!
> >
> >Anybody know if PHP can handle VB ByRef's when calling a COM object?
I've
> >searched the documentation and the web and have found nothing on it, so
I'm
> >going to assume it doesn't, but I just thought I'd check through the list
> >before I declared the topic dead.
> >
> >Thanks!
> >
> >Ryan
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Hello Everyone

I'm doing a project for which I want to have a C/C++ act as a process proxy
for which can pass information and retrieve information from a called PHP
script. I think that can be done in perl however perl I don't take is the
best langauge. I've fell in love with PHP and would love use it and avoid
have to call PHP from the commandline and parsing the outputs.

Any suggestion on if this can be done or any other langauge that do the
trick besides PERL..

Thanks
Chris








I am having issues instantiating word or excel using COM.

I get the error:
Warning: Unable to obtain IDispatch interface for CLSID
{000209FF-0000-0000-C000-000000000046}: Access is denied. in
C:\Inetpub\wwwroot\website\excel\word.php on line 3
Unable to instanciate Word
Line 3 is:
$word = new COM("word.application") or die("Unable to instantiate Word");

I have changed permissions everywhere I can think of (office executables and
web dirs), I have added com.allow_dcom = true   to php.ini. I'm not sure
what else to try. 

Anyone know what I am doing wrong?

Thanks,
rob.




Did you check:
http://www.php.net/manual/de/install.iis.php#install.iis.iis4
You seem to have a permission problem.
Don't forget that PHP code works on the server side, so you need to
have word enabled for your server.
Also check the win2k process list because for every time the script crashes
you have a winword.exe sitting there. 
Alain

On Tue, Aug 28, 2001 at 12:29:42PM -0500, Mize, Robert wrote:
> I am having issues instantiating word or excel using COM.
> 
> I get the error:
> Warning: Unable to obtain IDispatch interface for CLSID
> {000209FF-0000-0000-C000-000000000046}: Access is denied. in
> C:\Inetpub\wwwroot\website\excel\word.php on line 3
> Unable to instanciate Word
> Line 3 is:
> $word = new COM("word.application") or die("Unable to instantiate Word");
> 
> I have changed permissions everywhere I can think of (office executables and
> web dirs), I have added com.allow_dcom = true         to php.ini. I'm not sure
> what else to try. 
> 
> Anyone know what I am doing wrong?
> 
> Thanks,
> rob.
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




After changing the permissions using dcomcnfg.exe, it is working. I never
knew that existed.. Thanks Alan! Also thanks to everyone else who had
suggestions.

rob. 

-----Original Message-----
From: Alan Brown [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 2:19 PM
To: Mize, Robert
Subject: Re: [PHP-WIN] COM objects win2000 PHP4.02


Probably the user account that the web site is running under (looks like
IIS, so IUSR_<MACHINENAME>) does not have permission to instantaite the word
component. What are the permissions on the directory containing winword.exe
and on the exectuable itself? It could be instatitation permsisions (which
are stored in the registry - see dcomcnfg.exe) or on the exectuable.

Alan.
----- Original Message -----
From: "Mize, Robert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 13:29
Subject: [PHP-WIN] COM objects win2000 PHP4.02


> I am having issues instantiating word or excel using COM.
>
> I get the error:
> Warning: Unable to obtain IDispatch interface for CLSID
> {000209FF-0000-0000-C000-000000000046}: Access is denied. in
> C:\Inetpub\wwwroot\website\excel\word.php on line 3
> Unable to instanciate Word
> Line 3 is:
> $word = new COM("word.application") or die("Unable to instantiate Word");
>
> I have changed permissions everywhere I can think of (office executables
and
> web dirs), I have added com.allow_dcom = true  to php.ini. I'm not sure
> what else to try.
>
> Anyone know what I am doing wrong?
>
> Thanks,
> rob.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>




Any luck?


"Daniel Beulshausen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 15:08 24.08.2001 -0400, Rob Cox wrote:
> >Updated to 4.0.7rc1 and it still didn't work.
> >Here's my snippet:
> >
> >$handle = printer_open("\\\kinkos\\kinkos");
> >printer_start_doc($handle, "Project Status");
> >printer_start_page($handle);
> >printer_write($handle, "any text");
> >printer_end_page($handle);
> >printer_end_doc($handle);
> >printer_close($handle);
>
> i'm unable to reproduce this locally, i'll try to figure that out in a
> network later.
> which OS is the server/client running.
> btw: don't use printer_write. it's for sending raw printer data, you'll
> have to do something like
>
> $handle = printer_open();
> printer_set_option($handle, PRINTER_MODE, "TEXT");
> printer_write($handle, "Text to print");
> printer_close($handle);
>
> better see http://php.net/manual/en/function.printer-draw-text.php
>
> daniel
>
> p.s.: you can also contact me privately
>
> >"Rob Cox" <[EMAIL PROTECTED]> wrote in message
> >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I will give it a try. Thanks.
> > >
> > > "Daniel Beulshausen" <[EMAIL PROTECTED]> wrote in message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > At 14:20 24.08.2001 -0400, Rob Cox wrote:
> > > > >I've made sure that the printer is available to IUSR_ALPHA (my
server).
> > > The
> > > > >printer is actually open to everyone but I made sure that
IUSR_ALPHA
> >was
> > > > >specified too. Nothing. Still get the same error.
> > > >
> > > > please try http://www.php4win.com/~daniel/php-4.0.7rc1-win32.zip
> > > > there have been some fixes to the extension since 4.0.6.
> > > > if that still doesn't work please provide some reproducing code.
> > > > sounds like printer_start_doc() is failing (permission problem, no
> >device
> > > > context created/failed,...).
> > > >
> > > > daniel
> > > >
> > > >
> > > >
> > > > >"Erik H. Mathy" <[EMAIL PROTECTED]> wrote in message
> > > > >005101c12cc2$fb03c390$1300020a@erik_laptop">news:005101c12cc2$fb03c390$1300020a@erik_laptop...
> > > > > > > Yes I believe that I a m running under the IUSR_ComputerName
> > > account.
> > > > >I'll
> > > > > > > have to verify permissions.
> > > > > >
> > > > > > Do that. If it's a printer being shared over the network, it's
> >subject
> > > to
> > > > > > either the domain permissions or the permissions specific to the
box
> > > doing
> > > > > > the sharing (or both, actually). Wow. That was a long-ass runon
> > > sentence!
> > > > > >
> > > > > > > I've just noticed that the handle that is being returned is
> >showing
> > > as
> > > > > > > 'Resource id #1'.  I have no idea about that but it makes
sense
> >that
> > > if
> > > > >I
> > > > > > > don't have a proper handle, I won't be able to create a doc.
> > > > > >
> > > > > > That's because you're running PHP4. It ID's things like
connections,
> > > > > > etc...as Resource #(whathaveyou). It's an interesting way to
keep
> > > track of
> > > > > > how many major resources you have in a script. ;)
> > > > > >
> > > > > > > I would like to thank you Erik. You pushed me in the right
> > > > > > > direction to get to here.
> > > > > >
> > > > > > Bah, piffle, tain't no thing. It's nothing you wouldn't have
come up
> > > with,
> > > > > > I'm sure. Besides...it's good karma. You get some, you pass it
on!
> > > > > >
> > > > > > - Erik
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >--
> > > > >PHP Windows Mailing List (http://www.php.net/)
> > > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >To contact the list administrators, e-mail:
> >[EMAIL PROTECTED]
> > > >
> > > >
> > > > /*--
> > > > daniel beulshausen - [EMAIL PROTECTED]
> > > > using php on windows? http://www.php4win.de
> > > >
> > >
> > >
> >
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> /*--
> daniel beulshausen
> [EMAIL PROTECTED] - [EMAIL PROTECTED]
> using php on windows? http://www.php4win.com
>




Reply via email to