php-windows Digest 13 Feb 2001 11:47:07 -0000 Issue 443

Topics (messages 5534 through 5541):

Re: Do I need the API?
        5534 by: Christopher Derr

Accessing Shares with the dir class
        5535 by: Cameron Just

Re: IIS Manipulation
        5536 by: David Harrison

Re: [PHP] Run a script for 20minutes
        5537 by: Ankur Verma

IMAP COMPILATION
        5538 by: Garry Zaldy Climacosa

PHP support on more then one site on IIS
        5539 by: Glenn Lindgren
        5540 by: Phil Driscoll

sybase-ct under windows
        5541 by: Torsten Curdt

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]


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


The ISAPI version of PHP4 is very fast compared to the CGI version.
Unfortunately, it's about as unstable as it is fast.  Unless you really need
the speed, stick with the CGI version.  Also, the downloads might include more
dlls for use with the CGI version (read the info on the download...pretty
straightforward as I recall).

Chris

Jeremy Sharp wrote:

> Hello.
>
> I have been asked to provide php support for all the websites on my IIS5
> server, but I am not entirely sure what benefits the bigger 3.6meg API
> install will bring me over the smaller CGI install. Do I need it? Should I
> use it?! Any comments much appreciated!
>
> Thanks
> Jeremy
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> --
> 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]





Hi,

Has anyone had any luck accessing windows shares with the dir class?
ie.
$directory = "\\\\nt4server\\wwwroot";

This works in PHP3.0.16 but not in php4?

Anyone know why?

Attached is some test code which will list the contents of a directory on the screen.




Richard,

I didn't test it but I would imagine that as long as your server is
configured correctly, the box (or site) IUSR account wouldn't have the
necessary priveledges to do anything chaotic. I didn't test that, so might
be worth testing.

If for some reason it does work (again I'd be surprised if it did), you
could probably set up something funky like a single site that has a .php
extension bound to a different php.exe that calls a different .ini file (if
this is possible under windows, under linux I'm sure you can just
o  -c<path>       Look for php.ini file in this directory) which has the
settings for the IIS stuff contained in that. This way you've only got one
site (which you can lock down with IP restrictions or whatever) that can
access the DLL.

--dave


----- Original Message -----
From: "Richard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 12:36 AM
Subject: RE: [PHP-WIN] IIS Manipulation


> How are these functions controlled?  Like, if I install this dll, will
> anyone with a site on my server be able to use these functions?  Are there
> any restrictions as to how they can be used?
>
> Thanks,
> Rick
>
> -----Original Message-----
> From: David Harrison [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 11, 2001 1:24 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] IIS Manipulation
>
>
> With the absence of any ADSI interface for PHP (and a COM implementation
> that seems dodgy, at least for me and the others that have tried it), I'd
> sort of given up thinking about using PHP for IIS manipulation and had
> resigned myself to a fate of VBScript for anything I needed to do.
>
> I'd noticed there's a DLL that comes with the latest distribs of PHP
called
> php_iisfunc.dll, which I'd always wondered what it did. Whilst looking at
> the zend.com site today, I found a list of undocumented functions
> (http://www.zend.com/phpfunc/nodoku.php), which makes reference to these
> functions.
>
> Because noone has done it yet (unless I've missed it) I thought I'd just
> spam some quick information about some testing I did with them.
>
> ----------------
>
> string iis_GetScriptMap(string id, string virtualPath, string extension)
>
> Returns IIS script mappings for a site.
>
> eg:
>   echo iis_GetScriptMap(iis_GetServerByComment("srvName"), "", ".asp");
> returns:
>   .asp,F:\WINNT\System32\inetsrv\asp.dll,1,GET,HEAD,POST,TRACE
>
> ----------------
>
> int iis_AddServer(string Path, string Comment, string ServerIP, int
> ServerPort, string HostName, int ServerRights, int StartServer)
>
> Adds a server to the IIS Metabase with the supplied parameters.
>
> eg:
>   iis_AddServer("f:\\", "comment","130.102.1.1", 80,"hostname", 0,1);
>
> Creates a new server with a hostheader name "hostname". Returns the Server
> Instance ID for the created server.
>
> ----------------
>
> int iis_GetServerByComment(string comment);
> int iis_GetServerByPath(string path);
>
> Returns the server instance ID for the server with the comment (ie, the
name
> that appears in MMC). This ID can then be passed to some of the other
> functions (as done below).
>
> eg:
>   iis_GetServerByComment("Default Web Site");
>   iis_GetServerByPath("f:\inetpub\wwwroot");
> Returns:
>   Using 'Default Web Site' as the comment should return 1.
>
>
>
> ----------------
>
> int iis_StopServer(int serverID);
>
> Stops a particular server
>
> eg:
>   iis_StopServer("Default Web Site");
> Returns
>   1 on success, 0 on failure, I _think_ - however, I couldn't get this
> function to work.
>
> I'm not sure of the difference between this one and iis_StopService. I
would
> have thought StopService would stop the whole webservice, but it seems to
> take a serverID parameter. Shrug.
>
> ----------------
>
> int iis_StartServer(int serverID);
>
> Starts a particular server
>
> eg:
>   iis_StartServer("Default Web Site");
> Returns
>   1 on success, 0 on failure, I _think_. That is, the function returned 1
on
> one site that I'd stopped, and successfully restarted it. However, I
> couldn't make it restart the 'Default Web Site', yet it still returned 1.
> Shrug.
>
> ----------------
>
> int iis_RemoveServer(int serverID);
>
> eg:
>   iis_RemoveServer(iis_GetServerByComment("comment"));
> Returns
>   1 on success, -602 on failure (if I made up a fake comment)
>
> ----------------
>
> There are also the following, which return values that I didn't try to
> figure out (laziness), and take a 2nd parameter (referred to in the source
> as string VirtualPath) that I also didn't figure out (also laziness):
>
> iis_getdirsecurity(iis_GetServerByComment("website"), "");
> iis_GetServerRight(iis_GetServerByComment("website"), "");
> iis_GetServiceState(iis_GetServerByComment("website"));
>
> Sorry about the poor documentation, but its better than what is on the PHP
> site :)
>
> I'm not sure how stable/reliable these are. I had a quick look through the
> source but I'm not familiar enough with the metabase functions that are
used
> to know whether or not its done in the most stable way. I know though that
> I've had enough problems with metabase corruption on servers that have
only
> ever been administered through MMC to be wary when trying 3rd party
products
> to do a similar thing.
>
> --dave
>
> --
> 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]
>
>
>
> --
> 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]
>




