php-windows Digest 24 Oct 2002 14:14:04 -0000 Issue 1404

Topics (messages 16518 through 16525):

Re: Oracle IAS version of Apache (1.3.12) & php_oci8.dll
        16518 by: Philippe Saladin

Re: Print data
        16519 by: Brian McGarvie
        16522 by: J Wynia

Re: Mixing include path styles. How do I do this???
        16520 by: Brian McGarvie

Re: Speed
        16521 by: Svensson, B.A.T. (HKG)

COM gurus... please help
        16523 by: Asendorf, John
        16524 by: Scott Carr
        16525 by: Asendorf, John

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 ---
- is your "oracle client" installed on your server ?

- you may have a look to extension_dir in your php.ini.
By default, I think it is something like
extension_dir = ./
You would try to set the value to the directory where your php_oci8.dll is,
something like :
extension_dir=C:\php\extensions\

Regards,
Philippe


--- End Message ---
--- Begin Message ---
an alternative I'm looking into is simply writing/formatting the data into a
text file, then using the good old 'net print' dos command to print the
file...

"José Moreira" <[EMAIL PROTECTED]> wrote in message
news:1035381924.1052.8.camel@;inf4.pt...
> hello, at my company we have several network printers and i was was
> wondering if it's possible to print directly to them using PHP, instead
> of showing on the screen or both ...
> to gain more control on what is printed, because of the nasty browsers
> header and footer ... whom i now how to remove ...
>
> i know that the printer IP is  192.192.1.100 and the port is 9005 ...
>


--- End Message ---
--- Begin Message ---
José Moreira wrote:
hello, at my company we have several network printers and i was was
wondering if it's possible to print directly to them using PHP, instead
of showing on the screen or both ...
to gain more control on what is printed, because of the nasty browsers
header and footer ... whom i now how to remove ...

i know that the printer IP is  192.192.1.100 and the port is 9005 ...

If you're willing to do a bit of work, you can do a workable solution. I'm assuming that PHP is running on a Windows server.

You can use the Windows printer functions if the printer was connected directly. If not, you can still get it to work. The Windows Scripting Host resources give you a few ways. A kludgy way would be to configure IE on the printer machine (since it's almost surely installed) to not show the header and footers. You can use the WSH functions to open a non-visible IE instance and issue the print command from there. WSH also has functions in it's COM objects for mapping network printers, etc so you could customize your own server's IE config and print to a mapped printer. Lots of ways to skin this cat, but they're all messy.

--- End Message ---
--- Begin Message ---
if your including plain HTML with no php in it then it's quicker to use
readfile()...

"Roderick Martin" <[EMAIL PROTECTED]> wrote in message
news:45763EEA-E6A8-11D6-A0B1-0030653D8C1C@;network23.com...
> My bad! Windows is definitely not a strong suit with me. I did not know
> I could do the drive paths with the reverse slashes. I tried it and it
> worked flawlessly! Thank you!!!
>
> All I have to do now is add the drive path up to the web directory to
> the replace.
>
> Thanks again! Easier than I could have hoped for.
>
> Rod
>
> On Wednesday, October 23, 2002, at 10:13  AM, Rich Gray wrote:
>
> > Roderick
> >
> > Have you tried just changing '/acc/includes/headstart.htm' to
> > 'c:/acc/includes/headstart.htm'? i.e. leaving the unix style slashes in
> > place...
> >
> > There is a nasty bug in the latest versions of PHP on Win32 affecting
> > the
> > include statement with absolute paths.
> > The above is a workaround solution - once the bug is fixed you should
> > be
> > able to remove the 'c:' stuff.
> >
> > HIW!
> > Rich
> > -----Original Message-----
> > From: Roderick Martin [mailto:maillist@;network23.com]
> > Sent: 23 October 2002 15:43
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Mixing include path styles. How do I do this???
> >
> >
> > We recently switched from Netscape Enterprise to IIS and I now need to
> > make a lot of changes to over 600 htmls - mostly in include statements.
> > We're doing two things here, switching servers and switching all our
> > SSI's to PHP includes.
> >
> > Under Enterprise, I could define a path just by putting it into the
> > include from the root, ie:
> >
> > <!--#include virtual="/acc/includes/headstart.htm"-->
> >
> > I used a global Find and Replace app to change all these (each html has
> > about eight includes) to:
> >
> > <? include '/acc/includes/headstart.htm'; ?>
> >
> > and now they don't work. If I replace the whole path with a Windows
> > path structure (C:\...) to the included file, it does work.
> >
> > Here's the problem as I see it. I can easily do another Find and
> > Replace to add in the first part of the directory tree to the web
> > directory. What I cannot easily do is change the "/" to "\" inside the
> > path for the part of the path that's already there.
> >
> > Is there some way to define the path to the web directory using "\",
> > maybe in a variable and then somehow/way switch over to "/" so I don't
> > have to mess with the paths I already have?
> >
> > Or maybe there's a solution I'm not even aware of. Thank you.
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>


--- End Message ---
--- Begin Message ---
You might wont to have a look at sparse system and
see if it possible in your case to use them.

See: http://www.ulib.org/webRoot/Books/Numerical_Recipes/bookcpdf/c2-7.pdf

This gives a brief theoretical overview of the possibilities.


> -----Original Message-----
> From: Mihail Bota [mailto:mbota@;almaak.usc.edu]
> Sent: Wednesday, October 23, 2002 9:25 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Speed
> 
> 
> Dear all,
> 
> I have a piece of code which posts a matrix which can be from 1X1
> dimension to...the sky is the limit (can be 500X500). In this piece of
> code I have 2 while loops, nested, which I cannot get rid of..
> I'd like to ask you for any suggestions to optimize the posting of the
> matrix..I already put in action zend optimizer, ---with mm option...
> Where/what should I tweak more, in order to make the whole thing faster. I
> am running the system on Win 2k, therefore I cannot use Zend accelerator.
> 
> Thanks.
> 
> Mihai
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
Hello all,

PHP 4.2.3, NT4, IIS4

I finally have a practical application to use COM and I'm trying to port
some ASP scripting.  I'm getting an error (Warning: Invoke() failed:
Exception occurred. Source: Unavailable Description: Unavailable in
D:\spoof\gis\file.php on line 66 and then the timeout error).  The second
uncommented line is line 66 ($objMapSvr = ...).  If someone knows the ASP
code, it's commented above the PHP lines.  Any help would be appreciated.
The ASP file runs fine.  I have a feeling once I get past this hump... the
rest should run smoothly.  Thanks,  John

