php-windows Digest 12 Apr 2004 19:02:02 -0000 Issue 2206
Topics (messages 23418 through 23426):
Re: [POSTGRES] reading blob
23418 by: Svensson, B.A.T. (HKG)
Re: accessing files from mapped drive from another server
23419 by: M.Staiger
23420 by: Williams, Dewey
23421 by: hubo
Re: Need help using "php.exe"
23422 by: speedfreak.chello.be
Win2k3 Slow!?!?
23423 by: Ataxia
Arrays
23424 by: Daniel Anderson
PHP IIS 5 problem
23425 by: DUSTIN RICH
Date Math
23426 by: Ron.Herhuth.tatumpartners.com
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 this the stone age old postgres DBMS or are
we talking about the more recent postgresSQL?
-----Original Message-----
From: Sara Rubis
To: [EMAIL PROTECTED]
Sent: 2004-04-10 20:05
Subject: [PHP-WIN] [POSTGRES] reading blob
Hello,
I need a source function example for extracting a blob field from a
postgres db and viewing it with browser.
Thanks,
Sara Rubis
--- End Message ---
--- Begin Message ---
Meanwhile I got the hint, that the IIS does not accept mounted drive
letters. The path to the other machine (\\server\path1..) must be used
instead. I didn't test it so far.
> Actually it is a security issue, too. You have to be an authetified user
> (and not this anonymous one: IUSR_<machine_name>) to have access to any
> remote directory.
> Just uncheck the option "anonymous login" within you IIS admin for your
php
> script (and enter you username and password when asked).
I don't want the user to enter a login&pw when accessing the files.
Wouldn't it be possible to grant the IUSR_<localhost> access to the
directory on the other machine?
Marc
> "M.Staiger" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
> > Hello NG,
> >
> > I need to access files via PHP from another local server. For
> > security-reasons I need to access them throught their physical path
(e.g.
> > C:\path\file.txt) and not through a virtual path (e.g.
> > http://domain/path/file.txt). Therefore I mounted a drive ("F:") to
access
> > those files (e.g. F:\path\file.txt) however this won't work. For php
this
> > mounted path simply seems not to exist.
> >
> > both servers : win 2k
> > IIS5, PHP 4.3
> >
> > Anyone any hints?
> >
> > Thanks,
> > Marc
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
--- End Message ---
--- Begin Message ---
I have gotten this to work by supplying a full server path, ie
//server-name/path/
Mapped drives do not translate well.
You also have to give the account the server is running under access to the
server.
Dewey Williams
-----Original Message-----
From: M.Staiger [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 5:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] accessing files from mapped drive from another server
Hello NG,
I need to access files via PHP from another local server. For
security-reasons I need to access them throught their physical path (e.g.
C:\path\file.txt) and not through a virtual path (e.g.
http://domain/path/file.txt). Therefore I mounted a drive ("F:") to access
those files (e.g. F:\path\file.txt) however this won't work. For php this
mounted path simply seems not to exist.
both servers : win 2k
IIS5, PHP 4.3
Anyone any hints?
Thanks,
Marc
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
"M.Staiger" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Meanwhile I got the hint, that the IIS does not accept mounted drive
> letters. The path to the other machine (\\server\path1..) must be used
> instead. I didn't test it so far.
Of course IIS does accept mapped drive letters. When you map your drives you
have to check the option "Verbindung bei Anmeldung wiederherstellen"
(Something like "restore the mapping on session start").
Below is a php script which have been tested on a mapped drive (x:):
<?php
// get the size of a file
$filename = "x:\\12.php";
echo readfile($filename);
?>
>
> > Actually it is a security issue, too. You have to be an authetified user
> > (and not this anonymous one: IUSR_<machine_name>) to have access to any
> > remote directory.
> > Just uncheck the option "anonymous login" within you IIS admin for your
> php
> > script (and enter you username and password when asked).
>
> I don't want the user to enter a login&pw when accessing the files.
> Wouldn't it be possible to grant the IUSR_<localhost> access to the
> directory on the other machine?
>
> Marc
>
> > "M.Staiger" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> > news:[EMAIL PROTECTED]
> > > Hello NG,
> > >
> > > I need to access files via PHP from another local server. For
> > > security-reasons I need to access them throught their physical path
> (e.g.
> > > C:\path\file.txt) and not through a virtual path (e.g.
> > > http://domain/path/file.txt). Therefore I mounted a drive ("F:") to
> access
> > > those files (e.g. F:\path\file.txt) however this won't work. For php
> this
> > > mounted path simply seems not to exist.
> > >
> > > both servers : win 2k
> > > IIS5, PHP 4.3
> > >
> > > Anyone any hints?
> > >
> > > Thanks,
> > > Marc
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Eugen wrote on 11/04/04 16:35:
Hi all,
When you parse a file using the command "php.exe -f c:\myfile.php >
c:\myfile.htm" , what command is required to set a variable. Example:
In IE addressbar, when i type(doesn't matter what server i use) :
http://localhost/myfile.php?thevariable=anyvariable, the "myfile.php" file
is now parsed with indicated variable.
But if i launch "php.exe -f c:\myfile.php?thevariable=anyvariable >
c:\myfile.htm" , the output file (c:\myfile.htm) contains one line:
No input file specified.
How can i make it work, without using a webserver ?
Read up on PHP's commandline features in the manual and the user
contributed notes for some valuable time-saving insights:
http://www.php.net/manual/en/features.commandline.php
Cheers
--- End Message ---
--- Begin Message ---
Just installed PHP on a brand new W2k3 Server, and it works flawlessly, but
all the scripts are EXTREMELY slow.
Migrating the site from a Win2000 box, and everything was perfect, so I
don't believe it's the code.
Anyone else run into this?
--
AtaxiA
--- End Message ---
--- Begin Message ---
Hi, can anyone walk me through arrays please.
I am new to PHP and arrays appear to come in many forms and I need help getting arrays
working properly.
Anything will be a great help, thanks,
Dan
--- End Message ---
--- Begin Message ---
I have set up a site using PHP that works fine when using apache. Under
IIS, I get to the initial logon page, but after clicking anything I get the
HTTP 405 - Resource not allowed error. If I go to the site by typing the
URL with the default file name (index.php) attached to the end, then
everything works fine. Is there some sort of redirect problem. I've
followed all the installation instructions and I have other PHP sites on the
same server that are configured the same way but run fine. I'm at a loss???
Thanks for any help you can give!
--- End Message ---
--- Begin Message ---
I am currently working on an application that needs to break out invoice
totals by age. This is a sample line item:
2/7/2004 ... $456.89
Current Total : Over 30 Days : Over 60 Days : Over 90 days
How can I determine the number of days from the current date? I should be
able to handle the rest.
Thanks in advance!
Ron
--- End Message ---