php-windows Digest 19 Nov 2001 11:00:14 -0000 Issue 862

Topics (messages 10479 through 10497):

PHP Mail() function. Help please...
        10479 by: Anthony Ritter
        10480 by: Julie Meloni
        10486 by: Anthony Ritter

Authentication Scripts
        10481 by: Todd Williamsen
        10487 by: Ross Fleming
        10491 by: Todd Williamsen

Re: PHPDownload - platform differences?
        10482 by: Todd Williamsen

Re: Secure Web Application
        10483 by: Egil Helland

Re: Back button using sessions
        10484 by: Egil Helland

Re: [PHP] relative paths
        10485 by: Joe Stump

Adding a cc to a PHP mail script...
        10488 by: Anthony Ritter
        10490 by: Daniel Parsons
        10492 by: Anthony Ritter

How to create and run background process at Win2K
        10489 by: Chris Lee

Apache 2.0.28  module
        10493 by: Jobarr

Configuring PHP to use several php.ini under IIS?
        10494 by: Igor Petrov

Calling stored procedure in PHP
        10495 by: wim van houts
        10496 by: Svensson, B.A.T. (HKG)
        10497 by: Paco Ortiz

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'm reading J.Meloni's tutorial on page 119 in "Fast and Easy" and she is
explaining using the PHP mail function.

I'm using MS Windows 98.

There are two scripts for this example...

One is the .html file which lays out the form with input boxes, a textarea
box and a submit button.

It is:

<HTML>
<HEAD>
<TITLE> Simple Feedback Form </TITLE>
</HEAD>
<BODY>
<FORM METHOD="post"  ACTION="send_simpleform.php">
<P> <strong> Your name: </strong> <br>
<INPUT TYPE="text"  NAME="sender_name"  SIZE=30></P>
<P> <strong> Your e-mail address: </strong> <br>
<INPUT TYPE="text"  NAME="sender_email"  SIZE=30></P>
<P> <strong> Your message: </strong> <br>
<TEXTAREA NAME ="message" COLS=30  ROWS=5  WRAP=virtual></TEXTAREA></P>
<P> <INPUT TYPE="submit"  NAME= "submit"  VALUE="Send this form"> </P>
</FORM>
</BODY>
</HTML>
........................................................

The next is the PHP script which reads as follows:

<?
$msg="This e-mail is being sent from www site\n";
$msg.="Sender's name: \t$sender_name\n";
$msg.="Sender's e-mail:\t$sender_email\n";
$msg.="Message:\t$message\n\n";
$to="[EMAIL PROTECTED]";
$subject="Website Feedback";
$mailheaders="From: My website<> \n";
$mailheaders.="Reply to: $sender_email\n\n";
mail($to,$subject,$msg,$mailheaders);
?>
<HTML>
<HEAD>
<TITLE>Simple Feedback Form</TITLE>
</HEAD>
<BODY>
<H1>The following e-mail has been sent:</H1>
<P><strong>Your Name:</strong><br>
<?echo "$sender_name";?>
<P><strong>Your email address:</strong><br>
<?echo "$sender_email";?>
<P><strong>Message:</strong><br>
<? echo "$message"; ?>
</BODY>
</HTML>
..............................................

Everytime I input a name, e-mail, and test blurb for the message box form
and hit submit, I get:

Warning: Failed to connect in C:\Program Files\Apache
Group\Apache\htdocs\send_simpleform.php
in line 10.

I have made the corrections in my php.ini file in the [mail function]
to read as follows:

SMTP=localhost
[EMAIL PROTECTED]

Please advise if anyone knows what I am doing wrong.

Thanking all in advance.
Tony Ritter









--- End Message ---
--- Begin Message ---
Sunday, November 18, 2001, 4:03:37 PM, you wrote:


AR> Warning: Failed to connect in C:\Program Files\Apache
AR> Group\Apache\htdocs\send_simpleform.php
AR> in line 10.

AR> I have made the corrections in my php.ini file in the [mail function]
AR> to read as follows:

AR> SMTP=localhost
AR> [EMAIL PROTECTED]