you can set the maximum execution timeu using either the

max_execution_time = 30     ; Maximum execution time of each script, in
seconds

setting in php.ini

or can set it at runtime for a script using  the set_time_limit() function

check the php manual for more details.

hope that helps

Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India





----- Original Message -----
From: "Martin E. Koss" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 12, 2001 5:20 PM
Subject: [PHP] Run a script for 20minutes


> Hi,
> I have PHP3 and MySQL on Win98 and am trying to run a script that loops
> through a file making process and it needs about 20 - 30 minutes to run.
It
> generates static HTML files based on content in a database. I've increased
> Internet Explorer's timeout to allow for this but for some reason only
about
> half the processing is done before everything seems to just stop.
>
> Does anyone know of a very basic way of executing a PHP script on a Win98
> machine without the need for a browser? Or, another way of running this
> script that will take some time and create some 22,000 files through the
> process.
>
> Thanks,
>
> Martin.
>
>
> --
> PHP General 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]





just want to ask how can i compile IMAP php in windows 98/2000 os?

the manual says that

"To get these functions to work, you have to compile PHP with --with-imap.
That requires the c-client library to be installed. Grab the latest version
from ftp://ftp.cac.washington.edu/imap/ and compile it. Then copy
c-client/c-client.a to /usr/local/lib/libc-client.a or some other directory
on your link path and copy c-client/rfc822.h, mail.h and linkage.h to
/usr/local/include or some other directory in your include path. "

i'm kinda lost here can anyone help me here
thanks in advance

garry zaldy climacosa





Hallo!
I want to have PHP support on more then one site, I 
want to have it on every website on my web server. The 
website have difrent root folder under my D: partition 
and i can only get PHP support off one website. Can 
anybody help me  to config the
php.ini file soo it works

Best regards.
//Glenn

................................................................
   80.000 svenskar har nu gratis e-post på Sverige.nu!

   http://www.sverige.nu




>Hallo!
>I want to have PHP support on more then one site, I
>want to have it on every website on my web server. The
>website have difrent root folder under my D: partition
>and i can only get PHP support off one website. Can
>anybody help me  to config the
>php.ini file soo it works
>

Leave doc_root in your php.ini file empty and configure your web server to
apply the script mappings to all sites. There may be security implications
in doing this, particularly if other people can put php files on the server.
Read the security section of the php manual for more details.

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org





Is anybody out there using php4 with sybase-ct
support under windows?
I need some help... I don't find the sybase
client libraries.
--
Torsten


Reply via email to