php-windows Digest 23 Jan 2004 06:05:52 -0000 Issue 2093

Topics (messages 22641 through 22649):

Re: Open Port limits on XP
        22641 by: Anthony
        22642 by: Stuart

Re: Show the Progress of a file being uploaded
        22643 by: Anthony

Re: php.ini & smtp (php 4.3.4)
        22644 by: Anthony

Upload to a diferent site
        22645 by: Manuel Couto
        22646 by: Anthony

OT -- Please point me in the direction of a good Apache2 SSL win32 how to.
        22647 by: Anthony

Re: Running multiple versions of php on IIS
        22648 by: Shrock, Court

fastcgi again on 4.3.X
        22649 by: Rich Stupek

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 ---
Dunno about 64, but XP has a limit of 10 connections over a network to any
port.  This was MS's way to stop people from using it as a server.  I guess
you could listen on as many ports as you want, but only be able to respond
to requests on 10 at a time. (pretty sure it's 10, could be wrong though)

- Anthony

"Chuck Lindsay" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> I have an application in which I need to monitor 1000+ ports, connect
> briefly and then re-monitor.  There seems to be a limit of 64 imposed
either
> by XP or PHP and haven't been able to find anything that talks to this
kind
> of problem.
>
> If you have any suggestions or information that might be useful, I would
> appreciate your help.

--- End Message ---
--- Begin Message --- Anthony wrote:
Dunno about 64, but XP has a limit of 10 connections over a network to any
port.  This was MS's way to stop people from using it as a server.  I guess
you could listen on as many ports as you want, but only be able to respond
to requests on 10 at a time. (pretty sure it's 10, could be wrong though)

Yup, 10: http://support.microsoft.com/?kbid=314882


--
Stuart

--- End Message ---
--- Begin Message ---
Like others have said, not with just PHP.  What I do is have an animated GIF
show some dots light up and say uploading, and I make sure the browsers
status bar is visable.  The actual % completed is the job of the browser's
status bar to show.  Obviosly some browsers do this better than others.  You
know what though, you might be able to access this with some Javascript and
do it all on the client side, tell you the truth, I've never tried.

- Anthony

"Arijit Chaudhuri" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> Is there any way to show the progress on a file upload with PHP? I could
not
> find a way to access the file being uploaded till upload is complete when
> the usual copy function is used. There are some file management sites
which
> show a percentage completed similar to the Flash downloads. But none of
the
> ones I found are php coded.
>
> Regards,
> Arijit

--- End Message ---
--- Begin Message ---
If you run PHP as a module, you need to restart you web server service for
any changes to PHP.ini to take effect.

- Anthony


"Igor Pustylnick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm trying to change values in php.ini corresponding to SMTP and
> sendmail_to. whatever I change these values to doesn't seen to reflect in
> phpinfo() and other programs.
> Is it a bug or I need to look at something else as well?
> Regards,
> Igor

--- End Message ---
--- Begin Message ---
does any one know if is possible to upload an image to a diferent site from
the one where the PHP script is running?

something like this:

Im running this script from "site1"

$users_file="image1.jpg";
$copy_path="www.site2.com/images";

if(!copy($users_file, $copy_path)) {
   echo "<font face=\"Arial\">A imagem não foi publicada!</font>";
  }

Is this operation possible in PHP?
Could anyone help me please?

Tanks in advance
Manuel

--- End Message ---
--- Begin Message ---
Yup, from the PHP docs: "Note: As of PHP 4.3.0, both source and dest may be
URLs if the "fopen wrappers" have been enabled. See fopen() for more
details. If dest is an URL, the copy operation may fail if the wrapper does
not support overwriting of existing files. "

You'll need to ensure you can access the remote server with the correct
permisions though.

- Anthony


"Manuel Couto" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> does any one know if is possible to upload an image to a diferent site
from
> the one where the PHP script is running?
>
> something like this:
>
> Im running this script from "site1"
>
> $users_file="image1.jpg";
> $copy_path="www.site2.com/images";
>
> if(!copy($users_file, $copy_path)) {
>    echo "<font face=\"Arial\">A imagem não foi publicada!</font>";
>   }
>
> Is this operation possible in PHP?
> Could anyone help me please?
>
> Tanks in advance
> Manuel

--- End Message ---
--- Begin Message ---
I've found may versions of the document found here
http://raibledesigns.com/tomcat/ssl-howto.html and so far that seems to be
mostly what I'm looking for, with one exception.  I can't seem to find
anything on modsss.org about Apache2.  The link to modssl.org that is shown
http://www.modssl.org/contrib/ lists a bunch of sources, but again, none for
Apache2.  So where do I look?  I've spent a few hours looking so far.  The
only thing I can find is a few documents on compiling the whole thing from
scratch.  Is that the only way to do it?  The binarys I need to get this
working have got to be out there someplace.  I can't imagine that lots of
people don't try to do this on Winblows.

Thanks for your help... and sorry for the off topic.

BTW, this one seems to bee a good one for compiling the whole thing -->
http://www.devside.net/web/server/win32/apache-ssl-zlib  never done that
before though, so I'm a little weary about it.
- Anthony

--- End Message ---
--- Begin Message ---
> -----Original Message-----
> We have a new piece of software to roll out in the next week. 
>  The software is built on PHP 4.3.4, but the webservers that 
> we intend to use are also running other websites which are 
> only tested on PHP 4.0.4 or 4.1.2 or something.  Obviously 
> ideally, we would like to upgrade the webservers to 4.3.4 but 
> we can't afford to risk breaking the other sites.  I figured 
> we would be able to install a second copy of PHP and use that 
> for the latest site.  However, I want it using its own 
> php.ini and IIS doesn't seem to like me passing in the path 
> to the php.ini using the -c option.  Has anyone managed to 
> solve this problem, or do I have to share a common php.ini 
> between the different versions of php?


Below is the text I wrote in a previous email that might help:

First and foremost, the installation instructions are the way they are
because of simplicity sake, there are really 2 ways to setup PHP that differ
considerably.  It has been a while since I tried PHP on windows in ISAPI
mode, so what I telling you will *not* work if you want to run the ISAPI
PHP.
 
First off, ditch all the comments about where to put php.ini and all the
dll's -- they are only when trying to get PHP to work as ISAPI module.
 
After a fresh uncompression of a php distro (I usually pick a drive, like f:
or g:), and move the new directory to the drive I chose.  Then I rename the
dir so that the php directory is something like f:\php432 or g:\php434.  If
this is a fresh install, I also create a dir like f:\php or g:\php -- this
will hold all version neutral php files, like
sessiondata/uploadtemp/includes--in fact, create those subdirectories now
and make note of the path (ie, f:\php\sessiondata or g:\php\uploadtemp).
 
Now, inside your f:\php434 dir, copy all files in f:\php434\dlls\ to
f:\php434\.  Now copy the php.ini-recommended to php.ini.  Next we edit the
php.ini.  When you edit the php.ini, try to distinguish between version
specific and version neutral settings--ie, when you set the upload temp
directory, use f:/php/uploadtemp instead of f:/php434/uploadtemp etc...
likewise for the session directory.  the extension directory will need to
change from ./ to f:/php434/extensions (it was setup from the zip
archive--you downloaded the zip archive, right?).
 
If you are using MSSQL, then you also need to set the text size from the
default of 4096 to the max value allowed -- this prevents unexpected
truncation of data when fetching data from mssql.
 
Don't forget to set the include_path to f:/php/includes as well as your SMTP
server and email address.
 
Next, I decide which extensions to enable--usually
openssl/pdf/mhash/domxml/xslt/mssql/curl/gd2 are a must.  Save the file.
Now it is time to setup IIS.

You will need to right-click the server name in internet services manager
and select properties, then edit the WWW Service master properties; go to
the Home Directory tab, click configuration, then add an entry that points
the .php extension to f:\php434\php.exe.

When you point IIS to php.exe, your are using PHP as a CGI.  When you point
IIS to php4isapi.dll, you are using PHP as an ISAPI module.  That's all
there is to it really.  When running PHP as an ISAPI module, the code
actually becomes part of the IIS process and therefore needs to know where
to find the other PHP files, thus the c:\windows\php.ini location and "copy
the extension dll's to c:\windows\system32" instructions which are bunk --
just add the PHP dirs to your environment path (f:\php434\dlls and
f:\php434\extensions) if you want to run PHP as an ISAPI module.

That about does it--shoot me an email if you have any questions or need
clarification (this email was a bit hasty).

--- End Message ---
--- Begin Message ---
Well still looking for the answer to how to run PHP 4.3.X as a standalone in
a server farm.  Anyone out there have the answer?

--- End Message ---

Reply via email to