Please note at the opening of the chapter, the special section for
windows users, explaining how to modify php.ini correctly.  It says
you need an actual SMTP server name, if you're not running a mail
server on localhost.

- Julie

--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com

--- End Message ---
--- Begin Message ---
Thank you Julie.

It works fine now.

Regards,
Tony Ritter


--- End Message ---
--- Begin Message ---
I have been trying to use a script that adds users to the database and this
is what I came up with, which DOES not work for some unknown reason:

I have been having problems with your script, maybe its me, the hosting
provider.. But I need to find out what is what.

I have a DB called feminineforum and I already have a table of users with
all their contact information already in there. It also has their usrnames
and passwords already listed. The table name is tblmembers and here is the
list of the column names:

ID

FirstName

Initial

LastName

Address1

Address2

City State

Zip

HomePhone

WorkPhone

Fax

Email

Userid

Password

Registered

Modified

Modified_By

I modified the table name, DB name and of course the sql statement. I was
just trying to add a user with the following html form:

<html>

<head><title>User Admin Page : Add a User</title></head>

<body bgcolor="#ffffff">

<table bgcolor=#000000 valign=top align=center border=0><tr><td

bgcolor=#000000><table cellpadding=4 bgcolor=#ffffff cellspacing=2 border=0>

<Tr><th>Add a User</th></tr><tr><td>

<FORM METHOD="post" ACTION="add.php">

First Name: <INPUT TYPE=text MAXLENGTH=70 NAME="FirstName" SIZE=20><Br>

Initial: <INPUT TYPE=text MAXLENGTH=70 NAME="Initial" SIZE=20><Br>

Last Name: <INPUT TYPE=text MAXLENGTH=70 NAME="LirstName" SIZE=20><Br>

Address1: <INPUT TYPE=text MAXLENGTH=70 NAME="Address1" SIZE=20><Br>

Address2: <INPUT TYPE=text MAXLENGTH=70 NAME="Address2" SIZE=20><Br>

City: <INPUT TYPE=text MAXLENGTH=70 NAME="City" SIZE=20><Br>

State: <INPUT TYPE=text MAXLENGTH=70 NAME="State" SIZE=20><Br>

Zip Code: <INPUT TYPE=text MAXLENGTH=70 NAME="Zip" SIZE=20><Br>

Home Phone: <INPUT TYPE=text MAXLENGTH=70 NAME="HomePhone" SIZE=20><Br>

Work Phone: <INPUT TYPE=text MAXLENGTH=70 NAME="WorkPhone" SIZE=20><Br>

Fax Number: <INPUT TYPE=text MAXLENGTH=70 NAME="Fax" SIZE=20><Br>

Email Address: <INPUT TYPE=text MAXLENGTH=70 NAME="Email" SIZE=20><Br>

Username: <INPUT TYPE=text MAXLENGTH=70 NAME="UserId" SIZE=20><Br>

Password: <Input Type=text Maxlength=70 Name="Password" Size=10><Br>

Password for modification:<Input Type=password Maxlength=70 Name="password"
Size=20>

<INPUT TYPE=submit VALUE="Add"> <INPUT type=reset VALUE="Reset Form"></form>

</tr></td></table></tr></td></table>

</body>

</html>

>From what I can see the form looks fine... Here is the PHP script for the
add.php:

<?

if($password=="modificationpasswdhere")

{

$ID = uniqid("ID");

$db = mysql_connect("localhost","feminine","krmc33");

mysql_select_db ("feminineforum");

$result = mysql_query ("INSERT INTO tblmembers (ID, FirstName, Initial,
LastName, Address1, Address2, City, State, Zip, HomePhone, WorkPhone, Fax,
Email, UserId, Password)

VALUES ('$ID', '$FirstName', '$Initial', '$LastName', '$Address1',
'$Address2', '$City', '$State', '$Zip', '$HomePhone', '$WorkPhone', '$Fax',
'$Email', '$UserId', '$Password') ");

if(!$result)

{

echo "<b>User not added:</b> ", mysql_error();

exit;

}

if($result)

{

mysql_close($db);

print "User <b>$UserId</b> added sucessfully!";

}

}

