php-windows Digest 27 Jan 2004 10:23:49 -0000 Issue 2097
Topics (messages 22657 through 22662):
Apache and IIS together?
22657 by: PETCOL
22658 by: PETCOL
Re: fastcgi on windows standalone
22659 by: John Lim
Re: Upload to a diferent site
22660 by: Manuel Couto
Seeking help on setting up Virtual hosting using Apache 2.0/Win32/ with a single IP
22661 by: Jim MacDiarmid
hello
22662 by: jrun-talk.houseoffusion.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 ---
Hi,
I have PHP working fine on my localmachine under IIS.
I've just installed Apache2, on port 8080, it's publishing HTML fine at
http://localhost:8080 but if I create a PHP file and try and output
something like:
<?php
phpinfo();
?>
I get a blank page, I've only installed the .msi version of Apache, and I
had already installed PHP, did I need to do something else, chance the
configuration files to point to PHP?
Regards
Col
--- End Message ---
--- Begin Message ---
I already found the answer; just had to read a bit ;-)
In the
httpd.conf file I had to add the following lines:
# To allow PHP to run under Apache2
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
Thanks
Col
"Petcol" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have PHP working fine on my localmachine under IIS.
>
> I've just installed Apache2, on port 8080, it's publishing HTML fine at
> http://localhost:8080 but if I create a PHP file and try and output
> something like:
>
> <?php
> phpinfo();
> ?>
>
> I get a blank page, I've only installed the .msi version of Apache, and I
> had already installed PHP, did I need to do something else, chance the
> configuration files to point to PHP?
>
> Regards
> Col
--- End Message ---
--- Begin Message ---
Hi, for PHP 4.3.x info with FastCGI, have a look at
http://php.weblogs.com/fastcgi_with_php_and_iis
PS: Shane's instructions work with 4.3.x also, if you read carefully.
"Richard Stupek" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Unfortunately that only applies for PHP 4.2 and not 4.3.X which contains
> support for FastCGI but does not document how to run it standalone.
>
> Rich Stupek
>
> The Internet is here! Where are you?
> "Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Take a look at http://caraveo.com/fastcgi/
> >
> > - Frank
> >
> > > I see that the -b option in PHP 4.3.X doesn't appear to work. What is
> > the
> > > way to start PHP as a standalone application listening for fastcgi on
a
> > > specific port? Any help would be greatly appreciated.
> > >
> > > Thanks
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
--- End Message ---
--- Begin Message ---
Thanks Anthony for your help.
I already checked the php.ini and I have the <allow_url_fopen = On> in the
Fopen wrappers section and all the permitions to the upload folder but still
get the error:
Unable to create 'http://www.site.com/upload/image.jpg': Invalid argument in
...
This PHP script works well if I change the URL to a path in the same site
Have you any idea what causes this?
Thanks in advance
Manuel
"Anthony" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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 ---
Hi Everyone,
Please forgive me.. I know this isn't an Apache mailing list, but I'm
hoping someone can point me in the right direction. I need direction on
setting up Virtual Hosting on a Win2K box with Apache 2.0. I have a
single IP and I need to serve mulitple sites on the same computer. I'm
new at all this. If anyone can suggest a good article or mailing list or
if you would like to talk off-list, please let me know.
Thanks,
Jim
--- End Message ---
--- Begin Message ---
--- End Message ---