//Set objMapSvrMngr = Server.CreateObject("GMWebMap.MapServerManager")
$objMapSvrMngr = new COM("GMWebMap.MapServerManager") or die("Couldn't
create COM");

//set objMapSvr = objMapSvrMngr.MapServer("")
$objMapSvr = $objMapSvrMngr->MapServer("");
  

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
--- End Message ---
--- Begin Message ---
What are you trying to use?  MapServer, what is that.  If you are trying to do
web mappin, I suggest you look at the MapServer project from University Of M...
at http://mapserver.gis.umn.edu/.  It is a very good mapping system that uses
ESRI Shp files as well as several others.  

It also has a direct PHP interface for it as well.
-- 
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/


Quoting "Asendorf, John" <[EMAIL PROTECTED]>:

> Hello all,
> 
> PHP 4.2.3, NT4, IIS4
> 
> I finally have a practical application to use COM and I'm trying to port
> some ASP scripting.  I'm getting an error (Warning: Invoke() failed:
> Exception occurred. Source: Unavailable Description: Unavailable in
> D:\spoof\gis\file.php on line 66 and then the timeout error).  The second
> uncommented line is line 66 ($objMapSvr = ...).  If someone knows the ASP
> code, it's commented above the PHP lines.  Any help would be appreciated.
> The ASP file runs fine.  I have a feeling once I get past this hump... the
> rest should run smoothly.  Thanks,  John
> 
> //Set objMapSvrMngr = Server.CreateObject("GMWebMap.MapServerManager")
> $objMapSvrMngr = new COM("GMWebMap.MapServerManager") or die("Couldn't
> create COM");
> 
> //set objMapSvr = objMapSvrMngr.MapServer("")
> $objMapSvr = $objMapSvrMngr->MapServer("");
>   
> 
> ---------------------
> John Asendorf - [EMAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Nullum magnum ingenium sine mixtura dementiae fuit
> 
> -- 
> 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 ---
I'm trying to work with Intergraph's Geomedia WepMap Server...  I'll check
that out.  

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit


> -----Original Message-----
> From: Scott Carr [mailto:scarr@;progbits.com]
> Sent: Thursday, October 24, 2002 10:08 AM
> To: Asendorf,John
> Cc: PHP Windows
> Subject: Re: [PHP-WIN] COM gurus... please help
> 
> 
> What are you trying to use?  MapServer, what is that.  If you 
> are trying to do
> web mappin, I suggest you look at the MapServer project from 
> University Of M...
> at http://mapserver.gis.umn.edu/.  It is a very good mapping 
> system that uses
> ESRI Shp files as well as several others.  
> 
> It also has a direct PHP interface for it as well.
> -- 
> Scott Carr
> OpenOffice.org
> Documentation Maintainer
> http://documentation.openoffice.org/
> 
> 
> Quoting "Asendorf, John" <[EMAIL PROTECTED]>:
> 
> > Hello all,
> > 
> > PHP 4.2.3, NT4, IIS4
> > 
> > I finally have a practical application to use COM and I'm 
> trying to port
> > some ASP scripting.  I'm getting an error (Warning: Invoke() failed:
> > Exception occurred. Source: Unavailable Description: Unavailable in
> > D:\spoof\gis\file.php on line 66 and then the timeout 
> error).  The second
> > uncommented line is line 66 ($objMapSvr = ...).  If someone 
> knows the ASP
> > code, it's commented above the PHP lines.  Any help would 
> be appreciated.
> > The ASP file runs fine.  I have a feeling once I get past 
> this hump... the
> > rest should run smoothly.  Thanks,  John
> > 
> > //Set objMapSvrMngr = 
> Server.CreateObject("GMWebMap.MapServerManager")
> > $objMapSvrMngr = new COM("GMWebMap.MapServerManager") or 
> die("Couldn't
> > create COM");
> > 
> > //set objMapSvr = objMapSvrMngr.MapServer("")
> > $objMapSvr = $objMapSvrMngr->MapServer("");
> >   
> > 
> > ---------------------
> > John Asendorf - [EMAIL PROTECTED]
> > Web Applications Developer
> > http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> > Licking County, Ohio, USA
> > 740-349-3631
> > Nullum magnum ingenium sine mixtura dementiae fuit
> > 
> > -- 
> > 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 ---

Reply via email to