php-windows Digest 15 Jun 2002 01:54:10 -0000 Issue 1192

Topics (messages 14217 through 14224):

Re: Server not seeing PHP (Win32)
        14217 by: Robin Bouwhuis

header and footer in php
        14218 by: Alvin Tan
        14219 by: Scott

Re: COM Problem
        14220 by: Scott Carr

'CC' and 'BCC' in mail function
        14221 by: Sridhar Moparthy

Re: [PHP] 'CC' and 'BCC' in mail function
        14222 by: Stuart Dallas

variable access
        14223 by: Si Ming

Programmer Job Posting: Work From Home
        14224 by: Demi Vitalis

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 ---
I have not tried to get this to run on a 98 system.  but I found that the
install.txt file was not that helpful and I found more information about the
install here.

http://www.php.net/manual/en/faq.installation.php

I am doing the same thing as you I develop off line on a XP machine running
IIS and the server is Apache and Linux.  I had a difficult time trying to
get the PHP4 installed and found some answers here that were not in the
install.txt file.

When I was getting my server 500 errors there were two things wrong.

1.  I was not pointing to the correct directory of installation in the
php.ini file.
        - try going to a dos prompt and go to the directory that you
installed PHP to then type this
            php.exe -I
if you get a whole bunch of html codes, then PHP is installed correctly...

2.  I did not have a aspi filter set in the IIS menu.  I followed the
instructions on the link above it worked great...

Please let me know if there is anything else that I can help you with...

Robin





> Thanks Robin.
> I am aware of that.
> But why should I upgrade to WINNT?
> I would prefer to use a Linux box, but unfortunately a lot of my programs
don't
> run on that.
> And what I need to do is to test developed sites offline.
>
> Ciau
> Jacques
>
> Robin Bouwhuis wrote:
>
> > this is from the documentation included with the PHP4 installation zip
file.
> >
> > ' In particular, with the ISAPI module, you are likely to encounter
serious
> >  reliability problems especially on platforms older than W2K - you may
> >  witness a lot of server 500 errors and suffer from other server modules
> >  such as ASP also failing. You have been warned!'
> >
> > Robin
> >
> > ----- Original Message -----
> > From: "Jacques Steyn" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Thursday, June 13, 2002 1:52 PM
> > Subject: [PHP-WIN] Server not seeing PHP (Win32)
> >
> > > Hi
> > > What could be the problem when a server does not seem to pick up PHP?
> > > This is for Win32 (=Win98), set up on a local box.
> > >
> > > I have read the PHP manual, I have looked at discussions, I have tried
> > > both Apache and MS PWS, I have tried different PHP4 versions, I have
> > > made all the required changes to php.ini, I have searched several PHP
> > > web sites, I have installed with a nifty tool I found at
> > > http://php.weblogs.com/easywindows, I bought a couple of books
(Welling
> > > and Thomson, Schwendiman, Greenspan and Bulger) and followed their
> > > advice...
> > > but there still is a problem.
> > >
> > > The servers (Apache and MS PWS) run fine as they serve HTML documents
> > > properly. They do not parse the embedded PHP code.
> > > And with *.php files this happens:
> > > Before installing with the mentioned tool, the error message
complained
> > > about not being able to access PHP due to CGI problem.
> > > After using the tool, I get an HTTP 500 error message when trying to
> > > read *.php files.
> > >
> > > I want to sit in a corner an eat a worm....
> > > Please help.
> > > Thanks
> > >
> > > Jacques
> > > ___________________
> > > Dr Jacques Steyn
> > >
> > > +27 (0)11 478-1259
> > > http://www.knowsystems.com
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
>
> --
> ___________________
> Dr Jacques Steyn
>
> +27 (0)11 478-1259
> http://www.knowsystems.com
>
>
>

--- End Message ---
--- Begin Message ---
how do i insert/add header and footer html/php? i mean
inserting a different file (i.e. header.html).

Alvin  Tan 

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--- End Message ---
--- Begin Message ---
<?php

include ('header.php');

?>



On Fri, 14 Jun 2002, Alvin Tan wrote:

> how do i insert/add header and footer html/php? i mean
> inserting a different file (i.e. header.html).
> 
> Alvin  Tan 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> 

-- 
-------------------------------------
Now Playing:  Simple Minds - All The Things She Said
              Server Uptime:  189 days