else

{

print ("Wrong Password");

}

?>



Now when I go and add a user, I get "Wrong Password" why is it doing that?



--- End Message ---
--- Begin Message ---
Although PHP classes $Password and $password as 2 seperate variables, I'm
pretty sure when you 'post' the data, it passes them ALL as lowercase.

Call them password1 and password2 and keep all the variables lower case and
see if it works

Let me know

Ross

-----Original Message-----
From: Todd Williamsen [mailto:[EMAIL PROTECTED]]
Sent: 18 November 2001 23:19
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Authentication Scripts


I have been trying to use a script that adds users to the database and this
is what I came up with, which DOES not work for some unknown reason:

I have been having problems with your script, maybe its me, the hosting
provider.. But I need to find out what is what.

I have a DB called feminineforum and I already have a table of users with
all their contact information already in there. It also has their usrnames
and passwords already listed. The table name is tblmembers and here is the
list of the column names:

ID

FirstName

Initial

LastName

Address1

Address2

City State

Zip

HomePhone

WorkPhone

Fax

Email

Userid

Password

Registered

Modified

Modified_By

I modified the table name, DB name and of course the sql statement. I was
just trying to add a user with the following html form:

<html>

<head><title>User Admin Page : Add a User</title></head>

<body bgcolor="#ffffff">

<table bgcolor=#000000 valign=top align=center border=0><tr><td

bgcolor=#000000><table cellpadding=4 bgcolor=#ffffff cellspacing=2 border=0>

<Tr><th>Add a User</th></tr><tr><td>

<FORM METHOD="post" ACTION="add.php">

First Name: <INPUT TYPE=text MAXLENGTH=70 NAME="FirstName" SIZE=20><Br>

Initial: <INPUT TYPE=text MAXLENGTH=70 NAME="Initial" SIZE=20><Br>

Last Name: <INPUT TYPE=text MAXLENGTH=70 NAME="LirstName" SIZE=20><Br>

Address1: <INPUT TYPE=text MAXLENGTH=70 NAME="Address1" SIZE=20><Br>

Address2: <INPUT TYPE=text MAXLENGTH=70 NAME="Address2" SIZE=20><Br>

City: <INPUT TYPE=text MAXLENGTH=70 NAME="City" SIZE=20><Br>

State: <INPUT TYPE=text MAXLENGTH=70 NAME="State" SIZE=20><Br>

Zip Code: <INPUT TYPE=text MAXLENGTH=70 NAME="Zip" SIZE=20><Br>

Home Phone: <INPUT TYPE=text MAXLENGTH=70 NAME="HomePhone" SIZE=20><Br>

Work Phone: <INPUT TYPE=text MAXLENGTH=70 NAME="WorkPhone" SIZE=20><Br>

Fax Number: <INPUT TYPE=text MAXLENGTH=70 NAME="Fax" SIZE=20><Br>

Email Address: <INPUT TYPE=text MAXLENGTH=70 NAME="Email" SIZE=20><Br>

Username: <INPUT TYPE=text MAXLENGTH=70 NAME="UserId" SIZE=20><Br>

Password: <Input Type=text Maxlength=70 Name="Password" Size=10><Br>

Password for modification:<Input Type=password Maxlength=70 Name="password"
Size=20>

<INPUT TYPE=submit VALUE="Add"> <INPUT type=reset VALUE="Reset Form"></form>

</tr></td></table></tr></td></table>

</body>

</html>

>From what I can see the form looks fine... Here is the PHP script for the
add.php:

<?

if($password=="modificationpasswdhere")