www.scottah.com


--- End Message ---
--- Begin Message ---
Fixed...  Found that the COM object had a form it used for some proecessing and
it did not Unload the form before exiting.
-- 
Scott Carr
OpenOffice.org
Whiteboard-Doc Maintainer
http://whiteboard.openoffice.org/doc/


Quoting Scott Carr <[EMAIL PROTECTED]>:

> I have a VB ActiveX DLL that I am trying to call from PHP.  Everything
> works
> fine in the DLL except when I set the variable to null.  The script just
> sits
> there forever until I kill it.
> 
> The final code is:
> 
> $buildgen->Release();
> $buildgen = NULL;
> 
> The release works fine.  It is just the NULL that stops it, or if I let the
> function fall through without setting the var to null.  (I guess the
> garbage
> routine would try to set it to Null)
> 
> Any ideas?
> 
> Thanks.
> -- 
> Scott Carr
> OpenOffice.org
> Whiteboard-Doc Maintainer
> http://whiteboard.openoffice.org/doc/
> 
> 
> 
> 
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> 
> -- 
> 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 ---
Hi All,

Does any one know how to make mail() function to send mail to 'CC' and 'BCC'
address. I have tried to keep 'CC' and BCC' in header, but it is not
working. Mail function is sending the message to 'To' address but not to
'CC' and 'BCC'.

I am using WinNT, IIS and PHP 4.0.6.

Here is the part of my code.

$to = $HTTP_POST_VARS["to_address"];
$from = $HTTP_POST_VARS["from_address"];
$cc = $HTTP_POST_VARS["cc_address"];
$bcc = $HTTP_POST_VARS["bcc_address"];
$subject = $HTTP_POST_VARS["subject"];
$message = $HTTP_POST_VARS["message"];
$header .= "From: [EMAIL PROTECTED]\r\n";

if ($cc <> "" )
{
        $header .= "Cc: ".$cc."\r\n";
}

if      ($bcc <> "")
{
        $header .= "Bcc: ".$bcc."\r\n";
}

if ($to <>"")
{
        if (mail($to,$subject,$message,$header))
        {
                // Do some thing
        }
        else
        {
                // Do some thing else
        }
}


-----Original Message-----
From: Devin Atencio [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 5:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Chat Program?



Dear PHP Users,

I have a client who currently has a website setup with iChat which
is several years old and we are currently having problems with it. I need
to find a PHP Chat program that will be very easy and simple. I just
wanted to see if anyone here has used a program and really likes
it and can recomment it ?

Devin Atencio

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
On Friday, June 14, 2002 at 10:01:24 PM, Sridhar Moparthy wrote:
> Does any one know how to make mail() function to send mail to 'CC' and 'BCC'
> address. I have tried to keep 'CC' and BCC' in header, but it is not
> working. Mail function is sending the message to 'To' address but not to
> 'CC' and 'BCC'.
<snip
>         if (mail($to,$subject,$message,$header))
<snip>

The mail function sends the message to the addresses in the first parameter, so
you need to specify all the users you want the message to go to in $to.

PS. I (and I'm sure there are others) would prefer it if you could create a new
thread for a new topic. It makes things a lot easier to follow.

-- 
Stuart

--- End Message ---
--- Begin Message ---
I have register_globals = off and whenever I try to access a variable I MUST
use $_SERVER["var"], $_POST["var"], etc...  Is there a way to just simply
access the variable as $var instead?  I don't want to turn on
register_globals but I like to have short variable names...  Someone has
told me that I can simply do a: $newvar = $_POST["var"];  I have tried that
and it doesn't work.  Is it my configuration or is it simply because I have
register_globals set to off?  Whenever I create variables, I have to refer
to them using $_SERVER["var"], is that necessary?  Please Help.

Sim


--- End Message ---
--- Begin Message ---
Intravative Software Corporation, located in Santa Monica 
California, is seeking qualified individuals to assist in the 
technical documentation for a new software product that 
will enter the marketplace in the coming months. We are 
looking for dedicated individuals with the same passion 
and energy necessary to launch proprietary new software 
in exchange for stock options in this venture.

You can view the online job posting at the following URL:
http://www.intravative.com/pdf/Programmers.pdf
--- End Message ---

Reply via email to