{

$ID = uniqid("ID");

$db = mysql_connect("localhost","feminine","krmc33");

mysql_select_db ("feminineforum");

$result = mysql_query ("INSERT INTO tblmembers (ID, FirstName, Initial,
LastName, Address1, Address2, City, State, Zip, HomePhone, WorkPhone, Fax,
Email, UserId, Password)

VALUES ('$ID', '$FirstName', '$Initial', '$LastName', '$Address1',
'$Address2', '$City', '$State', '$Zip', '$HomePhone', '$WorkPhone', '$Fax',
'$Email', '$UserId', '$Password') ");

if(!$result)

{

echo "<b>User not added:</b> ", mysql_error();

exit;

}

if($result)

{

mysql_close($db);

print "User <b>$UserId</b> added sucessfully!";

}

}

else

{

print ("Wrong Password");

}

?>



Now when I go and add a user, I get "Wrong Password" why is it doing that?




--
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]



--- End Message ---
--- Begin Message ---
Ross,

Thanks... That was ONE of the problems... the other was the "if" statement
in the beginning of the script


"Ross Fleming" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Although PHP classes $Password and $password as 2 seperate variables, I'm
> pretty sure when you 'post' the data, it passes them ALL as lowercase.
>
> Call them password1 and password2 and keep all the variables lower case
and
> see if it works
>
> Let me know
>
> Ross
>
> -----Original Message-----
> From: Todd Williamsen [mailto:[EMAIL PROTECTED]]
> Sent: 18 November 2001 23:19
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Authentication Scripts
>
>
> I have been trying to use a script that adds users to the database and
this
> is what I came up with, which DOES not work for some unknown reason:
>
> I have been having problems with your script, maybe its me, the hosting
> provider.. But I need to find out what is what.
>
> I have a DB called feminineforum and I already have a table of users with
> all their contact information already in there. It also has their usrnames
> and passwords already listed. The table name is tblmembers and here is the
> list of the column names:
>
> ID
>
> FirstName
>
> Initial
>
> LastName
>
> Address1
>
> Address2
>
> City State
>
> Zip
>
> HomePhone
>
> WorkPhone
>
> Fax
>
> Email
>
> Userid
>
> Password
>
> Registered
>
> Modified
>
> Modified_By
>
> I modified the table name, DB name and of course the sql statement. I was
> just trying to add a user with the following html form:
>
> <html>
>
> <head><title>User Admin Page : Add a User</title></head>
>
> <body bgcolor="#ffffff">
>
> <table bgcolor=#000000 valign=top align=center border=0><tr><td
>
> bgcolor=#000000><table cellpadding=4 bgcolor=#ffffff cellspacing=2
border=0>
>
> <Tr><th>Add a User</th></tr><tr><td>
>
> <FORM METHOD="post" ACTION="add.php">
>
> First Name: <INPUT TYPE=text MAXLENGTH=70 NAME="FirstName" SIZE=20><Br>
>
> Initial: <INPUT TYPE=text MAXLENGTH=70 NAME="Initial" SIZE=20><Br>
>
> Last Name: <INPUT TYPE=text MAXLENGTH=70 NAME="LirstName" SIZE=20><Br>
>
> Address1: <INPUT TYPE=text MAXLENGTH=70 NAME="Address1" SIZE=20><Br>
>
> Address2: <INPUT TYPE=text MAXLENGTH=70 NAME="Address2" SIZE=20><Br>
>
> City: <INPUT TYPE=text MAXLENGTH=70 NAME="City" SIZE=20><Br>
>
> State: <INPUT TYPE=text MAXLENGTH=70 NAME="State" SIZE=20><Br>
>
> Zip Code: <INPUT TYPE=text MAXLENGTH=70 NAME="Zip" SIZE=20><Br>
>
> Home Phone: <INPUT TYPE=text MAXLENGTH=70 NAME="HomePhone" SIZE=20><Br>
>
> Work Phone: <INPUT TYPE=text MAXLENGTH=70 NAME="WorkPhone" SIZE=20><Br>
>
> Fax Number: <INPUT TYPE=text MAXLENGTH=70 NAME="Fax" SIZE=20><Br>
>
> Email Address: <INPUT TYPE=text MAXLENGTH=70 NAME="Email" SIZE=20><Br>
>
> Username: <INPUT TYPE=text MAXLENGTH=70 NAME="UserId" SIZE=20><Br>
>
> Password: <Input Type=text Maxlength=70 Name="Password" Size=10><Br>
>
> Password for modification:<Input Type=password Maxlength=70
Name="password"
> Size=20>
>
> <INPUT TYPE=submit VALUE="Add"> <INPUT type=reset VALUE="Reset
Form"></form>
>
> </tr></td></table></tr></td></table>
>
> </body>
>
> </html>
>
> From what I can see the form looks fine... Here is the PHP script for the
> add.php:
>
> <?
>
> if($password=="modificationpasswdhere")
>
> {
>
> $ID = uniqid("ID");
>
> $db = mysql_connect("localhost","feminine","krmc33");
>
> mysql_select_db ("feminineforum");
>
> $result = mysql_query ("INSERT INTO tblmembers (ID, FirstName, Initial,
> LastName, Address1, Address2, City, State, Zip, HomePhone, WorkPhone, Fax,
> Email, UserId, Password)
>
> VALUES ('$ID', '$FirstName', '$Initial', '$LastName', '$Address1',
> '$Address2', '$City', '$State', '$Zip', '$HomePhone', '$WorkPhone',
'$Fax',
> '$Email', '$UserId', '$Password') ");
>
> if(!$result)
>
> {
>
> echo "<b>User not added:</b> ", mysql_error();
>
> exit;
>
> }
>
> if($result)
>
> {
>
> mysql_close($db);
>
> print "User <b>$UserId</b> added sucessfully!";
>
> }
>
> }
>
> else
>
> {
>
> print ("Wrong Password");
>
> }
>
> ?>
>
>
>
> Now when I go and add a user, I get "Wrong Password" why is it doing that?
>
>
>
>
> --
> 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]
>
>
>


--- End Message ---
--- Begin Message ---
Just run Apache on Win2k... I do
"Emil Chow" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have seen a program called PHPDownload that uses MySQL to store a
download
> database.  Since the script is no longer supported, I just have some
general
> questions, being new to PHP and all.  Are there any real big compatibility
> issues when trying to use it instead on IIS/NT5 when it was meant for
> Apache/Linux?  Is the "Undefined variable: CurrentPage "  characterisitic
of
> running something under a different platform?  If it is a better idea to
use
> a different free script, please recommend one that can store a database of
> stuff to download with descriptions (almost like a mini-download.com).
>
> Thanks.
>
>


--- End Message ---
--- Begin Message ---
On Sun, 18 Nov 2001 11:58:20 -0600, Troy Moreland wrote:
>Can anyone give me details on how to make my PHP-LDAP application
>secure?  I have two unsecure issues:
>
>1)  I can't figure out how to get SSL to work.

What do you mean, getting SSL to work? Its just working if you have a
valid SSL certificate, and you communicate over port 443. All your
URLs need to start with https to indicate that its a secure channel,
eg. https://www.whatever.com.

>2)  I'm using sessions to store ID and password but the passwords
>are in clear text on the server.  I'm running PHP on the W2K
>platform and no one has been able to help me with encrypting on this
>platform.

Well, this is really not a platform problem, but it depends on what
you are storing the passwords in. Is it stored in a textfile, or a
database? MySQL have a very nice password feature which will encrypt
your users password, use the password field type to get them
encrypted. But I need some more info regarding your solution here to
help you out properly I guess...

Cheers,


Egil



-=//

   Egil Helland / IKON AS - MCSE, Internet, Intranet

      mailto:[EMAIL PROTECTED]      http://egil.net

                            //=-




--- End Message ---
--- Begin Message ---
On Sun, 18 Nov 2001 12:01:11 -0600, Troy Moreland wrote:
>Can someone tell me how to get around the following problem:
>
>I am using sessions to store a person's ID and password that they
>authenticate with at the start page.  The entire web site is secured
>this way.  The problem is that hitting the back key often gives the
>"This page has expired, hit Refresh to Reload" kind of message.  How
>can this be avoided?  I've written the same application without
>sessions (unsecure obviously) and I don't get asked for refreshes at
>all.
>
>Thanks, Troy Moreland
>

Hi Troy,

AFAIK, there are two solutions to this problem.

1. Switch from the POST to GET method when you are supplying your
information for your site. This is a problem related to the way POST
messages are handled (its sent as a separate data package in fact) by
the web browser, and with get, this is of course in your URL and thus
also handled by default

2. Edit your php.ini file and set the cache limiter to nothing
(session.cache_limiter=;). This will fix the problem for all your
POST forms, for all web pages. If you only want this done for part of
your website, do it with headers instead, eg:

session_start();
header("Cache-Control: ");
header("pragma: ");


blah blah blah...


Hope this helps! ;)


Cheers,


Egil


-=//

   Egil Helland / IKON AS - MCSE, Internet, Intranet

      mailto:[EMAIL PROTECTED]      http://egil.net

                            //=-




--- End Message ---
--- Begin Message ---
An easy way to fix this common problem is this:

define('BASE_INCLUDE_PATH','/var/www/includes/');

include(BASE_INCLUDE_PATH.'my_include.inc');

Just make sure to include the file with the BASE_INCLUDE_PATH define using a
relative path ... ie.

<?

  include('./init.inc');


?>

--Joe


On Sat, Nov 17, 2001 at 05:15:02PM +0100, Mitja Pagon wrote:
> Hi!
> 
> I want to know if there is a way to include(require) a file using a path
> relative to web server root.
> 
> I'm aware of the fact that you can specify include path, but I believe that
> this is not the best solution, since applications written that way aren't
> easily portable.
> 
> What I'm looking for is something similar to what "/" does in HTML paths and
> SSI include directives.
> 
> Thanks,
> 
> Mitja Pagon
> 
> 
> 
> -- 
> 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]

Joe Stump <[EMAIL PROTECTED]>
------------------------------------------------------------------------
"How would this sentence be different if pi equaled 3?" 

Attachment: msg05535/pgp00000.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---
Is there any way to add an *additional* e-mail address - a cc - besides the
one that is already in the $to variable below using the following PHP
script?

Thanking all in advance.
Tony Ritter
..........................................


<?
$msg="This e-mail is being sent from www site\n";
$msg.="Sender's name: \t$sender_name\n";
$msg.="Sender's e-mail:\t$sender_email\n";
$msg.="Message:\t$message\n\n";
$to="[EMAIL PROTECTED]";
$subject="Website Feedback";
$mailheaders="From: My website<> \n";
$mailheaders.="Reply to: $sender_email\n\n";
mail($to,$subject,$msg,$mailheaders);
?>


--- End Message ---
--- Begin Message ---
If you want to add additional email addresses to the 'To' list, use a
comma seperated list:
e.g. $to = "[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]";

if you want to cc the email then add it to your headers:
e.g. $mailheaders .= "Cc: [EMAIL PROTECTED]\r\n";

HTH,
D.

> -----Original Message-----
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 19 November 2001 2:48 p.m.
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Adding a cc to a PHP mail script...
>
>
> Is there any way to add an *additional* e-mail address - a cc
> - besides the
> one that is already in the $to variable below using the following PHP
> script?
>
> Thanking all in advance.
> Tony Ritter
> ..........................................
>
>
> <?
> $msg="This e-mail is being sent from www site\n";
> $msg.="Sender's name: \t$sender_name\n";
> $msg.="Sender's e-mail:\t$sender_email\n";
> $msg.="Message:\t$message\n\n";
> $to="[EMAIL PROTECTED]";
> $subject="Website Feedback";
> $mailheaders="From: My website<> \n";
> $mailheaders.="Reply to: $sender_email\n\n";
> mail($to,$subject,$msg,$mailheaders);
> ?>
>
>
>
> --
> 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]
>

--- End Message ---
--- Begin Message ---
Daniel,
I tried your suggestion (see below) but the letter gets bounced back like
this:


[EMAIL PROTECTED],linda
.....................

Here is the script:

<?
$msg="Email sent from WWW site";
$msg.="Sender's name:\t$sender_name\n";
$msg.="Sender's email address:\t$sender_email\n";
$msg.="Message:\t$message\n\n";
$to="[EMAIL PROTECTED], [EMAIL PROTECTED]";
$subject="Web Site Feedback";
$mailheaders .= "Cc: $other_email\n";
$mailheaders="From: My Website";
$mailheaders.="Reply to: $sender_email\n\n";
mail($to,$subject,$msg,$mailheaders);
?>

<HTML>
<HEAD<
<TITLE> Simple Feedback Form </TITLE>
</HEAD>
<BODY>
<H1> The following email has been sent: </H1>
<P><strong>Your Name:</strong><br>
<? echo "$sender_name"; ?>
<P><strong>Your email address:</strong><br>
<? echo "$sender_email"; ?>
<P><strong>Message: </strong> <br>
<? echo "$message"; ?>
</BODY>
</HTML>
...................................

----- Original Message -----
From: Daniel Parsons <[EMAIL PROTECTED]>
To: Anthony Ritter <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, November 18, 2001 8:55 PM
Subject: RE: [PHP-WIN] Adding a cc to a PHP mail script...


> If you want to add additional email addresses to the 'To' list, use a
> comma seperated list:
> e.g. $to = "[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]";
>
> if you want to cc the email then add it to your headers:
> e.g. $mailheaders .= "Cc: [EMAIL PROTECTED]\r\n";
>
> HTH,
> D.



--- End Message ---
--- Begin Message ---
Hi,

It is possible to create/run background process at Win2K / Apache
environment? If yes, how?

Regards,
Chris Lee
--- End Message ---
--- Begin Message ---
I need a build of PHP that can be used as a module with Apache 2.0.28 beta.
Anyone know where I could find one? It is not compatible with previous 2.0
builds.

thanks
-Jobarr




--- End Message ---
--- Begin Message ---
Command-line parameters are ignored when using PHP as a CGI-module.
What is the problem?


--- End Message ---
--- Begin Message ---
Hi all,

I am transfering a IIS/ASP solution to Apache/PHP solution, though we will
still use MS SQL Server for our databases. Therefore it is necesary that I
can call stored procedures that are already in the database. Is there
someone out there who knows how to? I've looked around some time but didn't
find anything yet...




--- End Message ---
--- Begin Message ---
What's the problem? It's just another statment...

>-----Original Message-----
>From: wim van houts [mailto:[EMAIL PROTECTED]]
>Sent: Monday, November 19, 2001 9:52 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] Calling stored procedure in PHP
>
>
>Hi all,
>
>I am transfering a IIS/ASP solution to Apache/PHP solution, though we will
>still use MS SQL Server for our databases. Therefore it is necesary that I
>can call stored procedures that are already in the database. Is there
>someone out there who knows how to? I've looked around some time but didn't
>find anything yet...
>
>
--- End Message ---
--- Begin Message ---
Hi,

>What's the problem? It's just another statment...

not if you use OUTPUT and RETURN values...

There are three new API's in php_mssql. F. Kromman included
them for php4.1, but I have a copy of php_mssql 4.0.6 with
the new stored procedures API's, they are well tested, don't worry.

If you ask me, i'll send them via e-mail

Greetings,

F.J. Ortiz

11/19/01 9:52:10 AM, "wim van houts" <[EMAIL PROTECTED]> escribió:

>Hi all,
>
>I am transfering a IIS/ASP solution to Apache/PHP solution, though we will
>still use MS SQL Server for our databases. Therefore it is necesary that I
>can call stored procedures that are already in the database. Is there
>someone out there who knows how to? I've looked around some time but didn't
>find anything yet...
>
>
>
>
>
>-- 
>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]
>
>

___________________________________
Francisco Javier Ortiz Torre
ComuNET,S.A.
mailto:[EMAIL PROTECTED]

ComuNET, S.A
Gral. Concha 39,6º
48012 Bilbao España
Tel: +34 944 700 101 
Fax: +34 944 700 185 
http://www.comunet.es
___________________________________


--- End Message ---

Reply via email to